本页内容

QShader::SeparateToCombinedImageSamplerMapping Struct

struct QShader::SeparateToCombinedImageSamplerMapping

采样器均匀分布的映射元数据。更多内容...

公共变量

详细说明

描述了从传统的组合图像采样器统一格式到独立纹理和采样器绑定点之间的映射关系。

例如,如果combinedImageSampler 为"_54" ,textureBinding 为1 ,samplerBinding 为2 ,这意味着 GLSL 着色器代码中包含一个名为_54 的sampler2D (或 sampler3D 等)uniform,它对应于原始着色器中的两个独立资源绑定(1 和2 )。

注意:这是一个 兼容性保证有限的 RHI API,详情请参阅QShader 。

成员变量文档

QByteArray SeparateToCombinedImageSamplerMapping::combinedSamplerName

int SeparateToCombinedImageSamplerMapping::samplerBinding

int SeparateToCombinedImageSamplerMapping::textureBinding

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