Files
alexei lebedev 2815323fbc [mutable] Moved the Mutable plugin out of Experimental status into Beta.
#jira UE-223488
#rb jordi.rovira
#tests Editor
#rnx

#virtualized

[CL 36035608 by alexei lebedev in ue5-main branch]
2024-09-05 07:16:19 -04:00

52 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "HAL/PlatformMath.h"
#include "MuR/Operations.h"
#include "MuR/Ptr.h"
#include "MuT/AST.h"
namespace mu
{
struct FProgram;
//---------------------------------------------------------------------------------------------
//! Operations to add elements to an instance
//---------------------------------------------------------------------------------------------
class ASTOpInstanceAdd final : public ASTOp
{
public:
//! Type of switch
OP_TYPE type = OP_TYPE::NONE;
ASTChild instance;
ASTChild value;
uint32_t id = 0;
uint32_t ExternalId = 0;
int32 SharedSurfaceId = INDEX_NONE;
FString name;
public:
ASTOpInstanceAdd();
ASTOpInstanceAdd(const ASTOpInstanceAdd&) = delete;
~ASTOpInstanceAdd();
OP_TYPE GetOpType() const override { return type; }
void ForEachChild(const TFunctionRef<void(ASTChild&)>) override;
bool IsEqual(const ASTOp& otherUntyped) const override;
Ptr<ASTOp> Clone(MapChildFuncRef mapChild) const override;
uint64 Hash() const override;
void Assert() override;
void Link(FProgram& program, FLinkerOptions* Options) override;
};
}