Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QShaderDescription::UniformBlock Struct Reference

\variable QShaderDescription::BlockVariable::name More...

#include <qshaderdescription.h>

+ Collaboration diagram for QShaderDescription::UniformBlock:

Public Attributes

QByteArray blockName
 
QByteArray structName
 
int size = 0
 
int binding = -1
 
int descriptorSet = -1
 
QList< BlockVariablemembers
 

Related Symbols

(Note that these are not member symbols.)

bool operator== (const QShaderDescription::UniformBlock &lhs, const QShaderDescription::UniformBlock &rhs) noexcept
 Returns true if the two UniformBlock objects lhs and rhs are equal.
 

Detailed Description

\variable QShaderDescription::BlockVariable::name

\variable QShaderDescription::BlockVariable::type

\variable QShaderDescription::BlockVariable::offset

\variable QShaderDescription::BlockVariable::size

\variable QShaderDescription::BlockVariable::arrayDims

\variable QShaderDescription::BlockVariable::arrayStride

\variable QShaderDescription::BlockVariable::matrixStride

\variable QShaderDescription::BlockVariable::matrixIsRowMajor

\variable QShaderDescription::BlockVariable::structMembers

\inmodule QtGui

Since
6.6

Describes a uniform block.

Note
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 \l QShaderDescription for details.

Definition at line 211 of file qshaderdescription.h.

Friends And Related Symbol Documentation

◆ operator==()

bool operator== ( const QShaderDescription::UniformBlock & lhs,
const QShaderDescription::UniformBlock & rhs )
related

Returns true if the two UniformBlock objects lhs and rhs are equal.

Definition at line 2048 of file qshaderdescription.cpp.

Member Data Documentation

◆ binding

int QShaderDescription::UniformBlock::binding = -1

Definition at line 215 of file qshaderdescription.h.

Referenced by QSGMaterialShaderPrivate::prepare().

◆ blockName

QByteArray QShaderDescription::UniformBlock::blockName

Definition at line 212 of file qshaderdescription.h.

Referenced by QSGMaterialShaderPrivate::prepare().

◆ descriptorSet

int QShaderDescription::UniformBlock::descriptorSet = -1

Definition at line 216 of file qshaderdescription.h.

◆ members

QList<BlockVariable> QShaderDescription::UniformBlock::members

Definition at line 217 of file qshaderdescription.h.

◆ size

int QShaderDescription::UniformBlock::size = 0

Definition at line 214 of file qshaderdescription.h.

Referenced by QSGMaterialShaderPrivate::prepare().

◆ structName

QByteArray QShaderDescription::UniformBlock::structName

Definition at line 213 of file qshaderdescription.h.


The documentation for this struct was generated from the following files: