RenderPassTexture QML Type
Define uma textura a ser usada como destino de renderização em um ` pass`. Mais...
| Import Statement: | import QtQuick3D |
| Since: | Qt 6.11 |
| Inherits: |
Propriedades
- format : enumeration
Descrição detalhada
RenderPassTexture declara uma textura fora da tela na qual um RenderPass pode renderizar. A textura é criada e gerenciada automaticamente pelo sistema de renderização. Por padrão, seu tamanho acompanha a janela de visualização View3D.
Uma vez declarada, anexe a textura a uma passagem por meio de ` ColorAttachment ` (para saída de cor) ou ` DepthTextureAttachment ` (para saída de profundidade). A textura resultante pode então ser acessada a partir de uma passagem subsequente ou de um componente ` Texture ` usando ` RenderOutputProvider`.
// Declare a float color buffer
RenderPassTexture {
id: hdrColorTexture
format: RenderPassTexture.RGBA16F
}
RenderPass {
commands: [
ColorAttachment {
name: "color0"
target: hdrColorTexture
}
]
}Consulte também ColorAttachment, DepthTextureAttachment e RenderOutputProvider.
Documentação da propriedade
format : enumeration
Define o formato da textura de destino de renderização.
Os formatos disponíveis são:
| 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.