RenderCapabilities QML Type

QRenderCapabilities 类保存与可用渲染引擎相关的设置。更多

Import Statement: import Qt3D.Render 2.9
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 轴上可用的 Compute Shader 工作组的最大数量。


maxWorkGroupCountZ : int [read-only]

返回 Z 轴上可用 Compute Shader 工作组的最大数量。


maxWorkGroupSizeX : int [read-only]

返回 X 轴上 Compute Shader 本地工作组的最大大小。


maxWorkGroupSizeY : int [read-only]

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


maxWorkGroupSizeZ : int [read-only]

返回 Z 轴上 Compute Shader 本地工作组的最大大小。


minorVersion : int [read-only]

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


profile : bool [read-only]

返回当前使用的配置文件(如适用)。


renderer : string [read-only]

返回设备标识字符串。


supportsCompute : bool [read-only]

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


supportsImageStore : bool [read-only]

如果支持图像存储操作,则返回 true。


supportsSSBO : bool [read-only]

如果支持 SSBO,则返回 true。


supportsUBO : bool [read-only]

如果支持 UBO,则返回 true。


valid : bool [read-only]

如果数据有效,则返回 true,否则Qt 3D 查询可用硬件失败。


vendor : string [read-only]

返回供应商标识字符串。


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