RenderPassTexture QML Type
Defines a texture to be used as a render target in a pass. More...
| Import Statement: | import QtQuick3D |
| Since: | Qt 6.11 |
| Inherits: |
Properties
- format : enumeration
Detailed Description
RenderPassTexture declares an off-screen texture that a RenderPass can render into. The texture is automatically created and managed by the rendering system. Its size tracks the View3D viewport by default.
Once declared, attach the texture to a pass via ColorAttachment (for color output) or DepthTextureAttachment (for depth output). The resulting texture can then be accessed from a subsequent pass or a Texture component using RenderOutputProvider.
// Declare a float color buffer
RenderPassTexture {
id: hdrColorTexture
format: RenderPassTexture.RGBA16F
}
RenderPass {
commands: [
ColorAttachment {
name: "color0"
target: hdrColorTexture
}
]
}
See also ColorAttachment, DepthTextureAttachment, and RenderOutputProvider.
Property Documentation
format : enumeration
Sets the format of the render target texture.
Available formats are:
| Constant | Value |
|---|---|
RenderPassTexture.Unknown | |
RenderPassTexture.RGBA8 | |
RenderPassTexture.RGBA16F | |
RenderPassTexture.RGBA32F | |
RenderPassTexture.R8 | |
RenderPassTexture.R16 | |
RenderPassTexture.R16F | |
RenderPassTexture.R32F | |
RenderPassTexture.Depth16 | |
RenderPassTexture.Depth24 | |
RenderPassTexture.Depth32 | |
RenderPassTexture.Depth24Stencil8 |