Describes state changes that the material wants to apply to the currently active graphics pipeline state.

Unlike QSGMaterialShader , directly issuing state change commands with the underlying graphics API is not possible with QSGMaterialShader . This is mainly because the concept of individually changeable states is considered deprecated and not supported with modern graphics APIs.

Therefore, it is up to QSGMaterialShader to expose a data structure with the set of supported states, which the material can change in its updatePipelineState() implementation, if there is one. The scenegraph will then internally apply these changes to the active graphics pipeline state, then rolling them back as appropriate.

Constant

Description

QSGMaterialShader.GraphicsPipelineState.Zero

QSGMaterialShader.GraphicsPipelineState.One

QSGMaterialShader.GraphicsPipelineState.SrcColor

QSGMaterialShader.GraphicsPipelineState.OneMinusSrcColor

QSGMaterialShader.GraphicsPipelineState.DstColor

QSGMaterialShader.GraphicsPipelineState.OneMinusDstColor

QSGMaterialShader.GraphicsPipelineState.SrcAlpha

QSGMaterialShader.GraphicsPipelineState.OneMinusSrcAlpha

QSGMaterialShader.GraphicsPipelineState.DstAlpha

QSGMaterialShader.GraphicsPipelineState.OneMinusDstAlpha

QSGMaterialShader.GraphicsPipelineState.ConstantColor

QSGMaterialShader.GraphicsPipelineState.OneMinusConstantColor

QSGMaterialShader.GraphicsPipelineState.ConstantAlpha

QSGMaterialShader.GraphicsPipelineState.OneMinusConstantAlpha

QSGMaterialShader.GraphicsPipelineState.SrcAlphaSaturate

QSGMaterialShader.GraphicsPipelineState.Src1Color

QSGMaterialShader.GraphicsPipelineState.OneMinusSrc1Color

QSGMaterialShader.GraphicsPipelineState.Src1Alpha

QSGMaterialShader.GraphicsPipelineState.OneMinusSrc1Alpha

Constant

Description

QSGMaterialShader.GraphicsPipelineState.R

QSGMaterialShader.GraphicsPipelineState.G

QSGMaterialShader.GraphicsPipelineState.B

QSGMaterialShader.GraphicsPipelineState.A

Constant

Description

QSGMaterialShader.GraphicsPipelineState.CullNone

QSGMaterialShader.GraphicsPipelineState.CullFront

QSGMaterialShader.GraphicsPipelineState.CullBack