class LPMRenderModule
class extends Tonemapping render module and sets itself as the default tone and gamut mapper. LPMRenderModule::Init() sets up the parameters which will be used as input to the tone and gamut mapping done by LPM This includes input and output resource, and all the parameters described in ffx_lpm header. LPMRenderModule::Execute() calls the dispatch function inside ffx_lpm.cpp which calls the functions to setup LPM consts on CPU side and finally call dispatch on LPM compute shader which will call the LPMFilter call to do the tone and gamut mapping.
File location: samples/lpm/lpmrendermodule.h
Construction
Return type |
Description |
---|---|
Constructor setting LPMRendermodule as default tonemapper.
|
Methods
Return type |
Description |
---|---|
void |
Init (const json& initData)
Initialize FFX API Context, setup input/output resources and setup UI section for LPM.
|
void |
TextureLoadComplete ( const std::vector<const cauldron::Texture >& textureList, void )
|
void |
Execute (double deltaTime, cauldron::CommandList * pCmdList)
call FFX dispatch which handles setting up consts for LPM and LPM compute shader dispatch which calls LPM filter to do tone and gamut mapping
|
void |
OnResize (const cauldron::ResolutionInfo & resInfo)
Called by the framework when resolution changes.
|
Detailed description
class extends Tonemapping render module and sets itself as the default tone and gamut mapper. LPMRenderModule::Init() sets up the parameters which will be used as input to the tone and gamut mapping done by LPM This includes input and output resource, and all the parameters described in ffx_lpm header. LPMRenderModule::Execute() calls the dispatch function inside ffx_lpm.cpp which calls the functions to setup LPM consts on CPU side and finally call dispatch on LPM compute shader which will call the LPMFilter call to do the tone and gamut mapping.
Construction
LPMRenderModule
Constructor setting LPMRendermodule as default tonemapper.
Methods
Init
Initialize FFX API Context, setup input/output resources and setup UI section for LPM.
Execute
void Execute (double deltaTime, cauldron::CommandList * pCmdList)
call FFX dispatch which handles setting up consts for LPM and LPM compute shader dispatch which calls LPM filter to do tone and gamut mapping
OnResize
void OnResize (const cauldron::ResolutionInfo & resInfo)
Called by the framework when resolution changes.