DepthStencilAttachment QML Type
RenderPass 에 대한 깊이-스텐실 어태치먼트를 정의합니다. 더 보기...
| Import Statement: | import QtQuick3D |
| Since: | Qt 6.11 |
| Inherits: |
상세 설명
DepthStencilAttachment는 RenderPass 에 암시적 깊이/스텐실 렌더 버퍼를 추가합니다. 이 렌더 버퍼는 렌더링 시스템에 의해 자동으로 생성 및 관리됩니다. 텍스처가 아닌 불투명 렌더 버퍼를 기반으로 하므로, 셰이더에서 해당 내용을 샘플링할 수 없습니다. 이후 패스에서 깊이 값을 다시 읽어야 하는 경우, 대신 DepthTextureAttachment 를 사용하십시오.
한 패스에서 깊이 테스트 및/또는 스텐실 연산이 필요하지만, 이후에 깊이 데이터에 접근할 필요가 없는 경우 DepthStencilAttachment를 사용하십시오.
RenderPass {
commands: [
ColorAttachment { name: "color0"; target: colorTexture },
// Add a depth buffer so depth testing works in this pass
DepthStencilAttachment {}
]
}DepthTextureAttachment 및 RenderPassTexture도 참조하십시오 .
© 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.