![]() |
Qt 6.x
The Qt SDK
|
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) |
Friends | |
class | QQuickGraphicsDevicePrivate |
The QQuickGraphicsDevice class provides an opaque container for native graphics objects representing graphics devices or contexts.
Definition at line 24 of file qquickgraphicsdevice.h.
QQuickGraphicsDevice::QQuickGraphicsDevice | ( | ) |
Constructs a default QQuickGraphicsDevice that does not reference any native objects.
Definition at line 23 of file qquickgraphicsdevice.cpp.
QQuickGraphicsDevice::~QQuickGraphicsDevice | ( | ) |
Destructor.
Definition at line 57 of file qquickgraphicsdevice.cpp.
References QBasicAtomicInteger< T >::deref(), and QQuickGraphicsDevicePrivate::ref.
QQuickGraphicsDevice::QQuickGraphicsDevice | ( | const QQuickGraphicsDevice & | other | ) |
Definition at line 39 of file qquickgraphicsdevice.cpp.
References QBasicAtomicInteger< T >::ref(), and QQuickGraphicsDevicePrivate::ref.
|
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 224 of file qquickgraphicsdevice.cpp.
References d, and QQuickGraphicsDevicePrivate::get().
Referenced by QQuickWidgetPrivate::initializeWithRhi().
bool QQuickGraphicsDevice::isNull | ( | ) | const |
Definition at line 67 of file qquickgraphicsdevice.cpp.
References QQuickGraphicsDevicePrivate::type.
QQuickGraphicsDevice & QQuickGraphicsDevice::operator= | ( | const QQuickGraphicsDevice & | other | ) |
Definition at line 48 of file qquickgraphicsdevice.cpp.
References other(), and qAtomicAssign().
|
friend |
Definition at line 57 of file qquickgraphicsdevice.h.