本页内容

RenderCapabilities QML Type

QRenderCapabilities 类包含与可用渲染引擎相关的设置。更多内容...

Import Statement: import Qt3D.Render 2.12
In C++: QRenderCapabilities
Status: Deprecated

此类型已弃用。我们强烈建议不要在新代码中使用它。

属性

详细说明

RenderCapabilities 提供了运行时可用的图形功能的详细信息。它可用于决定某些算法应采用哪条代码路径,例如,取决于计算着色器是否可用。

属性文档

api : QRenderCapabilities::API [read-only]

返回当前正在使用的 API。

driverVersion : string [read-only]

返回驱动程序版本字符串。

extensions : list<string> [read-only]

返回当前可用的扩展名列表。

glslVersion : string [read-only]

返回 GLSL 版本字符串。

majorVersion : int [read-only]

返回当前正在使用的主版本号。

maxComputeInvocations : int [read-only]

返回可用的计算着色器的最大数量。

maxComputeSharedMemorySize : int [read-only]

返回可供计算着色器使用的最大共享内存量。

maxImageUnits : int [read-only]

返回可用的图像单元最大数量。

maxSSBOBindings : int [read-only]

返回可用的 SSBO 绑定点最大数量(如果支持的话)。

maxSSBOSize : int [read-only]

返回 SSBO 的最大大小(如果可用)。

maxSamples : int [read-only]

返回可用于 MSAA 的最大采样数。

maxTextureLayers : int [read-only]

返回可用纹理图层的数量。

maxTextureSize : int [read-only]

返回纹理的最大大小。

maxTextureUnits : int [read-only]

返回可用纹理单元的数量。

maxUBOBindings : int [read-only]

返回可用的 UBO 绑定点最大数量(如果支持的话)。

maxUBOSize : int [read-only]

返回 UBO 的最大大小(如果支持的话)。

maxWorkGroupCountX : int [read-only]

返回 X 轴上可用的计算着色器工作组的最大数量。

maxWorkGroupCountY : int [read-only]

返回 Y 轴上可用的计算着色器工作组的最大数量。

maxWorkGroupCountZ : int [read-only]

返回 Z 轴上可用的计算着色器工作组的最大数量。

maxWorkGroupSizeX : int [read-only]

返回计算着色器在 X 轴上的本地工作组最大大小。

maxWorkGroupSizeY : int [read-only]

返回计算着色器在 Y 轴方向上的本地工作组最大大小。

maxWorkGroupSizeZ : int [read-only]

返回计算着色器本地工作组在 Z 轴上的最大尺寸。

minorVersion : int [read-only]

返回当前正在使用的次版本号。

profile : bool [read-only]

返回当前正在使用的配置文件(如有)。

renderer : string [read-only]

返回设备标识字符串。

supportsCompute : bool [read-only]

如果支持计算着色器,则返回 true。

supportsImageStore : bool [read-only]

如果支持 Image Store 操作,则返回 true。

supportsSSBO : bool [read-only]

如果支持 SSBO,则返回 true。

supportsUBO : bool [read-only]

如果支持 UBO,则返回 true。

valid : bool [read-only]

如果数据有效,则返回 true;否则,Qt 3D 表示无法查询到可用硬件。

vendor : string [read-only]

返回供应商标识字符串。

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