UniformBlock Struct

struct QShaderDescription ::UniformBlock

Describes a uniform block. 更多...

This struct was introduced in 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 )

詳細描述

注意: 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 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 )

返迴 true 若兩 UniformBlock 對象 lhs and rhs 相等。

內容

  1. 公共變量

  2. 相關非成員

  3. 詳細描述