FGPUSortManager::Register

Register a client system into the sort manager.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/GPUSortManager.h

Include

#include "GPUSortManager.h"

Source

/Engine/Source/Runtime/Engine/Private/GPUSortManager.cpp

Syntax

void Register
(
    const FGPUSortKeyGenDelegate & CallbackDelegate,
    EGPUSortFlags UsedFlags,
    const FName & InName
)

Remarks

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.

Parameters

Parameter

Description

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss