2022-09-26 15:12:13 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
|
2022-10-01 02:04:57 -04:00
|
|
|
#include "MuT/NodeImageConstant.h"
|
2022-10-02 10:56:02 -04:00
|
|
|
|
|
|
|
|
#include "Misc/AssertionMacros.h"
|
|
|
|
|
#include "MuR/Image.h"
|
|
|
|
|
#include "MuR/Serialisation.h"
|
|
|
|
|
#include "MuT/NodePrivate.h"
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace mu
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
// Static initialisation
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
2024-06-13 04:48:11 -04:00
|
|
|
FNodeType NodeImageConstant::StaticType = FNodeType(Node::EType::ImageConstant, NodeImage::GetStaticType());
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
2023-11-20 04:22:10 -05:00
|
|
|
void NodeImageConstant::SetValue(const Image* Value)
|
2022-09-26 15:12:13 -04:00
|
|
|
{
|
2024-06-13 04:48:11 -04:00
|
|
|
Proxy = new ResourceProxyMemory<Image>(Value);
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2023-04-28 15:57:31 -04:00
|
|
|
//---------------------------------------------------------------------------------------------
|
2024-06-13 04:48:11 -04:00
|
|
|
void NodeImageConstant::SetValue(Ptr<ResourceProxy<Image>> InProxy)
|
2023-04-28 15:57:31 -04:00
|
|
|
{
|
2024-06-13 04:48:11 -04:00
|
|
|
Proxy = InProxy;
|
2023-04-28 15:57:31 -04:00
|
|
|
}
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
}
|