![]() |
VR-Forces 5.0.3 Developer's Guide
|
Base class for GPU updates of the variable rate shading image Draw a full screen quad using a shader and provides a mechanism for end users to specify the shader to use and setup uniforms etc.

Public Member Functions | |
| DtVariableRateShadingImageUpdater (DtDe &de, DtVariableRateShadingImage *vrsImage) | |
| virtual void | drawImplementation (osg::RenderInfo &info) const |
| virtual void | releaseGLObjects (osg::State *state) const |
| virtual void | shouldUpdate (bool shouldUpdate) |
| virtual void | restoreLastFboTarget (GLenum fboTarget) |
Protected Member Functions | |
| virtual | ~DtVariableRateShadingImageUpdater () |
| virtual void | update (osg::State *state) const |
| virtual void | initProgram (osg::State *state) const |
Protected Attributes | |
| DtDe & | myDe |
| DtVariableRateShadingImage * | myVariableRateShadingImage |
| DtGlProgram * | myProgram |
| std::string | myVertexShaderSource |
| std::string | myFragmentShaderSource |
| osg::ref_ptr< osg::StateSet > | myVrsFillStateSet |
| bool | myShouldUpdate |
| GLenum | myRestoreFboTarget |
Private Member Functions | |
| DtVariableRateShadingImageUpdater ()=delete | |
| DtVariableRateShadingImageUpdater (const DtVariableRateShadingImageUpdater &other)=delete | |
| DtVariableRateShadingImageUpdater & | operator= (const DtVariableRateShadingImageUpdater &other)=delete |
|
privatedelete |
not allowed
|
privatedelete |
Copy Constructor not implemented – Copy Not Allowed.
| makVrv::DtVariableRateShadingImageUpdater::DtVariableRateShadingImageUpdater | ( | DtDe & | de, |
| DtVariableRateShadingImage * | vrsImage | ||
| ) |
CTOR.
|
protectedvirtual |
DTOR.
|
privatedelete |
Assignment Operator Not implemented – Assignment Not Allowed.
|
virtual |
draw the vrs image update pass
|
virtual |
frees resources on context release
|
virtual |
flags if the vrs image should be updated
|
virtual |
/brief set the fb rebind target type for resetting the last applied fbo (0 to not rebind)
|
protectedvirtual |
pre draw callback so concrete implementations can update uniforms etc at this point the shader will be bound
Reimplemented in makVrv::DtVrsGazeMapUpdater.
|
protectedvirtual |
called by draw if program is null so concrete implementation can create program
Reimplemented in makVrv::DtVrsGazeMapUpdater.
|
protected |
|
protected |
handle to the vrs images so we can bind it's textures fbo
|
mutableprotected |
shader to update the vrs texture image
|
mutableprotected |
vertex shader source
|
mutableprotected |
fragment shader source
|
mutableprotected |
state set to encapsulate state changes when doing vrs fill
|
mutableprotected |
should we update on the next drawImplementation
|
protected |
the framebuffer target to bind last fbo to