Navigation
Unreal Engine C++ API Reference > Runtime > Engine
Inheritance Hierarchy
- FRefCountedObject
- FGPUSortManager
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/GPUSortManager.h |
Include | #include "GPUSortManager.h" |
Syntax
class FGPUSortManager : public FRefCountedObject
Remarks
A manager that handles different GPU sort tasks. Each task has different constraints about when the data can be generated and when the sorted results need to be available. The usecase involes registering a sort task through AddTask() and then initializing the sort data through the KeyGen callback. The sort manager can be enabled or disabled through "fx.AllowGPUSorting"
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FPostPreRenderEvent | PostPostRenderEvent | |
![]() |
FPostPreRenderEvent | PostPreRenderEvent |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FGPUSortManager
(
ERHIFeatureLevel::Type InFeatureLevel |
Creates the sort manager, this is when the settings are configured. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
bool | AddTask
(
FAllocationInfo& OutInfo, |
Add a GPU sort task to process this frame. |
![]() |
void | OnPostRenderOpaque
(
FRDGBuilder& GraphBuilder |
Callback that needs to be called in the rendering loop, after calls to FFXSystemInterface::PostRenderOpaque() are issued. |
![]() |
void | OnPreRender
(
FRDGBuilder& GraphBuilder |
Callback that needs to be called in the rendering loop, after calls to FFXSystemInterface::PreRender() are issued. |
![]() |
void | Register a client system into the sort manager. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FAllocationInfo | Information about the bindings for a given sort task. | |
![]() |
FKeyGenInfo | A little helper to generate the batch element keys based on the number of elements in the batch and the sort precision. | |
![]() |
FPostPostRenderEvent | Event to register and receive post-postrender notification. | |
![]() |
FPostPreRenderEvent | Event to register and receive post-prerender notification. |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
ESortBatchProcessingOrder | Defines the order in which sort batches are processed every frame. |
Typedefs
Name | Description |
---|---|
FCallbackArray | |
FDynamicValueBufferArray | |
FSortBatchArray | Expected that few will be enough, since we only need severals batches when ESortBatchProcessingOrder::KeyGenAfterPreRenderAndSortAfterPostRenderOpaque. |
FValueBufferArray |