DepthTextureAttachment QML Type
Definiert eine Tiefentextur-Erweiterung für eine „ pass “. Mehr...
| Import Statement: | import QtQuick3D |
| Since: | Qt 6.11 |
| Inherits: |
Eigenschaften
- target : RenderPassTexture
Ausführliche Beschreibung
DepthTextureAttachment fügt ein „ RenderPassTexture “ mit einem Tiefenformat als Tiefenpuffer für ein „ RenderPass “ hinzu. Im Gegensatz zu „ DepthStencilAttachment “ (das einen undurchsichtigen Renderpuffer verwendet) werden die resultierenden Tiefendaten in einer Textur gespeichert, die von nachfolgenden Durchläufen über „ RenderOutputProvider “ gelesen werden kann.
RenderPassTexture {
id: depthTexture
format: RenderPassTexture.Depth24
}
RenderPass {
commands: [
ColorAttachment { name: "color0"; target: colorTexture },
DepthTextureAttachment { target: depthTexture }
]
}
// Expose the depth texture to a material via RenderOutputProvider
Texture {
textureProvider: RenderOutputProvider {
textureSource: RenderOutputProvider.UserPassTexture
renderPass: myRenderPass
}
}Siehe auch „ RenderPassTexture “, „ DepthStencilAttachment “ und „ RenderOutputProvider “.
Dokumentation zu den Eigenschaften
target : RenderPassTexture
Die „ RenderPassTexture “, die als Tiefen-Anhang verwendet wird. Die Textur muss ein tiefenkompatibles Format haben (z. B. Depth16, Depth24, Depth32 oder Depth24Stencil8).
© 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.