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

27 lines
692 B
HLSL

// Copyright Epic Games, Inc. All Rights Reserved.
/**
* Template shader code for the Read function for the NiagaraDataInterfaceDataChannel.
* Contained in it's own shader file to allow reuse between different invocations with different params.
*/
{PerParameterFunctionDefinitions}
void {FunctionSymbol}(int ElementIndex, out bool bOutSuccess, {FunctionOutputParameters})
{
//Default outputs in case of failure.
{DefaultOutputsShaderCode}
bOutSuccess = false;
FNDCAccessContext_{ParameterName} Context;
if(Context.InitDirect(ElementIndex))
{
bOutSuccess = true;
//This is generated in the DI Cpp depending on the function parameters.
{PerFunctionParameterShaderCode}
}
}