34 lines
859 B
C++
34 lines
859 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "SceneView.h"
|
|
#include "Math/Vector4.h"
|
|
#include "RendererInterface.h"
|
|
#include "RenderGraphResources.h"
|
|
|
|
class FTranslucencyLightingViewState
|
|
{
|
|
public:
|
|
TStaticArray<TRefCountPtr<IPooledRenderTarget>, TVC_MAX> HistoryAmbient;
|
|
TStaticArray<TRefCountPtr<IPooledRenderTarget>, TVC_MAX> HistoryDirectional;
|
|
|
|
TStaticArray<TRefCountPtr<IPooledRenderTarget>, TVC_MAX> HistoryMark;
|
|
|
|
TStaticArray<FVector, TVC_MAX> HistoryVolumeMin;
|
|
TStaticArray<float, TVC_MAX> HistoryVoxelSize;
|
|
TStaticArray<FVector, TVC_MAX> HistoryVolumeSize;
|
|
|
|
void SafeRelease()
|
|
{
|
|
for (int32 Index = 0; Index < TVC_MAX; Index++)
|
|
{
|
|
HistoryAmbient[Index].SafeRelease();
|
|
HistoryDirectional[Index].SafeRelease();
|
|
|
|
HistoryMark[Index].SafeRelease();
|
|
}
|
|
}
|
|
|
|
uint64 GetGPUSizeBytes(bool bLogSizes) const;
|
|
}; |