Sur cette page

QShaderDescription::UniformBlock Struct

struct QShaderDescription::UniformBlock

Décrit un bloc uniforme. 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
bool operator==(const QShaderDescription::UniformBlock &lhs, const QShaderDescription::UniformBlock &rhs)

Description détaillée

Note : Lors de la traduction vers des langages d'ombrage ne supportant pas les blocs uniformes (comme GLSL 120 ou GLSL/ES 100), les blocs uniformes sont remplacés par des uniformes ordinaires dans une struct. Le nom de la structure, et donc le préfixe des uniformes générés à partir des membres du bloc, est donné par structName.

Remarque : il s'agit d'une API RHI avec des garanties de compatibilité limitées, 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

Non-membres apparentés

[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.