QRhiD3D12InitParams Struct
Direct3D 12 특정 초기화 매개변수. 더 보기...
Header: | #include <rhi/qrhi.h> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
qmake: | QT += gui-private |
상속합니다: | QRhiInitParams |
공용 변수
bool | enableDebugLayer |
상세 설명
참고: 호환성이 제한적으로 보장되는 RHI API이며, 자세한 내용은 QRhi 을 참조하세요.
D3D12 기반 QRhi 에는 초기화를 위한 특별한 파라미터가 필요하지 않습니다. 원하는 경우 enableDebugLayer 을 true
으로 설정하여 Direct3D 디버그 레이어를 활성화할 수 있습니다. 이는 개발 중에는 유용할 수 있지만 프로덕션 빌드에서는 피해야 합니다.
QRhiD3D12InitParams params; params.enableDebugLayer = true; rhi = QRhi::create(QRhi::D3D12, ¶ms);
참고: QRhiSwapChain 은 표면 유형이 QSurface::Direct3DSurface 으로 설정된 QWindow 인스턴스와 함께만 사용해야 합니다.
기존 Direct3D 12 장치로 작업하기
다른 그래픽 엔진과 상호 운용할 때 동일한 Direct3D 장치를 사용하는 QRhi 인스턴스를 가져와야 할 수 있습니다. 이는 QRhiD3D12NativeHandles 에 대한 포인터를 QRhi::create()로 전달하면 됩니다. QRhi 는 외부 객체에 대한 소유권을 갖지 않습니다.
예를 들어 OpenXR과 함께 QRhi 을 사용하는 경우, 장치 생성은 QRhi 에 맡기면서 사용할 어댑터와 선택적으로 장치에 요청할 기능 수준을 지정하고 싶을 때가 있습니다. 이 경우 장치 포인터를 null로 설정하고 어댑터 LUID 및 기능 수준을 지정하면 됩니다.
선택적으로 commandQueue
을 null이 아닌 값으로 설정하여 ID3D12CommandQueue도 지정할 수 있습니다.
© 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.