QRhiD3D12NativeHandles Struct

Holds the D3D12 device used by the QRhi. More...

Header: #include <QRhiD3D12NativeHandles>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Inherits: QRhiNativeHandles

Public Variables

Detailed Description

Note: The class uses void * as the type since including the COM-based d3d12.h headers is not acceptable here. The actual types are ID3D12Device * and ID3D12CommandQueue *.

Note: This is a RHI API with limited compatibility guarantees, see QRhi for details.

Member Variable Documentation

qint32 QRhiD3D12NativeHandles::adapterLuidHigh

The high part of the local identifier (LUID) of the DXGI adapter to use. Relevant only when QRhi creates the device, ignored when importing a device and device context.

quint32 QRhiD3D12NativeHandles::adapterLuidLow

The low part of the local identifier (LUID) of the DXGI adapter to use. Relevant only when QRhi creates the device, ignored when importing a device and device context.

void *QRhiD3D12NativeHandles::commandQueue

When set, must point to a ID3D12CommandQueue. It allows to optionally import a command queue as well, in addition to a device.

void *QRhiD3D12NativeHandles::dev

Points to a ID3D12Device or left set to nullptr if no existing device is to be imported.

int QRhiD3D12NativeHandles::minimumFeatureLevel

Specifies the minimum feature level passed to D3D12CreateDevice(). When not set, D3D_FEATURE_LEVEL_11_0 is used. See this page for details.

Relevant only when QRhi creates the device, ignored when importing a device and device context.

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