RenderPassTexture QML Type
Define una textura que se utilizará como destino de renderizado en un « pass ». Más información...
| Import Statement: | import QtQuick3D |
| Since: | Qt 6.11 |
| Inherits: |
Propiedades
- format : enumeration
Descripción detallada
RenderPassTexture declara una textura fuera de pantalla en la que puede renderizarse un paso de renderizado ( RenderPass ). El sistema de renderizado crea y gestiona automáticamente esta textura. Por defecto, su tamaño se adapta a la ventana de visualización de la textura de fondo ( View3D ).
Una vez declarada, se debe asociar la textura a un paso mediante ColorAttachment (para la salida de color) o DepthTextureAttachment (para la salida de profundidad). A continuación, se puede acceder a la textura resultante desde un paso posterior o desde un componente Texture utilizando RenderOutputProvider.
// Declare a float color buffer
RenderPassTexture {
id: hdrColorTexture
format: RenderPassTexture.RGBA16F
}
RenderPass {
commands: [
ColorAttachment {
name: "color0"
target: hdrColorTexture
}
]
}Véase también ColorAttachment, DepthTextureAttachment y RenderOutputProvider.
Documentación de propiedades
format : enumeration
Establece el formato de la textura de destino de renderizado.
Los formatos disponibles son:
| Constante | Valor |
|---|---|
RenderPassTexture.Unknown | |
RenderPassTexture.RGBA8 | |
RenderPassTexture.RGBA16F | |
RenderPassTexture.RGBA32F | |
RenderPassTexture.R8 | |
RenderPassTexture.R16 | |
RenderPassTexture.R16F | |
RenderPassTexture.R32F | |
RenderPassTexture.Depth16 | |
RenderPassTexture.Depth24 | |
RenderPassTexture.Depth32 | |
RenderPassTexture.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.