/Engine/Source/Runtime/RenderCore/Public/RenderGraphUtils.h
Dispatch a compute shader to render graph builder with its parameters. GroupCount is supplied through a callback. This allows adding a dispatch with unknown GroupCount but the value must be ready before the pass is executed.
namespace FComputeShaderUtils { template<typename TShaderClass> FRDGPassRef FComputeShaderUtils::AddPass ( [FRDGBuilder](API\Runtime\RenderCore\FRDGBuilder) & GraphBuilder, [FRDGEventName](API\Runtime\RenderCore\FRDGEventName) && PassName, ERDGPassFlags PassFlags, const TShaderRef< TShaderClass > & ComputeShader, const [FShaderParametersMetadata](API\Runtime\RenderCore\FShaderParametersMetadata) * ParametersMetadata, typename TShaderClass::FParameters * Parameters, FRDGDispatchGroupCountCallback && GroupCountCallback ) }