Navigation
API > API/Runtime > API/Runtime/RenderCore
Description
Create and set up an 1D indirect dispatch argument from some GPU-side integer in a buffer (InputCountBuffer). Sets up a group count as (InputCountBuffer[InputCountOffset] * Multiplier + Divisor - 1U) / Divisor; Commonly use Divisor <=> number of threads per group.
| Name | FComputeShaderUtils::AddIndirectArgsSetupCsPass1D |
| Type | function |
| Header File | /Engine/Source/Runtime/RenderCore/Public/RenderGraphUtils.h |
| Include Path | #include "RenderGraphUtils.h" |
| Source | /Engine/Source/Runtime/RenderCore/Private/RenderGraphUtils.cpp |
namespace FComputeShaderUtils
{
FRDGBufferRef FComputeShaderUtils::AddIndirectArgsSetupCsPass1D
(
FRDGBuilder & GraphBuilder,
ERHIFeatureLevel::Type FeatureLevel,
FRDGBuffer * InputCountBuffer,
const TCHAR * OutputBufferName,
uint32 Divisor,
uint32 InputCountOffset,
uint32 Multiplier
)
}