FRDGBuilder::AddPass

Adds a lambda pass to the graph without any parameters.

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/RenderGraphBuilder.h

Include

#include "RenderGraphBuilder.h"

Source

/Engine/Source/Runtime/RenderCore/Public/RenderGraphBuilder.inl

Syntax

template<typename ExecuteLambdaType>
FRDGPassRef AddPass
(
    FRDGEventName && Name,
    ERDGPassFlags Flags,
    ExecuteLambdaType && ExecuteLambda
)

Remarks

Adds a lambda pass to the graph without any parameters. This useful for deferring RHI work onto the graph timeline, or incrementally porting code to use the graph system. NeverCull and SkipRenderPass (if Raster) are implicitly added to Flags. AsyncCompute is not allowed. Accessing RHI resources which are tracked by the graph is only allowed if the UntrackedAccess flag is specified. It is never permitted to access a created (i.e. not externally registered) RDG resource in an independent pass, as the RHI lifetime is not guaranteed.

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