![]() |
VR-Forces 4.10 Class Documentation
|
shader configuration storage class. More...
Public Member Functions | |
| DtCullShaderConfig (bool viewFrustumCulling, bool lodChecking, bool useInstanceCount, bool debugCulling) | |
| DtCullShaderConfig () | |
| Default constructor, all options set to true. More... | |
| ~DtCullShaderConfig () | |
| Destructor - this is a non virtual container class so it doesn't need a virtual destructor. More... | |
| DtCullShaderConfig (const DtCullShaderConfig &other) | |
| Copy Constructor. More... | |
| DtCullShaderConfig & | operator= (const DtCullShaderConfig &other) |
| Assignment Operator. More... | |
| virtual bool | operator== (const DtCullShaderConfig &rhs) const |
| equal to More... | |
| virtual bool | operator!= (const DtCullShaderConfig &rhs) const |
| not equal to More... | |
| virtual bool | useInstanceCount (void) const |
| getters for the configuration options More... | |
| virtual bool | viewFrustumCulling (void) const |
| virtual bool | lodChecking (void) const |
| virtual bool | debugCulling (void) const |
| virtual void | setUseInstanceCount (bool val) |
| setters for the configuration options More... | |
| virtual void | setViewFrustumCulling (bool val) |
| virtual void | setLodChecking (bool val) |
| virtual void | setDebugCulling (bool val) |
Protected Attributes | |
| bool | myViewFrustumCulling |
| bool | myLodChecking |
| bool | myUseInstanceCount |
| bool | myDebugCulling |
shader configuration storage class.
Has 3 available options which are described in the constructor's comment it is a simple non virtual container class which is why there is no creator or virutal destructor
| makVrv::DtCullShaderConfig::DtCullShaderConfig | ( | bool | viewFrustumCulling, |
| bool | lodChecking, | ||
| bool | useInstanceCount, | ||
| bool | debugCulling | ||
| ) |
| viewFrustumCulling | determines whether the internal cull shader will do the view frustum culling |
| lodChecking | determines whether whether the internal cull shader will do the lod checking |
| useInstanceCount | adjusts whether the cull shader will optimize for (mostly) unique models across instances (as is the case with cdb gs instances for example), in which case set the useInstanceCount = false or (mostly) shared models, in which case set the useInstanceCount = true |
Remarks: Its still (probably) faster to run the cull shader, so that it may quickly generate the indirect command buffer by redistributing the (possibly) out of order instances in a fast, parallelized fashion , than to use the cpu to do this
| makVrv::DtCullShaderConfig::DtCullShaderConfig | ( | ) |
Default constructor, all options set to true.
| makVrv::DtCullShaderConfig::~DtCullShaderConfig | ( | ) |
Destructor - this is a non virtual container class so it doesn't need a virtual destructor.
| makVrv::DtCullShaderConfig::DtCullShaderConfig | ( | const DtCullShaderConfig & | other | ) |
Copy Constructor.
| DtCullShaderConfig& makVrv::DtCullShaderConfig::operator= | ( | const DtCullShaderConfig & | other | ) |
Assignment Operator.
|
virtual |
equal to
|
virtual |
not equal to
|
virtual |
getters for the configuration options
|
virtual |
|
virtual |
|
virtual |
|
virtual |
setters for the configuration options
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |