![]() |
Qt 6.x
The Qt SDK
|
Public Member Functions | |
DistanceFieldAnisotropicTextMaterialRhiShader (bool alphaTexture) | |
![]() | |
QSGDistanceFieldTextMaterialRhiShader (bool alphaTexture) | |
bool | updateUniformData (RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) override |
This function is called by the scene graph to get the contents of the shader program's uniform buffer updated. | |
void | updateSampledImage (RenderState &state, int binding, QSGTexture **texture, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) override |
This function is called by the scene graph to prepare use of sampled images in the shader, typically in the form of combined image samplers. | |
![]() | |
QSGMaterialShader () | |
Constructs a new QSGMaterialShader. | |
virtual | ~QSGMaterialShader () |
virtual bool | updateUniformData (RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) |
This function is called by the scene graph to get the contents of the shader program's uniform buffer updated. | |
virtual void | updateSampledImage (RenderState &state, int binding, QSGTexture **texture, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) |
This function is called by the scene graph to prepare use of sampled images in the shader, typically in the form of combined image samplers. | |
virtual bool | updateGraphicsPipelineState (RenderState &state, GraphicsPipelineState *ps, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) |
This function is called by the scene graph to enable the material to provide a custom set of graphics state. | |
Flags | flags () const |
void | setFlag (Flags flags, bool on=true) |
Sets the flags on this material shader if on is true; otherwise clears the specified flags. | |
void | setFlags (Flags flags) |
Sets the flags for this material shader. | |
int | combinedImageSamplerCount (int binding) const |
Returns the number of elements in the combined image sampler variable at binding. | |
Additional Inherited Members | |
![]() | |
enum | Flag { UpdatesGraphicsPipelineState = 0x0001 } |
Flag values to indicate special material properties. More... | |
enum | Stage { VertexStage , FragmentStage } |
![]() | |
QSGMaterialShader (QSGMaterialShaderPrivate &dd) | |
void | setShaderFileName (Stage stage, const QString &filename) |
Sets the filename for the shader for the specified stage. | |
void | setShader (Stage stage, const QShader &shader) |
Sets the shader for the specified stage. | |
![]() | |
float | m_fontScale = 1.0 |
float | m_matrixScale = 1.0 |
Definition at line 134 of file qsgdistancefieldglyphnode_p.cpp.
DistanceFieldAnisotropicTextMaterialRhiShader::DistanceFieldAnisotropicTextMaterialRhiShader | ( | bool | alphaTexture | ) |
Definition at line 140 of file qsgdistancefieldglyphnode_p.cpp.
References QSGMaterialShader::FragmentStage, QStringLiteral, QSGMaterialShader::setShaderFileName(), and QSGMaterialShader::VertexStage.