![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QQuickGraphicsDevice class provides an opaque container for native graphics objects representing graphics devices or contexts. More...
#include <qquickgraphicsdevice.h>
Public Member Functions | |
QQuickGraphicsDevice () | |
Constructs a default QQuickGraphicsDevice that does not reference any native objects. | |
~QQuickGraphicsDevice () | |
Destructor. | |
QQuickGraphicsDevice (const QQuickGraphicsDevice &other) | |
QQuickGraphicsDevice & | operator= (const QQuickGraphicsDevice &other) |
bool | isNull () const |
Static Public Member Functions | |
static QQuickGraphicsDevice | fromRhi (QRhi *rhi) |
static QQuickGraphicsDevice | fromRhiAdapter (QRhiAdapter *adapter) |
Friends | |
class | QQuickGraphicsDevicePrivate |
The QQuickGraphicsDevice class provides an opaque container for native graphics objects representing graphics devices or contexts.
Definition at line 26 of file qquickgraphicsdevice.h.
QQuickGraphicsDevice::QQuickGraphicsDevice | ( | ) |
Constructs a default QQuickGraphicsDevice that does not reference any native objects.
Definition at line 24 of file qquickgraphicsdevice.cpp.
QQuickGraphicsDevice::~QQuickGraphicsDevice | ( | ) |
Destructor.
Definition at line 58 of file qquickgraphicsdevice.cpp.
QQuickGraphicsDevice::QQuickGraphicsDevice | ( | const QQuickGraphicsDevice & | other | ) |
Definition at line 40 of file qquickgraphicsdevice.cpp.
|
static |
This factory function is suitable for OpenGL.
This factory function is suitable for Direct3D 11 and 12, particularly in combination with OpenXR. adapterLuidLow and adapterLuidHigh together specify a LUID, while a featureLevel specifies a {D3D_FEATURE_LEVEL_} value. featureLevel can be set to 0 if it is not intended to be specified, in which case the scene graph's defaults will be used.
minimum
feature level passed on to D3D12CreateDevice().This factory function is suitable for Direct3D 11. device is expected to be a {ID3D11Device*}, context is expected to be a
{ID3D11DeviceContext*}.
It also supports Direct 3D 12, if that is the 3D API used at run time. With D3D12 context is unused and can be set to null. device is expected to be a {ID3D12Device*}.
This factory function is suitable for Metal.
This factory function is suitable for Vulkan, particularly in combination with OpenXR.
This factory function is suitable for Vulkan. physicalDevice, device and queueFamilyIndex must always be provided. queueIndex is optional since the default value of 0 is often suitable.
Definition at line 225 of file qquickgraphicsdevice.cpp.
|
static |
Not applicable to QRhi backends and graphics APIs where QRhiAdapter does not have a real implementation.
Equivalent to fromAdapter() for Direct 3D, and fromPhysicalDevice() for Vulkan.
Definition at line 249 of file qquickgraphicsdevice.cpp.
bool QQuickGraphicsDevice::isNull | ( | ) | const |
Definition at line 68 of file qquickgraphicsdevice.cpp.
QQuickGraphicsDevice & QQuickGraphicsDevice::operator= | ( | const QQuickGraphicsDevice & | other | ) |
Definition at line 49 of file qquickgraphicsdevice.cpp.
|
friend |
Definition at line 60 of file qquickgraphicsdevice.h.