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

44 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "HAL/PlatformMath.h"
#include "MuR/Image.h"
#include "MuR/Operations.h"
#include "MuR/Ptr.h"
#include "MuT/AST.h"
namespace mu
{
struct FProgram;
class ASTOpImageInterpolate final : public ASTOp
{
public:
ASTChild Factor;
ASTChild Targets[MUTABLE_OP_MAX_INTERPOLATE_COUNT];
public:
ASTOpImageInterpolate();
ASTOpImageInterpolate(const ASTOpImageInterpolate&) = delete;
~ASTOpImageInterpolate();
virtual EOpType GetOpType() const override { return EOpType::IM_INTERPOLATE; }
virtual uint64 Hash() const override;
virtual bool IsEqual(const ASTOp&) const override;
virtual Ptr<ASTOp> Clone(MapChildFuncRef) const override;
virtual void ForEachChild(const TFunctionRef<void(ASTChild&)>) override;
virtual void Link(FProgram&, FLinkerOptions*) override;
virtual FImageDesc GetImageDesc(bool bReturnBestOption, FGetImageDescContext*) const override;
virtual void GetLayoutBlockSize(int32* OutBlockX, int32* OutBlockY) override;
virtual Ptr<ImageSizeExpression> GetImageSizeExpression() const override;
virtual FSourceDataDescriptor GetSourceDataDescriptor(FGetSourceDataDescriptorContext*) const override;
};
}