Abstract base class for denoising algorithms used with ray traced render passes. More...
#include <kanzi/core.ui/graphics3d/denoiser.hpp>
Public Member Functions | |
| virtual void | denoise (Renderer &renderer, RenderPass::CameraSettings &cameraSettings, TextureSharedPtr texture, TextureSharedPtr depthTexture, TextureSharedPtr historyDepthTexture, TextureSharedPtr velocityTexture)=0 |
| Runs the denoising pass on the given input textures. | |
| virtual TextureSharedPtr | getDenoisedOutput () const =0 |
| Returns the denoised output texture produced by the last denoise() call. | |
| virtual void | reinitialize (int mode, Vector3 temp, size_t blockWidth, size_t blockHeight)=0 |
| Reinitializes the denoiser with new output dimensions or configuration. | |
| virtual void | setup (Domain *domain)=0 |
| Initializes denoiser resources for the given domain. | |
| virtual | ~Denoiser ()=default |
| Destructor. | |
Abstract base class for denoising algorithms used with ray traced render passes.
Derive from Denoiser to implement a custom denoising algorithm. Use DenoiserRenderPass to host a Denoiser implementation in the render graph.
|
virtualdefault |
Destructor.
Initializes denoiser resources for the given domain.
| domain | The domain to use. |
Implemented in kanzi::ShadowDenoiser.
|
pure virtual |
Runs the denoising pass on the given input textures.
| renderer | Renderer to use. |
| cameraSettings | Camera settings for the current frame. |
| texture | Input ray traced shadow mask texture to denoise. |
| depthTexture | Current frame depth texture. |
| historyDepthTexture | Previous frame depth texture for reprojection. |
| velocityTexture | Motion vector texture for reprojection. |
Implemented in kanzi::ShadowDenoiser.
|
pure virtual |
Reinitializes the denoiser with new output dimensions or configuration.
| mode | Denoiser mode. |
| temp | Temporary parameter passed to the denoiser implementation. |
| blockWidth | Width of the denoiser tile block in pixels. |
| blockHeight | Height of the denoiser tile block in pixels. |
Implemented in kanzi::ShadowDenoiser.
|
pure virtual |
Returns the denoised output texture produced by the last denoise() call.
Implemented in kanzi::ShadowDenoiser.