FGPUSortManager::OnPreRender

Callback that needs to be called in the rendering loop, after calls to [FFXSystemInterface::PreRender()](API\Runtime\Engine\FFXSystemInterface\PreRender) are issued.

Choose your operating system:

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 OnPreRender
(
    class FRDGBuilder & GraphBuilder
)

Remarks

Callback that needs to be called in the rendering loop, after calls to FFXSystemInterface::PreRender() are issued. At this point, no other GPU sort tasks are allowed to be created through AddTask() as the sort batches get finalized. At this point, any task with the EGPUSortFlags::SortAfterPreRender will possibly be done, unless it also had the EGPUSortFlags::SortAfterPostRenderOpaque flag. Tasks with EGPUSortFlags::KeyGenAfterPreRender get their client callbacks issued to set the initial keys and values.

Parameters

Parameter

Description

RHICmdList

The command list to be used.