RenderState Class

class QSGMaterialShader::RenderState

The QSGMaterialShader::RenderState encapsulates the current rendering state during a call to QSGMaterialShader::updateState(). More...

Public Types

enum DirtyState { DirtyMatrix, DirtyOpacity, DirtyCachedMaterialData, DirtyAll }

Detailed Description

The render state contains a number of accessors that the shader needs to respect in order to conform to the current state of the scene graph.

The instance is only valid inside a call to QSGMaterialShader::updateState() and should not be used outisde this function.

Member Type Documentation

enum RenderState::DirtyState

ConstantValueDescription
QSGMaterialShader::RenderState::DirtyMatrix0x0001Used to indicate that the matrix has changed and must be updated.
QSGMaterialShader::RenderState::DirtyOpacity0x0002Used to indicate that the opacity has changed and must be updated.
QSGMaterialShader::RenderState::DirtyCachedMaterialData0x0004Used to indicate that the cached material data have changed and must be updated.
QSGMaterialShader::RenderState::DirtyAll0xFFFFUsed to indicate that everything needs to be updated.