Files
UnrealEngine/Engine/Plugins/FX/Niagara/Shaders/Private/NiagaraFillIntBuffer.usf
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

18 lines
358 B
HLSL

// Copyright Epic Games, Inc. All Rights Reserved.
#include "/Engine/Private/Common.ush"
RWBuffer<int> BufferUAV;
uint NumElements;
int FillValue;
[numthreads(THREADGROUP_SIZE, 1, 1)]
void FillIntBuffer(uint3 DispatchThreadId : SV_DispatchThreadID)
{
uint Index = DispatchThreadId.x;
if(Index < NumElements)
{
BufferUAV[Index] = FillValue;
}
}