2022-06-02 10:50:07 -04:00
|
|
|
// 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
|
|
|
|
|
{
|
2023-01-23 14:24:03 -05:00
|
|
|
namespace MetasoundInputNodePrivate
|
2022-06-02 10:50:07 -04:00
|
|
|
{
|
2023-01-23 14:24:03 -05:00
|
|
|
FDataReferenceCollection FInputOperatorBase::GetInputs() const
|
2022-06-02 10:50:07 -04:00
|
|
|
{
|
2023-01-23 14:24:03 -05:00
|
|
|
// This is slated to be deprecated and removed.
|
|
|
|
|
checkNoEntry();
|
|
|
|
|
return {};
|
2022-06-02 10:50:07 -04:00
|
|
|
}
|
2023-01-23 14:24:03 -05:00
|
|
|
|
|
|
|
|
FDataReferenceCollection FInputOperatorBase::GetOutputs() const
|
2022-06-02 10:50:07 -04:00
|
|
|
{
|
2023-01-23 14:24:03 -05:00
|
|
|
// This is slated to be deprecated and removed.
|
|
|
|
|
checkNoEntry();
|
|
|
|
|
return {};
|
2022-06-02 10:50:07 -04:00
|
|
|
}
|
|
|
|
|
|
2023-01-23 14:24:03 -05:00
|
|
|
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;
|
|
|
|
|
}
|
2023-02-22 17:54:26 -05:00
|
|
|
|
|
|
|
|
IOperator::FResetFunction FNonExecutableInputPassThroughOperator::GetResetFunction()
|
|
|
|
|
{
|
|
|
|
|
return nullptr;
|
|
|
|
|
}
|
2022-06-02 10:50:07 -04:00
|
|
|
}
|
|
|
|
|
}
|