Auf dieser Seite

Qt3DRender::QRenderCapabilities Class

class Qt3DRender::QRenderCapabilities

Die Klasse „QRenderCapabilities“ enthält Einstellungen zu den verfügbaren Rendering-Engines. Mehr...

Header: #include <qrendercapabilities.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
In QML: RenderCapabilities
Erbt von: QObject
Status: Veraltet

Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.

Eigenschaften

Öffentliche Funktionen

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

Ausführliche Beschreibung

QRenderCapabilities liefert Details zu den grafischen Funktionen, die zur Laufzeit verfügbar sind. Die Klasse kann beispielsweise dazu verwendet werden, um zu entscheiden, welcher Codepfad für bestimmte Algorithmen verwendet werden soll – je nachdem, ob Compute-Shader verfügbar sind oder nicht.

Dokumentation der Eigenschaften

[read-only] api : const API

Gibt zurück, welche API derzeit verwendet wird.

Zugriffsfunktionen:

Qt3DRender::QRenderCapabilities::API api() const

[read-only] driverVersion : const QString

Gibt die Zeichenfolge mit der Treiberversion zurück.

Zugriffsfunktionen:

QString driverVersion() const

[read-only] extensions : const QStringList

Gibt die Liste der derzeit verfügbaren Erweiterungen zurück.

Zugriffsfunktionen:

QStringList extensions() const

[read-only] glslVersion : const QString

Gibt die GLSL-Versionszeichenfolge zurück.

Zugriffsfunktionen:

QString glslVersion() const

[read-only] majorVersion : const int

Gibt die derzeit verwendete Hauptversionsnummer zurück.

Zugriffsfunktionen:

int majorVersion() const

[read-only] maxComputeInvocations : const int

Gibt die maximale Anzahl der verfügbaren Compute-Shader zurück.

Zugriffsfunktionen:

int maxComputeInvocations() const

[read-only] maxComputeSharedMemorySize : const int

Gibt die maximale Größe des für Compute-Shader verfügbaren gemeinsamen Speichers zurück.

Zugriffsfunktionen:

int maxComputeSharedMemorySize() const

[read-only] maxImageUnits : const int

Gibt die maximale Anzahl der verfügbaren Bildeinheiten zurück.

Zugriffsfunktionen:

int maxImageUnits() const

[read-only] maxSSBOBindings : const int

Gibt die maximale Anzahl der verfügbaren SSBO-Bindungspunkte zurück, sofern diese unterstützt werden.

Zugriffsfunktionen:

int maxSSBOBindings() const

[read-only] maxSSBOSize : const int

Gibt die maximale Größe von SSBOs zurück, sofern verfügbar.

Zugriffsfunktionen:

int maxSSBOSize() const

[read-only] maxSamples : const int

Gibt die maximale Anzahl der für MSAA verfügbaren Samples zurück.

Zugriffsfunktionen:

int maxSamples() const

[read-only] maxTextureLayers : const int

Gibt die Anzahl der verfügbaren Textur-Ebenen zurück.

Zugriffsfunktionen:

int maxTextureLayers() const

[read-only] maxTextureSize : const int

Gibt die maximale Größe von Texturen zurück.

Zugriffsfunktionen:

int maxTextureSize() const

[read-only] maxTextureUnits : const int

Gibt die Anzahl der verfügbaren Textureinheiten zurück.

Zugriffsfunktionen:

int maxTextureUnits() const

[read-only] maxUBOBindings : const int

Gibt die maximale Anzahl der verfügbaren UBO-Bindungspunkte zurück, sofern diese unterstützt werden.

Zugriffsfunktionen:

int maxUBOBindings() const

[read-only] maxUBOSize : const int

Gibt die maximale Größe von UBOs zurück, sofern diese unterstützt werden.

Zugriffsfunktionen:

int maxUBOSize() const

[read-only] maxWorkGroupCountX : const int

Gibt die maximale Anzahl der verfügbaren Compute-Shader-Arbeitsgruppen auf der X-Achse zurück.

Zugriffsfunktionen:

int maxWorkGroupCountX() const

[read-only] maxWorkGroupCountY : const int

Gibt die maximale Anzahl der verfügbaren Compute-Shader-Arbeitsgruppen auf der Y-Achse zurück.

Zugriffsfunktionen:

int maxWorkGroupCountY() const

[read-only] maxWorkGroupCountZ : const int

Gibt die maximale Anzahl der verfügbaren Compute-Shader-Arbeitsgruppen auf der Z-Achse zurück.

Zugriffsfunktionen:

int maxWorkGroupCountZ() const

[read-only] maxWorkGroupSizeX : const int

Gibt die maximale Größe der lokalen Arbeitsgruppen des Compute-Shaders auf der X-Achse zurück.

Zugriffsfunktionen:

int maxWorkGroupSizeX() const

[read-only] maxWorkGroupSizeY : const int

Gibt die maximale Größe der lokalen Arbeitsgruppen des Compute Shaders auf der Y-Achse zurück.

Zugriffsfunktionen:

int maxWorkGroupSizeY() const

[read-only] maxWorkGroupSizeZ : const int

Gibt die maximale Größe der lokalen Arbeitsgruppen des Compute-Shaders entlang der Z-Achse zurück.

Zugriffsfunktionen:

int maxWorkGroupSizeZ() const

[read-only] minorVersion : const int

Gibt die derzeit verwendete Minor-Versionsnummer zurück.

Zugriffsfunktionen:

int minorVersion() const

[read-only] profile : const Profile

Gibt zurück, welches Profil (falls vorhanden) derzeit verwendet wird.

Zugriffsfunktionen:

Qt3DRender::QRenderCapabilities::Profile profile() const

[read-only] renderer : const QString

Gibt die Geräte-ID als Zeichenfolge zurück.

Zugriffsfunktionen:

QString renderer() const

[read-only] supportsCompute : const bool

Gibt „true“ zurück, wenn Compute-Shader unterstützt werden.

Zugriffsfunktionen:

bool supportsCompute() const

[read-only] supportsImageStore : const bool

Gibt „true“ zurück, wenn Image-Store-Operationen unterstützt werden.

Zugriffsfunktionen:

bool supportsImageStore() const

[read-only] supportsSSBO : const bool

Gibt „true“ zurück, wenn SSBOs unterstützt werden.

Zugriffsfunktionen:

bool supportsSSBO() const

[read-only] supportsUBO : const bool

Gibt „true“ zurück, wenn UBOs unterstützt werden.

Zugriffsfunktionen:

bool supportsUBO() const

[read-only] valid : const bool

wahr, wenn die Daten gültig sind, andernfalls „ Qt 3D “ – die Abfrage der verfügbaren Hardware ist fehlgeschlagen.

Zugriffsfunktionen:

bool isValid() const

[read-only] vendor : const QString

Gibt die Anbieterkennung zurück.

Zugriffsfunktionen:

QString vendor() const

© 2026 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.