En esta página

QRhiD3D11NativeHandles Struct

Contiene el dispositivo D3D y el contexto de dispositivo utilizados 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
Desde: Qt 6.6
Hereda: QRhiNativeHandles

Variables Públicas

qint32 adapterLuidHigh
quint32 adapterLuidLow
void *context
void *dev
int featureLevel

Descripción detallada

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

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 QRhiD3D11NativeHandles::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 QRhiD3D11NativeHandles::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 *QRhiD3D11NativeHandles::context

Apunta a un ID3D11DeviceContext o se deja establecido en nullptr si no se va a importar ningún contexto de dispositivo existente.

Nota: Al importar un dispositivo, tanto el dispositivo como el contexto de dispositivo deben ser objetos válidos.

void *QRhiD3D11NativeHandles::dev

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

Nota: Al importar un dispositivo, tanto el dispositivo como el contexto del dispositivo deben ser objetos válidos.

int QRhiD3D11NativeHandles::featureLevel

Especifica el nivel de característica pasado a D3D11CreateDevice(). Relevante sólo cuando QRhi crea el dispositivo, ignorado al importar un dispositivo y un contexto de dispositivo. Si no se define, se aplican las reglas por defecto descritas en la documentación de D3D.

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