UniformBlock Struct

struct QShaderDescription ::UniformBlock

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 了解细节。

成员变量文档编制

int UniformBlock:: binding

QByteArray UniformBlock:: blockName

int UniformBlock:: descriptorSet

QList < QShaderDescription::BlockVariable > UniformBlock:: members

int UniformBlock:: size

QByteArray UniformBlock:: structName

相关非成员

[noexcept] bool operator== (const QShaderDescription::UniformBlock & lhs , const QShaderDescription::UniformBlock & rhs )

返回 true 若两 UniformBlock 对象 lhs and rhs 相等。