You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Adds ability for graph generation via target page ID - Deprecates the requirement of a GraphController to build graph to IGraph #rb phil.popp #tests MetaSound automated tests & UnitTests #rnx #jira UE-194160 [CL 34731539 by rob gay in ue5-main branch]
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "MetasoundDocumentInterface.h"
|
|
#include "MetasoundFrontendDocumentIdGenerator.h"
|
|
#include "MetasoundFrontendGraph.h"
|
|
#include "MetasoundFrontendProxyDataCache.h"
|
|
#include "MetasoundOperatorBuilder.h"
|
|
#include "MetasoundOperatorBuilderSettings.h"
|
|
|
|
|
|
namespace Metasound::Frontend
|
|
{
|
|
namespace DocumentInterfacePrivate
|
|
{
|
|
TUniquePtr<IDocumentBuilderRegistry> Instance;
|
|
}
|
|
|
|
IDocumentBuilderRegistry* IDocumentBuilderRegistry::Get()
|
|
{
|
|
return DocumentInterfacePrivate::Instance.Get();
|
|
}
|
|
|
|
IDocumentBuilderRegistry& IDocumentBuilderRegistry::GetChecked()
|
|
{
|
|
return *DocumentInterfacePrivate::Instance.Get();
|
|
}
|
|
|
|
void IDocumentBuilderRegistry::Deinitialize()
|
|
{
|
|
check(DocumentInterfacePrivate::Instance.IsValid());
|
|
DocumentInterfacePrivate::Instance.Reset();
|
|
}
|
|
|
|
void IDocumentBuilderRegistry::Initialize(TUniquePtr<IDocumentBuilderRegistry>&& InInstance)
|
|
{
|
|
check(!DocumentInterfacePrivate::Instance.IsValid());
|
|
DocumentInterfacePrivate::Instance = MoveTemp(InInstance);
|
|
}
|
|
|
|
IMetaSoundDocumentBuilderRegistry& IMetaSoundDocumentBuilderRegistry::GetChecked()
|
|
{
|
|
return static_cast<IMetaSoundDocumentBuilderRegistry&>(IDocumentBuilderRegistry::GetChecked());
|
|
}
|
|
} // namespace Metasound::Frontend
|