Navigation
API > API/Runtime > API/Runtime/RenderCore > API/Runtime/RenderCore/FRDGBuilder > API/Runtime/RenderCore/FRDGBuilder/AddDispatchPass
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/RenderGraphBuilder.h |
| Include | #include "RenderGraphBuilder.h" |
template<typename ParameterStructType, typename LaunchLambdaType>
FRDGPassRef AddDispatchPass
(
FRDGEventName && Name,
const ParameterStructType * ParameterStruct,
ERDGPassFlags Flags,
LaunchLambdaType && LaunchLambda
)
Remarks
Adds a pass that takes a FRDGDispatchPassBuilder instead of a RHI command list. The lambda should create command lists and launch tasks to record commands into them. Each task should call EndRenderPass() (if raster) and FinishRecording() to complete each command list. The user is responsible for task management of dispatched command lists.