QRhiD3D12NativeHandles Struct
头文件: | #include <rhi/qrhi.h> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
qmake: | QT += gui-private |
继承: | QRhiNativeHandles |
公共变量
qint32 | adapterLuidHigh |
quint32 | adapterLuidLow |
void * | commandQueue |
void * | dev |
int | minimumFeatureLevel |
详细说明
注: 该类使用void *
作为类型,因为这里不接受包含基于 COM 的d3d12.h
头文件。实际类型为ID3D12Device *
和ID3D12CommandQueue *
。
注: 这是一个 RHI API,兼容性保证有限,详情请参见QRhi 。
成员变量文档
qint32 QRhiD3D12NativeHandles::adapterLuidHigh
要使用的 DXGI 适配器的本地标识符(LUID)的高位部分。仅在QRhi 创建设备时相关,导入设备和设备上下文时忽略。
quint32 QRhiD3D12NativeHandles::adapterLuidLow
要使用的 DXGI 适配器本地标识符 (LUID) 的低字节。仅在QRhi 创建设备时相关,导入设备和设备上下文时忽略。
void *QRhiD3D12NativeHandles::commandQueue
设置后,必须指向ID3D12CommandQueue。除设备外,还可选择导入命令队列。
void *QRhiD3D12NativeHandles::dev
指向ID3D12Device,如果没有要导入的现有设备,则将其设置为nullptr
。
int QRhiD3D12NativeHandles::minimumFeatureLevel
指定传递给D3D12CreateDevice() 的 最小特征级别。未设置时,将使用D3D_FEATURE_LEVEL_11_0
。详情请参见本页。
仅在QRhi 创建设备时相关,导入设备和设备上下文时忽略。
© 2025 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.