Files
UnrealEngine/Engine/Plugins/FX/Niagara/Shaders/Private/DataChannel/NiagaraDataInterfaceDataChannelTemplate_Read.ush
2025-05-18 13:04:45 +08: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}
}
}