Files
UnrealEngineUWP/Engine/Shaders/Private/ShaderBundleDispatch.usf
graham wihlidal 029032e2d7 Implemented RHI-agnostic shader bundle dispatch shader and renderer utils to share as much implementation across RHIs as possible.
[FYI] luke.thatcher, brian.karis, rune.stubbe

[CL 26401183 by graham wihlidal in ue5-main branch]
2023-07-16 14:00:02 -04:00

32 lines
656 B
Plaintext

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Common.ush"
#include "WaveOpUtil.ush"
#ifdef OVERRIDE_SHADERBUNDLE_USH
#include "/Platform/Private/ShaderBundle.ush"
uint RecordCount;
uint4 PlatformData;
ByteAddressBuffer RecordArgBuffer;
ByteAddressBuffer RecordDataBuffer;
RWByteAddressBuffer RWExecutionBuffer;
#endif
[numthreads(THREADGROUP_SIZEX, 1, 1)]
void DispatchShaderBundleEntry(uint RecordIndex : SV_DispatchThreadID)
{
#ifdef OVERRIDE_SHADERBUNDLE_USH
if (RecordIndex < RecordCount)
{
ProcessShaderBundleRecord(
PlatformData,
RecordIndex,
RecordArgBuffer,
RecordDataBuffer,
RWExecutionBuffer);
}
#endif
}