class FSRRenderModule
File location: samples/fsrapi/fsrapirendermodule.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 API needs this frame and then call the FFX Dispatch.
|
void |
PreTransCallback (double deltaTime, cauldron::CommandList * pCmdList)
|
void |
PostTransCallback (double deltaTime, cauldron::CommandList * pCmdList)
|
void |
OnResize (const cauldron::ResolutionInfo & resInfo)
Recreate the FSR API Context to resize internal resources. Called by the framework when the resolution changes.
|
void |
InitUI (cauldron::UISection * uiSection)
Init UI.
|
bool |
NeedsReInit () const
Returns whether or not FSR requires sample-side re-initialization.
|
void |
ClearReInit ()
Clears FSR re-initialization flag.
|
void |
SetFilter (int32_t method)
|
Detailed description
Methods
Init
Rendermodule initialization function. This is where all setup code needs to happen.
EnableModule
Sets the enabled state of the render module.
Execute
virtual void Execute (double deltaTime, cauldron::CommandList * pCmdList)
Setup parameters that the FSR API needs this frame and then call the FFX Dispatch.
OnResize
virtual void OnResize (const cauldron::ResolutionInfo & resInfo)
Recreate the FSR API Context to resize internal resources. Called by the framework when the resolution changes.
InitUI
void InitUI (cauldron::UISection * uiSection)
Init UI.
NeedsReInit
Returns whether or not FSR requires sample-side re-initialization.
ClearReInit
Clears FSR re-initialization flag.