The QRenderCapabilities class holds settings related to available rendering engines. 更多...
头: | #include <QRenderCapabilities> |
Since: | Qt 5.15 |
实例化: | RenderCapabilities |
继承: | QObject |
该类在 Qt 5.15 引入。
|
|
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 |
QRenderCapabilities provides details of graphical features that are available at runtime. It can be used to decide which code path to use for some algorithms, for example, depending on whether compute shaders are available or not.
Returns which API is currently in use.
访问函数:
Qt3DRender::QRenderCapabilities::API | api () const |
Returns the driver version string.
访问函数:
QString | driverVersion () const |
Returns the list of extensions currently available.
访问函数:
QStringList | extensions () const |
Returns the GLSL version string.
访问函数:
QString | glslVersion () const |
Returns the major version number currently in use.
访问函数:
int | majorVersion () const |
Returns the maximum number of Compute Shaders available.
访问函数:
int | maxComputeInvocations () const |
Returns the maximum amount of shared memory available for Compute Shaders.
访问函数:
int | maxComputeSharedMemorySize () const |
Returns the maximum number of available image units.
访问函数:
int | maxImageUnits () const |
Returns the maximum number of available SSBO binding points, if supported.
访问函数:
int | maxSSBOBindings () const |
Returns the maximum size of SSBOs, if available.
访问函数:
int | maxSSBOSize () const |
Returns the maximum number of samples available for MSAA.
访问函数:
int | maxSamples () const |
Returns the number of available texture layers.
访问函数:
int | maxTextureLayers () const |
Returns the maximum size of textures.
访问函数:
int | maxTextureSize () const |
Returns the number of available texture units.
访问函数:
int | maxTextureUnits () const |
Returns the maximum number of available UBO binding points, if supported.
访问函数:
int | maxUBOBindings () const |
Returns the maximum size of UBOs, if supported.
访问函数:
int | maxUBOSize () const |
Returns the maximum number of available Compute Shader workgroups in the X axis.
访问函数:
int | maxWorkGroupCountX () const |
Returns the maximum number of available Compute Shader workgroups in the Y axis.
访问函数:
int | maxWorkGroupCountY () const |
Returns the maximum number of available Compute Shader workgroups in the Z axis.
访问函数:
int | maxWorkGroupCountZ () const |
Returns the maximum size of Compute Shader local workgroups in the X axis.
访问函数:
int | maxWorkGroupSizeX () const |
Returns the maximum size of Compute Shader local workgroups in the Y axis.
访问函数:
int | maxWorkGroupSizeY () const |
Returns the maximum size of Compute Shader local workgroups in the Z axis.
访问函数:
int | maxWorkGroupSizeZ () const |
Returns the minor version number currently in use.
访问函数:
int | minorVersion () const |
Returns which profile (if applicable) is currently in use.
访问函数:
Qt3DRender::QRenderCapabilities::Profile | profile () const |
Returns the device identification string.
访问函数:
QString | renderer () const |
Returns true if Compute Shaders are supported.
访问函数:
bool | supportsCompute () const |
Returns true if Image Store operations are supported.
访问函数:
bool | supportsImageStore () const |
Returns true if SSBOs are supported.
访问函数:
bool | supportsSSBO () const |
Returns true if UBOs are supported.
访问函数:
bool | supportsUBO () const |
true if the data is valid, otherwise Qt 3D failed to query the available hardware.
访问函数:
bool | isValid () const |
Returns the vendor identification string.
访问函数:
QString | vendor () const |