QShaderDescription::UniformBlock Struct
struct QShaderDescription::UniformBlock描述了一个均匀块。更多...
该结构体在 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) |
详细说明
注意:在 转换为不支持统一块(uniform block)的着色语言(如 GLSL 120 或 GLSL/ES 100)时, 统一块将被替换为结构体中的普通统一变量。结构体的名称(以及由此生成的块成员的统一变量前缀)由structName 提供。
注意:这是一个 兼容性保证有限的 RHI API,详情请参见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)
如果两个UniformBlock 对象lhs 和rhs 相等,则返回true 。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.