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 |
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.
|
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
Constructor with default behavior.
Methods
Init
Initialize FFX API Context, setup the internal color texture used as temporary input, and setup UI section for CAS.
Execute
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
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.