QRenderCapabilities Class

class Qt3DRender ::QRenderCapabilities

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.

特性文檔編製

api : const API

Returns which API is currently in use.

訪問函數:

Qt3DRender::QRenderCapabilities::API api () const

driverVersion : const QString

Returns the driver version string.

訪問函數:

QString driverVersion () const

extensions : const QStringList

Returns the list of extensions currently available.

訪問函數:

QStringList extensions () const

glslVersion : const QString

Returns the GLSL version string.

訪問函數:

QString glslVersion () const

majorVersion : const int

Returns the major version number currently in use.

訪問函數:

int majorVersion () const

maxComputeInvocations : const int

Returns the maximum number of Compute Shaders available.

訪問函數:

int maxComputeInvocations () const

maxComputeSharedMemorySize : const int

Returns the maximum amount of shared memory available for Compute Shaders.

訪問函數:

int maxComputeSharedMemorySize () const

maxImageUnits : const int

Returns the maximum number of available image units.

訪問函數:

int maxImageUnits () const

maxSSBOBindings : const int

Returns the maximum number of available SSBO binding points, if supported.

訪問函數:

int maxSSBOBindings () const

maxSSBOSize : const int

Returns the maximum size of SSBOs, if available.

訪問函數:

int maxSSBOSize () const

maxSamples : const int

Returns the maximum number of samples available for MSAA.

訪問函數:

int maxSamples () const

maxTextureLayers : const int

Returns the number of available texture layers.

訪問函數:

int maxTextureLayers () const

maxTextureSize : const int

Returns the maximum size of textures.

訪問函數:

int maxTextureSize () const

maxTextureUnits : const int

Returns the number of available texture units.

訪問函數:

int maxTextureUnits () const

maxUBOBindings : const int

Returns the maximum number of available UBO binding points, if supported.

訪問函數:

int maxUBOBindings () const

maxUBOSize : const int

Returns the maximum size of UBOs, if supported.

訪問函數:

int maxUBOSize () const

maxWorkGroupCountX : const int

Returns the maximum number of available Compute Shader workgroups in the X axis.

訪問函數:

int maxWorkGroupCountX () const

maxWorkGroupCountY : const int

Returns the maximum number of available Compute Shader workgroups in the Y axis.

訪問函數:

int maxWorkGroupCountY () const

maxWorkGroupCountZ : const int

Returns the maximum number of available Compute Shader workgroups in the Z axis.

訪問函數:

int maxWorkGroupCountZ () const

maxWorkGroupSizeX : const int

Returns the maximum size of Compute Shader local workgroups in the X axis.

訪問函數:

int maxWorkGroupSizeX () const

maxWorkGroupSizeY : const int

Returns the maximum size of Compute Shader local workgroups in the Y axis.

訪問函數:

int maxWorkGroupSizeY () const

maxWorkGroupSizeZ : const int

Returns the maximum size of Compute Shader local workgroups in the Z axis.

訪問函數:

int maxWorkGroupSizeZ () const

minorVersion : const int

Returns the minor version number currently in use.

訪問函數:

int minorVersion () const

profile : const Profile

Returns which profile (if applicable) is currently in use.

訪問函數:

Qt3DRender::QRenderCapabilities::Profile profile () const

renderer : const QString

Returns the device identification string.

訪問函數:

QString renderer () const

supportsCompute : const bool

Returns true if Compute Shaders are supported.

訪問函數:

bool supportsCompute () const

supportsImageStore : const bool

Returns true if Image Store operations are supported.

訪問函數:

bool supportsImageStore () const

supportsSSBO : const bool

Returns true if SSBOs are supported.

訪問函數:

bool supportsSSBO () const

supportsUBO : const bool

Returns true if UBOs are supported.

訪問函數:

bool supportsUBO () const

valid : const bool

true if the data is valid, otherwise Qt 3D failed to query the available hardware.

訪問函數:

bool isValid () const

vendor : const QString

Returns the vendor identification string.

訪問函數:

QString vendor () const