RenderOutputProvider QML Type
Used as a bridge to access textures provided in passes. More...
| Import Statement: | import QtQuick3D.Helpers |
| Since: | Qt 6.11 |
| Inherits: |
Properties
- attachmentSelector : enumeration
- renderPass : RenderPass
- textureSource : enumeration
Detailed Description
This type is used to provide textures that are generated by passes in the rendering pipeline.
Some example of when this is useful is when you want to access the depth texture generated by the ZPrePass, or the ambient occlusion texture generated by the SSAO pass. This type can be used to access these generated textures and use them in materials or effects.
Texture {
textureProvider: RenderOutputProvider {
// Specify the pass buffer texture you want to access
textureSource: RenderOutputProvider.DepthTexture
}
}
See also QQuick3DTextureProviderExtension and QSSGRenderExtension.
Property Documentation
attachmentSelector : enumeration
This property holds which attachment to use when accessing a user defined pass texture.
Possible attachments when using a user defined render pass:
| Constant | Value |
|---|---|
RenderOutputProvider.Attachment0 | |
RenderOutputProvider.Attachment1 | |
RenderOutputProvider.Attachment2 | |
RenderOutputProvider.Attachment3 |
renderPass : RenderPass
This property holds the user defined render pass to use when accessing a user defined pass texture.
When this property is set, the textureSource property is automatically set to RenderOutputProvider.UserPassTexture.
See also textureSource and RenderPass.
textureSource : enumeration
This property holds which pass buffer texture to use.
| Constant | Description |
|---|---|
RenderOutputProvider.None | No texture source is selected. |
RenderOutputProvider.UserPassTexture | A user defined pass. If this is used to access a user defined pass. |
RenderOutputProvider.AoTexture | The ambient occlusion texture created by QtQuick3D's AO pass. |
RenderOutputProvider.DepthTexture | The depth texture created by QtQuick3D's Depth map pass. |
RenderOutputProvider.ScreenTexture | The texture containing the rendered scene. |
RenderOutputProvider.NormalTexture | The normal texture created by QtQuick3D's Normal map pass. |
RenderOutputProvider.MotionVectorTexture | The motion vector texture created by QtQuick3D's Motion Vector pass. |