Module |
|
Header |
/Engine/Source/Runtime/RenderCore/Public/RenderGraphBuilder.h |
Include |
#include "RenderGraphBuilder.h" |
Source |
/Engine/Source/Runtime/RenderCore/Public/RenderGraphBuilder.inl |
template<typename ExecuteLambdaType>
FRDGPassRef AddPass
(
FRDGEventName && Name,
ERDGPassFlags Flags,
ExecuteLambdaType && ExecuteLambda
)
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.