QSGMaterialRhiShader Class

The QSGMaterialRhiShader class represents a graphics API independent shader program. More...

Header: #include <QSGMaterialRhiShader>
qmake: QT += quick
Since: Qt 5.14
Inherits: QSGMaterialShader

This class was introduced in Qt 5.14.

Public Types

struct GraphicsPipelineState
class RenderState
enum Flag { UpdatesGraphicsPipelineState }

Detailed Description

QSGMaterialRhiShader is a modern, cross-platform alternative to QSGMaterialShader. The latter is tied to OpenGL and GLSL by design, whereas QSGMaterialRhiShader is based on QShader, a container for multiple versions of a graphics shader together with reflection information.

Note: All classes with QSG prefix should be used solely on the scene graph's rendering thread. See Scene Graph and Rendering for more information.

Member Type Documentation

enum QSGMaterialRhiShader::Flag

Flag values to indicate special material properties.

ConstantValueDescription
QSGMaterialRhiShader::UpdatesGraphicsPipelineState0x0001Setting this flag enables calling updateGraphicsPipelineState().