// Copyright Epic Games, Inc. All Rights Reserved. /*============================================================================= ShadingEnergyConservation.h: private energy conservation related data =============================================================================*/ #pragma once #include "CoreMinimal.h" #include "RendererInterface.h" class FViewInfo; struct FShadingEnergyConservationData { bool bEnergyConservation = false; bool bEnergyPreservation = false; TRefCountPtr GGXSpecEnergyTexture = nullptr; TRefCountPtr GGXGlassEnergyTexture = nullptr; TRefCountPtr ClothEnergyTexture = nullptr; TRefCountPtr DiffuseEnergyTexture = nullptr; }; namespace ShadingEnergyConservation { void Init(FRDGBuilder& GraphBuilder, const FViewInfo& View); void Debug(FRDGBuilder& GraphBuilder, const FViewInfo& View, FSceneTextures& SceneTextures); FShadingEnergyConservationData GetData(const FViewInfo& View); }