SeparateToCombinedImageSamplerMapping Struct

struct QShader ::SeparateToCombinedImageSamplerMapping

Mapping metadata for sampler uniforms. 更多...

公共变量

QByteArray combinedSamplerName
int samplerBinding
int textureBinding

详细描述

Describes a mapping from a traditional combined image sampler uniform to binding points for a separate texture and sampler.

例如,若 combinedImageSampler is "_54" , textureBinding is 1 ,和 samplerBinding is 2 , this means that the GLSL shader code contains a sampler2D (or sampler3D, etc.) uniform with the name of _54 which corresponds to two separate resource bindings ( 1 and 2 ) in the original shader.

注意: This is a RHI API with limited compatibility guarantees, see QShader 了解细节。

成员变量文档编制

QByteArray SeparateToCombinedImageSamplerMapping:: combinedSamplerName

int SeparateToCombinedImageSamplerMapping:: samplerBinding

int SeparateToCombinedImageSamplerMapping:: textureBinding