Describes a uniform block. 更多...
This struct was introduced in Qt 6.6.
int | binding |
QByteArray | blockName |
int | descriptorSet |
QList<QShaderDescription::BlockVariable> | members |
int | size |
QByteArray | structName |
bool | operator== (const QShaderDescription::UniformBlock & lhs , const QShaderDescription::UniformBlock & rhs ) |
注意: 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 .
注意: This is a RHI API with limited compatibility guarantees, see QShaderDescription 了解细节。
[noexcept]
bool
operator==
(const
QShaderDescription::UniformBlock
&
lhs
, const
QShaderDescription::UniformBlock
&
rhs
)
返回
true
若两
UniformBlock
对象
lhs
and
rhs
相等。