class LensRenderModule

LensRenderModule handles a number of tasks related to Lens.

File location: samples/lens/lensrendermodule.h

Construction

Return type

Description

Constructor with default behavior.

Methods

Return type

Description

void

Init (const json& initData)
Initialize FFX API Context, setup the intermediate color texture, and setup UI section for Lens.

void

Execute (double deltaTime, cauldron::CommandList * pCmdList)
Setup input/output texture and parameters FFX API needs this frame and then call the FFX Dispatch.

void

Called by the framework when resolution changes.

Detailed description

LensRenderModule handles a number of tasks related to Lens.

LensRenderModule takes care of:

  • creating UI section that enable users to switch between options of Lens

  • performing the lens effect and output to the color target

Construction

LensRenderModule

Copied!

LensRenderModule ()

Constructor with default behavior.


Methods

Init

Copied!

virtual void Init (const json& initData)

Initialize FFX API Context, setup the intermediate color texture, and setup UI section for Lens.


Execute

Copied!

virtual void Execute (double deltaTime, cauldron::CommandList * pCmdList)

Setup input/output texture and parameters FFX API needs this frame and then call the FFX Dispatch.


OnResize

Copied!

virtual void OnResize (const cauldron::ResolutionInfo & resInfo)

Called by the framework when resolution changes.