Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

50 lines
923 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "MuT/Node.h"
#include "MuT/NodeMesh.h"
#include "MuT/NodeImage.h"
#include "MuT/NodeLayout.h"
#include "MuR/Mesh.h"
#include "Templates/SharedPointer.h"
#define UE_API MUTABLETOOLS_API
namespace UE::Mutable::Private
{
/** Node that outputs a constant mesh.
* It allows to define the layouts for the texture channels of the constant mesh
*/
class NodeMeshConstant : public NodeMesh
{
public:
FSourceDataDescriptor SourceDataDescriptor;
TSharedPtr<FMesh> Value;
TArray<Ptr<NodeLayout>> Layouts;
public:
// Node Interface
virtual const FNodeType* GetType() const override { return &StaticType; }
static const FNodeType* GetStaticType() { return &StaticType; }
protected:
/** Forbidden. Manage with the Ptr<> template. */
~NodeMeshConstant() {}
private:
static UE_API FNodeType StaticType;
};
}
#undef UE_API