DepthStencilAttachment QML Type
Define un complemento de profundidad-estarcido para un « RenderPass ». Más...
| Import Statement: | import QtQuick3D |
| Since: | Qt 6.11 |
| Inherits: |
Descripción detallada
DepthStencilAttachment añade un búfer de renderizado implícito de profundidad/estarcido a un ` RenderPass`. El búfer de renderizado lo crea y gestiona automáticamente el sistema de renderizado. Dado que se basa en un búfer de renderizado opaco en lugar de en una textura, su contenido no se puede muestrear en los sombreadores. Si necesitas volver a leer los valores de profundidad en una pasada posterior, utiliza en su lugar ` DepthTextureAttachment `.
Utiliza `DepthStencilAttachment` cuando necesites realizar comprobaciones de profundidad y/u operaciones de estarcido en una pasada, pero no necesites acceder a los datos de profundidad posteriormente.
RenderPass {
commands: [
ColorAttachment { name: "color0"; target: colorTexture },
// Add a depth buffer so depth testing works in this pass
DepthStencilAttachment {}
]
}Véase también « DepthTextureAttachment » y « 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.