UniformBlock Class
(QShaderDescription::UniformBlock)Describes a uniform block. More...
Header: | #include <UniformBlock> |
qmake: | QT += rhi |
Public Variables
int | binding |
QString | blockName |
int | descriptorSet |
QVector<QShaderDescription::BlockVariable> | members |
int | size |
QString | structName |
Detailed Description
Describes a uniform block.
Note: When translating to shading languages without uniform block support (like GLSL 120 or GLSL/ES 100), uniform blocks are replaced with ordinary uniforms in a struct. The name of the struct, and so the prefix for the uniforms generated from the block members, is given by structName.