class FSRRenderModule

File location: samples/fsr/fsrrendermodule.h

Construction

Return type

Description

FSRRenderModule ()

Methods

Return type

Description

void

Init (const json& initData)
Rendermodule initialization function. This is where all setup code needs to happen.

void

EnableModule (bool enabled)
Sets the enabled state of the render module.

void

OnPreFrame ()

void

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

void

Recreate the FSR 3 API Context to resize internal resources. Called by the framework when the resolution changes.

void

Init UI.

bool

NeedsReInit () const
Returns whether or not FSR3 requires sample-side re-initialization.

void

Clears FSR3 re-initialization flag.

void

SetFilter (UpscaleRM::UpscaleMethod method)

void

OnPreFrame ()

void

PreTransCallback (double deltaTime, cauldron::CommandList * pCmdList)

void

PostTransCallback (double deltaTime, cauldron::CommandList * pCmdList)

void

SetFilter (int32_t method)

Detailed description

Methods

Init

Copied!

virtual void Init (const json& initData)

Rendermodule initialization function. This is where all setup code needs to happen.


EnableModule

Copied!

virtual void EnableModule (bool enabled)

Sets the enabled state of the render module.


Execute

Copied!

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

Setup parameters that the FSR 3 API needs this frame and then call the FFX Dispatch.


OnResize

Copied!

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

Recreate the FSR 3 API Context to resize internal resources. Called by the framework when the resolution changes.


InitUI

Copied!

void InitUI (cauldron::UISection * uiSection)

Init UI.


NeedsReInit

Copied!

bool NeedsReInit () const

Returns whether or not FSR3 requires sample-side re-initialization.


ClearReInit

Copied!

void ClearReInit ()

Clears FSR3 re-initialization flag.