class ParallelSortRenderModule
ParallelSortRenderModule handles a number of tasks related to Parallel Sort.
File location: samples/parallelsort/parallelsortrendermodule.h
Construction
Return type |
Description |
---|---|
Constructor with default behavior.
|
Methods
Return type |
Description |
---|---|
void |
Init (const json& initData)
Initialize FFX API Context, creates randomized key/payload data to sort, loads required textures, and setup UI section for Parallel Sort.
|
void |
Execute (double deltaTime, cauldron::CommandList * pCmdList)
Setup input resources and parameters FFX API needs this frame and then call the FFX Dispatch to sort the keys (and payload).
|
void |
OnResize (const cauldron::ResolutionInfo & resInfo)
Called by the framework when resolution changes.
|
Detailed description
ParallelSortRenderModule handles a number of tasks related to Parallel Sort.
ParallelSortRenderModule takes care of:
-
creating UI section that enable users to switch between options of Parallel Sort
-
performs sorting of key and (optional) payload using FidelityFX ParallelSort Effect Component
-
displays sort result validation (use sorted keys to re-construct a texture image properly)
Construction
ParallelSortRenderModule
Constructor with default behavior.
Methods
Init
Initialize FFX API Context, creates randomized key/payload data to sort, loads required textures, and setup UI section for Parallel Sort.
Execute
virtual void Execute (double deltaTime, cauldron::CommandList * pCmdList)
Setup input resources and parameters FFX API needs this frame and then call the FFX Dispatch to sort the keys (and payload).
OnResize
virtual void OnResize (const cauldron::ResolutionInfo & resInfo)
Called by the framework when resolution changes.