QRenderCapabilities类
class Qt3DRender::QRenderCapabilitiesQRenderCapabilities类包含与可用渲染引擎相关的设置。了解更多...
| 头文件 | #include <QRenderCapabilities> |
| CMake | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake | QT += 3drender |
| 由以下实例化 | RenderingCapabilities |
| 继承自 | QObject |
属性
|
|
公共函数
| Qt3DRender::QRenderCapabilities::API | api() const |
| QString | driverVersion() const |
| QStringList | extensions() const |
| QString | glslVersion() const |
| bool | isValid() const |
| int | majorVersion() const |
| int | maxComputeInvocations() const |
| int | maxComputeSharedMemorySize() const |
| int | maxImageUnits() const |
| int | maxSSBOBindings() const |
| int | maxSSBOSize() const |
| int | maxSamples() const |
| int | maxTextureLayers() const |
| int | maxTextureSize() const |
| int | maxTextureUnits() const |
| int | maxUBOBindings() const |
| int | maxUBOSize() const |
| int | maxWorkGroupCountX() const |
| int | maxWorkGroupCountY() const |
| int | maxWorkGroupCountZ() const |
| int | maxWorkGroupSizeX() const |
| int | maxWorkGroupSizeY() const |
| int | maxWorkGroupSizeZ() const |
| int | minorVersion() const |
| Qt3DRender::QRenderCapabilities::Profile | profile() const |
| QString | renderer() const |
| bool | supportsCompute() const |
| bool | supportsImageStore() const |
| bool | supportsSSBO() const |
| bool | supportsUBO() const |
| QString | vendor() const |
属性文档
[只读] api : const API
返回当前正在使用的API。
访问函数
| Qt3DRender::QRenderCapabilities::API | api() const |
[只读] driverVersion : const QString
返回驱动程序版本字符串。
访问函数
| QString | driverVersion() const |
[只读] extensions : const QStringList
返回当前可用的扩展列表。
访问函数
| QStringList | extensions() const |
[只读] glslVersion : const QString
返回GLSL版本字符串。
访问函数
| QString | glslVersion() const |
[只读] majorVersion : const int
返回当前正在使用的版本的主版本号。
访问函数
| int | majorVersion() const |
[只读] maxComputeInvocations : const int
返回可用Compute Shaders的最大数量。
访问函数
| int | maxComputeInvocations() const |
[只读] maxComputeSharedMemorySize : const int
返回为Compute Shaders可用最大共享内存大小。
访问函数
| int | maxComputeSharedMemorySize() const |
[只读] maxImageUnits : const int
返回可用图像单元的最大数量。
访问函数
| int | maxImageUnits() const |
[只读] maxSSBOBindings : const int
如果支持,返回可用的SSBO绑定点的最大数量。
访问函数
| int | maxSSBOBindings() const |
[只读] maxSSBOSize : const int
如果可用,返回SSBOs的最大大小。
访问函数
| int | maxSSBOSize() const |
[只读] maxSamples : const int
返回用于MSAA可用的最大样本数量。
访问函数
| int | maxSamples() const |
[只读] maxTextureLayers : const int
返回可用纹理层的数量。
访问函数
| int | maxTextureLayers() const |
[只读] maxTextureSize : const int
返回纹理的最大大小。
访问函数
| int | maxTextureSize() const |
[只读] maxTextureUnits : const int
返回可用纹理单元的数量。
访问函数
| int | maxTextureUnits() const |
[只读] maxUBOBindings : const int
如果支持,返回可用的UBO绑定点的最大数量。
访问函数
| int | maxUBOBindings() const |
[只读] maxUBOSize : const int
如果支持,返回UBOs的最大大小。
访问函数
| int | maxUBOSize() const |
[只读] maxWorkGroupCountX : const int
返回 X 轴上可用的 Compute Shader 工作组的最大数量。
访问函数
| int | maxWorkGroupCountX() const |
[只读] maxWorkGroupCountY : const int
返回 Y 轴上可用的 Compute Shader 工作组的最大数量。
访问函数
| int | maxWorkGroupCountY() const |
[只读] maxWorkGroupCountZ : const int
返回 Z 轴上可用的 Compute Shader 工作组的最大数量。
访问函数
| int | maxWorkGroupCountZ() const |
[只读] maxWorkGroupSizeX : const int
返回 X 轴上 Compute Shader 本地工作组最大大小。
访问函数
| int | maxWorkGroupSizeX() const |
[只读] maxWorkGroupSizeY : const int
返回 Y 轴上 Compute Shader 本地工作组最大大小。
访问函数
| int | maxWorkGroupSizeY() const |
[只读] maxWorkGroupSizeZ : const int
返回 Z 轴上 Compute Shader 本地工作组最大大小。
访问函数
| int | maxWorkGroupSizeZ() const |
[只读] minorVersion : const int
返回当前正在使用的次要版本号。
访问函数
| int | minorVersion() const |
[只读] profile : const Profile
返回 currently (此处 "if applicable" 需要根据上下文含义翻译)正在使用的 profile(如果适用)。
访问函数
| Qt3DRender::QRenderCapabilities::Profile | profile() const |
[只读] renderer : const QString
返回设备标识字符串。
访问函数
| QString | renderer() const |
[只读] supportsCompute : const bool
如果支持 Compute Shader,则返回 true。
访问函数
| bool | supportsCompute() const |
[只读] supportsImageStore : const bool
如果支持 Image Store 操作,则返回 true。
访问函数
| bool | supportsImageStore() const |
[只读] supportsSSBO : const bool
如果支持 SSBO,则返回 true。
访问函数
| bool | supportsSSBO() const |
[只读] supportsUBO : const bool
如果支持 UBO,则返回 true。
访问函数
| bool | supportsUBO() const |
[只读] valid : const bool
如果数据有效,否则 Qt 3D 未成功查询可用的硬件。
访问函数
| bool | isValid() const |
[只读] 厂商 : const QString
返回厂商标识字符串。
访问函数
| QString | 厂商() const |
© 2024 Qt 公司有限公司。本文档中的文档贡献作品的版权归其各自的所有者。本提供的文档根据自由软件基金会发布的GNU 自由文档许可协议版本 1.3条款进行许可。Qt 及其相应的标志是芬兰以及/或世界各国 Qt 公司有限公司的商标。所有其他商标均为其各自所有者的财产。