UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MegaLightsViewState.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Math/Vector4.h"
6#include "RendererInterface.h"
8
9enum class EMegaLightsInput : uint8;
10
12{
13public:
15 {
25
26 // Optionally used, default is StochasticLightingViewState.SceneXxxHistory
29
31 FVector4f HistoryUVMinMax = FVector4f(0.0f, 0.0f, 0.0f, 0.0f);
32 FVector4f HistoryGatherUVMinMax = FVector4f(0.0f, 0.0f, 0.0f, 0.0f);
36
39
52
54 };
55
57 {
59 HairStrands.SafeRelease();
60 }
61
63 {
64 uint64 Out = 0;
66 Out += HairStrands.GetGPUSizeBytes(bLogSizes);
67 return Out;
68 }
69
72};
73
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE::Math::TVector4< float > FVector4f
Definition MathFwd.h:75
EMegaLightsInput
Definition MegaLightsInternal.h:82
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition MegaLightsViewState.h:12
FResources GBuffer
Definition MegaLightsViewState.h:70
uint64 GetGPUSizeBytes(bool bLogSizes) const
Definition MegaLightsViewState.h:62
FResources HairStrands
Definition MegaLightsViewState.h:71
void SafeRelease()
Definition MegaLightsViewState.h:56
Definition RefCounting.h:454
UE_FORCEINLINE_HINT void SafeRelease()
Definition RefCounting.h:599
Definition HairStrandsData.h:476
Definition MegaLightsViewState.h:15
FIntVector HistoryVolumeVisibleLightHashViewSizeInTiles
Definition MegaLightsViewState.h:37
FIntPoint HistoryVisibleLightHashViewSizeInTiles
Definition MegaLightsViewState.h:35
uint64 GetGPUSizeBytes(bool bLogSizes) const
Definition SceneViewState.cpp:328
TRefCountPtr< FRDGPooledBuffer > TranslucencyVolume0VisibleLightHashHistory
Definition MegaLightsViewState.h:23
TRefCountPtr< IPooledRenderTarget > SceneNormalHistory
Definition MegaLightsViewState.h:28
FVector4f HistoryScreenPositionScaleBias
Definition MegaLightsViewState.h:30
TRefCountPtr< FRDGPooledBuffer > VisibleLightHashHistory
Definition MegaLightsViewState.h:20
TRefCountPtr< FRDGPooledBuffer > VisibleLightMaskHashHistory
Definition MegaLightsViewState.h:21
FIntPoint HistoryVisibleLightHashViewMinInTiles
Definition MegaLightsViewState.h:34
TRefCountPtr< IPooledRenderTarget > NumFramesAccumulatedHistory
Definition MegaLightsViewState.h:19
FVector4f HistoryBufferSizeAndInvSize
Definition MegaLightsViewState.h:33
FVector4f HistoryGatherUVMinMax
Definition MegaLightsViewState.h:32
TRefCountPtr< IPooledRenderTarget > SceneDepthHistory
Definition MegaLightsViewState.h:27
TRefCountPtr< FRDGPooledBuffer > TranslucencyVolume1VisibleLightHashHistory
Definition MegaLightsViewState.h:24
TRefCountPtr< FRDGPooledBuffer > VolumeVisibleLightHashHistory
Definition MegaLightsViewState.h:22
TRefCountPtr< IPooledRenderTarget > DiffuseLightingHistory
Definition MegaLightsViewState.h:16
TRefCountPtr< IPooledRenderTarget > LightingMomentsHistory
Definition MegaLightsViewState.h:18
FIntVector HistoryTranslucencyVolumeVisibleLightHashSizeInTiles
Definition MegaLightsViewState.h:38
TRefCountPtr< IPooledRenderTarget > SpecularLightingHistory
Definition MegaLightsViewState.h:17
void SafeRelease()
Definition MegaLightsViewState.h:40
FVector4f HistoryUVMinMax
Definition MegaLightsViewState.h:31
Definition IntPoint.h:25
static const TIntVector3 ZeroValue
Definition IntVector.h:45