Files
UnrealEngineUWP/Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Private/MetasoundInputNode.cpp
phil popp 531210d978 Add Initialize function to metasound IOperator interface
Implement Initialize function for auto generated data type related operators.
#jira UE-174362
#rb Rob.Gay
#preflight 63f647b1977ceed9154bbf93

[CL 24371796 by phil popp in ue5-main branch]
2023-02-22 17:54:26 -05:00

51 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "MetasoundInputNode.h"
#include "MetasoundDataReference.h"
#include "MetasoundVertex.h"
#include "MetasoundVertexData.h"
#include "UObject/NameTypes.h"
namespace Metasound
{
namespace MetasoundInputNodePrivate
{
FDataReferenceCollection FInputOperatorBase::GetInputs() const
{
// This is slated to be deprecated and removed.
checkNoEntry();
return {};
}
FDataReferenceCollection FInputOperatorBase::GetOutputs() const
{
// This is slated to be deprecated and removed.
checkNoEntry();
return {};
}
FNonExecutableInputOperatorBase::FNonExecutableInputOperatorBase(const FVertexName& InVertexName, FAnyDataReference&& InDataRef)
: VertexName(InVertexName)
, DataRef(MoveTemp(InDataRef))
{
}
void FNonExecutableInputOperatorBase::Bind(FVertexInterfaceData& InVertexData) const
{
InVertexData.GetInputs().BindVertex(VertexName, DataRef);
InVertexData.GetOutputs().BindVertex(VertexName, DataRef);
}
IOperator::FExecuteFunction FNonExecutableInputOperatorBase::GetExecuteFunction()
{
return nullptr;
}
IOperator::FResetFunction FNonExecutableInputPassThroughOperator::GetResetFunction()
{
return nullptr;
}
}
}