QRenderCapabilities¶
The QRenderCapabilities
class holds settings related to available rendering engines. More…
New in version 5.15.
Synopsis¶
Functions¶
def
api
()def
driverVersion
()def
extensions
()def
glslVersion
()def
isValid
()def
majorVersion
()def
maxComputeInvocations
()def
maxComputeSharedMemorySize
()def
maxImageUnits
()def
maxSSBOBindings
()def
maxSSBOSize
()def
maxSamples
()def
maxTextureLayers
()def
maxTextureSize
()def
maxTextureUnits
()def
maxUBOBindings
()def
maxUBOSize
()def
maxWorkGroupCountX
()def
maxWorkGroupCountY
()def
maxWorkGroupCountZ
()def
maxWorkGroupSizeX
()def
maxWorkGroupSizeY
()def
maxWorkGroupSizeZ
()def
minorVersion
()def
profile
()def
renderer
()def
supportsCompute
()def
supportsImageStore
()def
supportsSSBO
()def
supportsUBO
()def
vendor
()
Detailed Description¶
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.
- class PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities([parent=None])¶
- Parameters
parent –
PySide6.QtCore.QObject
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.API¶
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.Profile¶
Returns which API is currently in use.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.driverVersion()¶
- Return type
str
Returns the driver version string.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.extensions()¶
- Return type
list of strings
Returns the list of extensions currently available.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.glslVersion()¶
- Return type
str
Returns the GLSL version string.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.isValid()¶
- Return type
bool
true if the data is valid, otherwise Qt 3D failed to query the available hardware.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.majorVersion()¶
- Return type
int
Returns the major version number currently in use.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxComputeInvocations()¶
- Return type
int
Returns the maximum number of Compute Shaders available.
- Return type
int
Returns the maximum amount of shared memory available for Compute Shaders.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxImageUnits()¶
- Return type
int
Returns the maximum number of available image units.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxSSBOBindings()¶
- Return type
int
Returns the maximum number of available SSBO binding points, if supported.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxSSBOSize()¶
- Return type
int
Returns the maximum size of SSBOs, if available.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxSamples()¶
- Return type
int
Returns the maximum number of samples available for MSAA.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxTextureLayers()¶
- Return type
int
Returns the number of available texture layers.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxTextureSize()¶
- Return type
int
Returns the maximum size of textures.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxTextureUnits()¶
- Return type
int
Returns the number of available texture units.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxUBOBindings()¶
- Return type
int
Returns the maximum number of available UBO binding points, if supported.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxUBOSize()¶
- Return type
int
Returns the maximum size of UBOs, if supported.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxWorkGroupCountX()¶
- Return type
int
Returns the maximum number of available Compute Shader workgroups in the X axis.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxWorkGroupCountY()¶
- Return type
int
Returns the maximum number of available Compute Shader workgroups in the Y axis.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxWorkGroupCountZ()¶
- Return type
int
Returns the maximum number of available Compute Shader workgroups in the Z axis.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxWorkGroupSizeX()¶
- Return type
int
Returns the maximum size of Compute Shader local workgroups in the X axis.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxWorkGroupSizeY()¶
- Return type
int
Returns the maximum size of Compute Shader local workgroups in the Y axis.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxWorkGroupSizeZ()¶
- Return type
int
Returns the maximum size of Compute Shader local workgroups in the Z axis.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.minorVersion()¶
- Return type
int
Returns the minor version number currently in use.
Returns which profile (if applicable) is currently in use.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.renderer()¶
- Return type
str
Returns the device identification string.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.supportsCompute()¶
- Return type
bool
Returns true if Compute Shaders are supported.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.supportsImageStore()¶
- Return type
bool
Returns true if Image Store operations are supported.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.supportsSSBO()¶
- Return type
bool
Returns true if SSBOs are supported.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.supportsUBO()¶
- Return type
bool
Returns true if UBOs are supported.
- PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.vendor()¶
- Return type
str
Returns the vendor identification string.
© 2022 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.