QShaderDescription::UniformBlock Struct
struct QShaderDescription::UniformBlockDécrit un bloc uniforme. En savoir plus...
Cette structure a été introduite dans Qt 6.6.
Variables publiques
| int | binding |
| QByteArray | blockName |
| int | descriptorSet |
| QList<QShaderDescription::BlockVariable> | members |
| int | size |
| QByteArray | structName |
Éléments non membres associés
| bool | operator==(const QShaderDescription::UniformBlock &lhs, const QShaderDescription::UniformBlock &rhs) |
Description détaillée
Remarque : lors de la compilation vers des langages de shaders ne prenant pas en charge les blocs uniform (tels que GLSL 120 ou GLSL/ES 100), les blocs uniform sont remplacés par des uniformes classiques au sein de la structure. Le nom de la structure, et donc le préfixe des uniformes générés à partir des membres du bloc, est fourni par structName.
Remarque : il s’agit d’une API RHI dont la compatibilité n’est pas entièrement garantie ; voir QShaderDescription pour plus de détails.
Documentation sur les variables membres
int UniformBlock::binding
QByteArray UniformBlock::blockName
int UniformBlock::descriptorSet
QList<QShaderDescription::BlockVariable> UniformBlock::members
int UniformBlock::size
QByteArray UniformBlock::structName
Personnes concernées non adhérentes
[noexcept] bool operator==(const QShaderDescription::UniformBlock &lhs, const QShaderDescription::UniformBlock &rhs)
Renvoie « true » si les deux objets « UniformBlock » lhs et rhs sont égaux.
© 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.