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
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.