class CASRenderModule

CASRenderModule handles a number of tasks related to CAS.

File location: samples/cas/casrendermodule.h

Construction

Return type

Description

Constructor with default behavior.

Methods

Return type

Description

void

Init (const json& initData)
Initialize FFX API Context, setup the internal color texture used as temporary input, and setup UI section for CAS.

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. FFX API Context for CAS need to be reset in respond to this.

Detailed description

CASRenderModule handles a number of tasks related to CAS.

CASRenderModule takes care of:

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

  • performing sharpening or upscaling and output to the color target

Construction

CASRenderModule

Copied!

CASRenderModule ()

Constructor with default behavior.


Methods

Init

Copied!

virtual void Init (const json& initData)

Initialize FFX API Context, setup the internal color texture used as temporary input, and setup UI section for CAS.


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. FFX API Context for CAS need to be reset in respond to this.