27 lines
692 B
HLSL
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}
|
|
}
|
|
}
|
|
|