50 lines
1.5 KiB
C++
50 lines
1.5 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "HAL/Platform.h"
|
|
#include "MuR/Image.h"
|
|
#include "MuR/Operations.h"
|
|
#include "MuR/Ptr.h"
|
|
#include "MuT/AST.h"
|
|
|
|
|
|
namespace mu
|
|
{
|
|
struct FProgram;
|
|
|
|
class ASTOpImageCompose final : public ASTOp
|
|
{
|
|
public:
|
|
|
|
ASTChild Layout;
|
|
ASTChild Base;
|
|
ASTChild BlockImage;
|
|
ASTChild Mask;
|
|
uint64 BlockId=0;
|
|
|
|
public:
|
|
|
|
ASTOpImageCompose();
|
|
ASTOpImageCompose(const ASTOpImageCompose&) = delete;
|
|
~ASTOpImageCompose();
|
|
|
|
virtual EOpType GetOpType() const override { return EOpType::IM_COMPOSE; }
|
|
virtual uint64 Hash() const override;
|
|
virtual bool IsEqual(const ASTOp& otherUntyped) const override;
|
|
virtual Ptr<ASTOp> Clone(MapChildFuncRef mapChild) const override;
|
|
virtual void ForEachChild(const TFunctionRef<void(ASTChild&)>) override;
|
|
virtual void Link(FProgram& program, FLinkerOptions* Options) override;
|
|
//TODO: virtual Ptr<ASTOp> OptimiseSink(const FModelOptimizationOptions& options, FOptimizeSinkContext& context) const override;
|
|
virtual Ptr<ASTOp> OptimiseSemantic(const FModelOptimizationOptions& options, int32 Pass) const override;
|
|
virtual FImageDesc GetImageDesc(bool returnBestOption, FGetImageDescContext* context) const override;
|
|
virtual void GetLayoutBlockSize(int32* OutBlockX, int32* OutBlockY) override;
|
|
virtual bool IsImagePlainConstant(FVector4f& OutColor) const override;
|
|
virtual Ptr<ImageSizeExpression> GetImageSizeExpression() const override;
|
|
virtual FSourceDataDescriptor GetSourceDataDescriptor(FGetSourceDataDescriptorContext*) const override;
|
|
|
|
};
|
|
|
|
}
|
|
|