Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FGPUSortManager
Description
Register a client system into the sort manager. Client systems are systems that will call AddTask(). Those systems need to register a callback, the possible used flags for their tasks and a name. The callback is required because the initial content to perform GPU sorts is only configured long after AddTask() gets called in the rendering loop.
| Name | Register |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/GPUSortManager.h |
| Include Path | #include "GPUSortManager.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GPUSortManager.cpp |
void Register
(
const FGPUSortKeyGenDelegate & CallbackDelegate,
EGPUSortFlags UsedFlags,
const FName & InName
)
Parameters
| Name | Remarks |
|---|---|
| CallbackDelegate | The callback that will be used to set the initial keys and values for each batch elements. |
| UsedFlags | The possibly used flags for each of the client system tasks, used to perform some optimizations. |
| InName | A name defining this client system, used for GPU markers. |