Files
UnrealEngine/Engine/Source/Runtime/Renderer/Private/MobileDistortionPass.h
2025-05-18 13:04:45 +08:00

31 lines
843 B
C++

// Copyright Epic Games, Inc.All Rights Reserved.
#pragma once
#include "ScreenPass.h"
class FScene;
struct FMobileDistortionAccumulateInputs
{
FScreenPassTexture SceneColor;
};
struct FMobileDistortionAccumulateOutputs
{
FScreenPassTexture DistortionAccumulate;
};
FMobileDistortionAccumulateOutputs AddMobileDistortionAccumulatePass(FRDGBuilder& GraphBuilder, FScene* Scene, const FViewInfo& View, const FMobileDistortionAccumulateInputs& Inputs);
struct FMobileDistortionMergeInputs
{
FScreenPassTexture SceneColor;
FScreenPassTexture DistortionAccumulate;
};
FScreenPassTexture AddMobileDistortionMergePass(FRDGBuilder& GraphBuilder, const FViewInfo& View, const FMobileDistortionMergeInputs& Inputs);
// Returns whether distortion is enabled and there primitives to draw
bool IsMobileDistortionActive(const FViewInfo& View);