Navigation
API > API/Runtime > API/Runtime/RenderCore > API/Runtime/RenderCore/FRDGBuilder > API/Runtime/RenderCore/FRDGBuilder/AddPass
References
| Module | RenderCore |
| 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
)
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. It is never permitted to access a created (i.e. not externally registered) RDG resource outside of passes it is registered with, as the RHI lifetime is not guaranteed.