Files
UnrealEngine/Engine/Plugins/Mutable/Source/MutableTools/Private/MuT/ASTOpLayoutFromMesh.h
2025-05-18 13:04:45 +08:00

41 lines
1023 B
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;
class ASTOpLayoutFromMesh final : public ASTOp
{
public:
ASTChild Mesh;
uint8_t LayoutIndex = 0;
public:
ASTOpLayoutFromMesh();
ASTOpLayoutFromMesh(const ASTOpLayoutFromMesh&) = delete;
~ASTOpLayoutFromMesh();
EOpType GetOpType() const override { return EOpType::LA_FROMMESH; }
uint64 Hash() const override;
bool IsEqual(const ASTOp& otherUntyped) const override;
Ptr<ASTOp> Clone(MapChildFuncRef mapChild) const override;
void ForEachChild(const TFunctionRef<void(ASTChild&)>) override;
void Link(FProgram& program, FLinkerOptions* Options) override;
Ptr<ASTOp> OptimiseSink(const FModelOptimizationOptions& options, FOptimizeSinkContext& context) const override;
void GetBlockLayoutSize(uint64 BlockId, int32* pBlockX, int32* pBlockY, FBlockLayoutSizeCache* cache) override;
};
}