QRenderCapabilities

The QRenderCapabilities class holds settings related to available rendering engines More

Inheritance diagram of PySide2.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 PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities([parent=None])
Parameters:

parentPySide2.QtCore.QObject

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.API
PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.Profile
PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.api()
Return type:

API

Returns which API is currently in use.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.driverVersion()
Return type:

str

Returns the driver version string.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.extensions()
Return type:

list of strings

Returns the list of extensions currently available.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.glslVersion()
Return type:

str

Returns the GLSL version string.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.isValid()
Return type:

bool

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

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.majorVersion()
Return type:

int

Returns the major version number currently in use.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxComputeInvocations()
Return type:

int

Returns the maximum number of Compute Shaders available.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxComputeSharedMemorySize()
Return type:

int

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

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxImageUnits()
Return type:

int

Returns the maximum number of available image units.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxSSBOBindings()
Return type:

int

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

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxSSBOSize()
Return type:

int

Returns the maximum size of SSBOs, if available.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxSamples()
Return type:

int

Returns the maximum number of samples available for MSAA.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxTextureLayers()
Return type:

int

Returns the number of available texture layers.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxTextureSize()
Return type:

int

Returns the maximum size of textures.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxTextureUnits()
Return type:

int

Returns the number of available texture units.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxUBOBindings()
Return type:

int

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

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxUBOSize()
Return type:

int

Returns the maximum size of UBOs, if supported.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxWorkGroupCountX()
Return type:

int

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

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxWorkGroupCountY()
Return type:

int

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

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxWorkGroupCountZ()
Return type:

int

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

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxWorkGroupSizeX()
Return type:

int

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

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxWorkGroupSizeY()
Return type:

int

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

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.maxWorkGroupSizeZ()
Return type:

int

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

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.minorVersion()
Return type:

int

Returns the minor version number currently in use.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.profile()
Return type:

Profile

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

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.renderer()
Return type:

str

Returns the device identification string.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.supportsCompute()
Return type:

bool

Returns true if Compute Shaders are supported.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.supportsImageStore()
Return type:

bool

Returns true if Image Store operations are supported.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.supportsSSBO()
Return type:

bool

Returns true if SSBOs are supported.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.supportsUBO()
Return type:

bool

Returns true if UBOs are supported.

PySide2.Qt3DRender.Qt3DRender.QRenderCapabilities.vendor()
Return type:

str

Returns the vendor identification string.