En esta página

QRhiD3D12NativeHandles Struct

Contiene el dispositivo D3D12 utilizado por QRhi. Más...

Cabecera: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
Hereda: QRhiNativeHandles

Variables públicas

Descripción detallada

Nota: La clase utiliza void * como tipo ya que incluir las cabeceras d3d12.h basadas en COM no es aceptable aquí. Los tipos reales son ID3D12Device * y ID3D12CommandQueue *.

Nota: Esta es una API RHI con garantías de compatibilidad limitadas, véase QRhi para más detalles.

Documentación de variables miembro

qint32 QRhiD3D12NativeHandles::adapterLuidHigh

La parte alta del identificador local (LUID) del adaptador DXGI a utilizar. Relevante sólo cuando QRhi crea el dispositivo, ignorado al importar un dispositivo y contexto de dispositivo.

quint32 QRhiD3D12NativeHandles::adapterLuidLow

La parte baja del identificador local (LUID) del adaptador DXGI a utilizar. Relevante sólo cuando QRhi crea el dispositivo, ignorado al importar un dispositivo y contexto de dispositivo.

void *QRhiD3D12NativeHandles::commandQueue

Cuando se establece, debe apuntar a un ID3D12CommandQueue. Permite importar opcionalmente una cola de comandos también, además de un dispositivo.

void *QRhiD3D12NativeHandles::dev

Apunta a un ID3D12Device o se deja en nullptr si no se va a importar ningún dispositivo existente.

int QRhiD3D12NativeHandles::minimumFeatureLevel

Especifica el nivel de característica mínimo pasado a D3D12CreateDevice(). Si no se define, se utiliza D3D_FEATURE_LEVEL_11_0. Consulte esta página para obtener más información.

Relevante sólo cuando QRhi crea el dispositivo, ignorado al importar un dispositivo y un contexto de dispositivo.

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