씬 그래프 - QML에서 Direct3D 11
Qt Quick 씬에서 Direct3D 11로 직접 렌더링하는 방법을 보여줍니다.
Direct3D 11 Under QML 예제에서는 애플리케이션이 QQuickWindow::beforeRendering() 신호를 사용하여 Qt Quick 장면 아래에서 사용자 지정 D3D11 콘텐츠를 그리는 방법을 보여줍니다. 이 신호는 씬 그래프가 렌더링을 시작하기 전에 모든 프레임이 시작될 때 방출되므로 이 신호에 대한 응답으로 수행되는 모든 D3D11 그리기 호출은 Qt Quick 항목 아래에 스택됩니다.
또는 Qt Quick 씬 위에 D3D11 콘텐츠를 렌더링하려는 애플리케이션은 QQuickWindow::afterRendering() 신호에 연결하여 렌더링할 수 있습니다.
이 예제에서는 D3D11 렌더링에 영향을 주는 값을 QML에 노출하는 방법도 살펴봅니다. QML 파일에서 NumberAnimation 을 사용하여 임계값을 애니메이션하고 이 값은 동그라미를 그리는 HLSL 셰이더 프로그램에서 사용됩니다.
이 예제는 대부분의 경우 OpenGL Under QML, Metal Under QML 및 Vulkan Under QML 예제와 동일하며, 모두 다른 네이티브 API를 통해 동일한 커스텀 콘텐츠를 렌더링합니다.
© 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.