31void QQuickGraphicsDevice::detach()
69 return d->
type == QQuickGraphicsDevicePrivate::Type::Null;
82#if QT_CONFIG(opengl) || defined(Q_QDOC)
87 d->type = QQuickGraphicsDevicePrivate::Type::OpenGLContext;
105#if defined(Q_OS_WIN) || defined(Q_QDOC)
112 d->type = QQuickGraphicsDevicePrivate::Type::Adapter;
113 d->u.adapter = { adapterLuidLow, adapterLuidHigh, featureLevel };
134#if defined(Q_OS_WIN) || defined(Q_QDOC)
139 d->type = QQuickGraphicsDevicePrivate::Type::DeviceAndContext;
156#if defined(Q_OS_MACOS) || defined(Q_OS_IOS) || defined(Q_QDOC)
158 MTLCommandQueue *commandQueue)
162 d->type = QQuickGraphicsDevicePrivate::Type::DeviceAndCommandQueue;
163 d->u.deviceAndCommandQueue = {
device, commandQueue };
178#if QT_CONFIG(vulkan) || defined(Q_QDOC)
183 d->type = QQuickGraphicsDevicePrivate::Type::PhysicalDevice;
184 d->u.physicalDevice = { physicalDevice };
200#if QT_CONFIG(vulkan) || defined(Q_QDOC)
203 int queueFamilyIndex,
208 d->type = QQuickGraphicsDevicePrivate::Type::DeviceObjects;
209 d->u.deviceObjects = { physicalDevice,
device, queueFamilyIndex, queueIndex };
228 d->type = QQuickGraphicsDevicePrivate::Type::Rhi;
IOBluetoothDevice * device
QQuickGraphicsDevicePrivate()
static QQuickGraphicsDevicePrivate * get(QQuickGraphicsDevice *p)
The QQuickGraphicsDevice class provides an opaque container for native graphics objects representing ...
QQuickGraphicsDevice & operator=(const QQuickGraphicsDevice &other)
static QQuickGraphicsDevice fromRhi(QRhi *rhi)
QQuickGraphicsDevice()
Constructs a default QQuickGraphicsDevice that does not reference any native objects.
~QQuickGraphicsDevice()
Destructor.
Combined button and popup list for selecting options.
QT_WARNING_POP void qAtomicAssign(T *&d, T *x)
This is a helper for the assignment operators of implicitly shared classes.
void qAtomicDetach(T *&d)
This is a helper for the detach method of implicitly shared classes.