QRenderCapabilities

The QRenderCapabilities class holds settings related to available rendering engines. More

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities

New in version 5.15.

Synopsis

Functions

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

parentPySide6.QtCore.QObject

PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.API
PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.Profile
PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.api()
Return type

API

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.

PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.maxComputeSharedMemorySize()
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.

PySide6.Qt3DRender.Qt3DRender.QRenderCapabilities.profile()
Return type

Profile

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.