▲
-
Header: GraphicsPipelineState
-
Since: Qt 5.14
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Quick)
target_link_libraries(mytarget PRIVATE Qt6::Quick)
-
qmake: QT += quick
Detailed Description▲
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.
Member Type Documentation▲
[since 5.14] enum GraphicsPipelineState::BlendFactor▲
This enum was introduced or modified in Qt 5.14.
[since 5.14] enum GraphicsPipelineState::ColorMaskComponent▲
flags GraphicsPipelineState::ColorMask
Constant |
|
---|---|
1 << 0 |
|
1 << 1 |
|
1 << 2 |
|
1 << 3 |
This enum was introduced or modified in Qt 5.14.
The ColorMask type is a typedef for QFlags<ColorMaskComponent>. It stores an OR combination of ColorMaskComponent values.
[since 5.14] enum GraphicsPipelineState::CullMode▲
Constant |
|
---|---|
QSGMaterialShader::GraphicsPipelineState::CullNone |
0 |
QSGMaterialShader::GraphicsPipelineState::CullFront |
1 |
QSGMaterialShader::GraphicsPipelineState::CullBack |
2 |
This enum was introduced or modified in Qt 5.14.
[since 6.4] enum GraphicsPipelineState::PolygonMode▲
Specifies the polygon rasterization mode
Polygon Mode (Triangle Fill Mode in Metal, Fill Mode in D3D) specifies the fill mode used when rasterizing polygons. Polygons may be drawn as solids (Fill), or as a wire mesh (Line).
OpenGL ES does not support the Line polygon mode. OpenGL ES will rasterize all polygons as filled no matter what polygon mode is set. Using Line will make your application non-portable.
Constant |
Value |
Description |
---|---|---|
0 |
The interior of the polygon is filled (default) |
|
1 |
Boundary edges of the polygon are drawn as line segments. |
This enum was introduced or modified in Qt 6.4.