18 #ifndef EQFABRIC_SWAPBARRIER_H
19 #define EQFABRIC_SWAPBARRIER_H
21 #include <eq/fabric/api.h>
22 #include <lunchbox/referenced.h>
47 void setName(
const std::string& name ) { _name = name; }
48 const std::string getName()
const {
return _name; }
50 uint32_t getNVSwapGroup()
const {
return _nvSwapGroup ; }
51 void setNVSwapGroup( uint32_t nvGroup ) { _nvSwapGroup = nvGroup; }
53 uint32_t getNVSwapBarrier()
const {
return _nvSwapBarrier; }
54 void setNVSwapBarrier( uint32_t nvBarrier )
55 { _nvSwapBarrier = nvBarrier; }
57 bool isNvSwapBarrier()
const
58 {
return ( _nvSwapBarrier || _nvSwapGroup ); }
64 uint32_t _nvSwapGroup;
65 uint32_t _nvSwapBarrier;
68 EQFABRIC_API std::ostream& operator << ( std::ostream&,
const SwapBarrier& );
71 #endif // EQFABRIC_SWAPBARRIER_H
A swapbarrier is set on a Compound to synchronize the swap buffer between windows.
SwapBarrier()
Constructs a new SwapBarrier.