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)

详细描述

注: 在翻译为不支持统一色块的着色语言(如 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 对象lhsrhs 相等,则返回true

© 2025 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.