class SPDRenderModule

SPDRenderModule handles a number of tasks related to SPD.

File location: samples/spd/spdrendermodule.h

Construction

Return type

Description

Constructor with default behavior.

Methods

Return type

Description

void

Init (const json& initData)
Initialize FFX API Context, load the downsampling resource, and setup UI section for SPD.

void

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

void

Called by the framework when resolution changes.

Detailed description

SPDRenderModule handles a number of tasks related to SPD.

SPDRenderModule takes care of:

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

  • performs downsampling of all faces of a cubemap texture using FidelityFX SPD effect component

Construction

SPDRenderModule

Copied!

SPDRenderModule ()

Constructor with default behavior.


Methods

Init

Copied!

virtual void Init (const json& initData)

Initialize FFX API Context, load the downsampling resource, and setup UI section for SPD.


Execute

Copied!

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

Setup downsample 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.