You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- New node name {namespace.name.variant}
- PointIDs for exact pin-to-pin connections
- TAccessPtr updates
- Controller/Handle interface
- Document Handle
- Frontend Transforms
- Input/Output node external registration
- Revamped document model
#rb Max.Hayes, Rob.Gay
#jira UEAU-626
[CL 15066822 by phil popp in ue5-main branch]
55 lines
1.5 KiB
C++
55 lines
1.5 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "MetasoundFrontendQuerySteps.h"
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "MetasoundFrontend.h"
|
|
#include "MetasoundFrontendDocument.h"
|
|
|
|
namespace Metasound
|
|
{
|
|
void FGenerateAllAvailableNodeClasses::Generate(TArray<FFrontendQueryEntry>& OutEntries) const
|
|
{
|
|
const TArray<Frontend::FNodeClassInfo> ClassInfos = Frontend::GetAllAvailableNodeClasses();
|
|
|
|
for (const Frontend::FNodeClassInfo& ClassInfo : ClassInfos)
|
|
{
|
|
OutEntries.Emplace(TInPlaceType<FMetasoundFrontendClass>(), Frontend::GenerateClassDescription(ClassInfo));
|
|
}
|
|
}
|
|
|
|
FFilterClassesByInputVertexDataType::FFilterClassesByInputVertexDataType(const FName& InTypeName)
|
|
: InputVertexTypeName(InTypeName)
|
|
{
|
|
}
|
|
|
|
bool FFilterClassesByInputVertexDataType::Filter(const FFrontendQueryEntry& InEntry) const
|
|
{
|
|
check(InEntry.Value.IsType<FMetasoundFrontendClass>());
|
|
|
|
return InEntry.Value.Get<FMetasoundFrontendClass>().Interface.Inputs.ContainsByPredicate(
|
|
[this](const FMetasoundFrontendClassInput& InDesc)
|
|
{
|
|
return InDesc.TypeName == InputVertexTypeName;
|
|
}
|
|
);
|
|
}
|
|
|
|
FFilterClassesByOutputVertexDataType::FFilterClassesByOutputVertexDataType(const FName& InTypeName)
|
|
: OutputVertexTypeName(InTypeName)
|
|
{
|
|
}
|
|
|
|
bool FFilterClassesByOutputVertexDataType::Filter(const FFrontendQueryEntry& InEntry) const
|
|
{
|
|
return InEntry.Value.Get<FMetasoundFrontendClass>().Interface.Outputs.ContainsByPredicate(
|
|
[this](const FMetasoundFrontendClassOutput& InDesc)
|
|
{
|
|
return InDesc.TypeName == OutputVertexTypeName;
|
|
}
|
|
);
|
|
}
|
|
|
|
}
|
|
|