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.