UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FTranslucencyLightingVolumeTextures Struct Reference

#include <TranslucentLighting.h>

Public Member Functions

int32 GetIndex (const FViewInfo &View, int32 CascadeIndex) const
 
void Init (FRDGBuilder &GraphBuilder, TArrayView< const FViewInfo > Views, ERDGPassFlags PassFlags)
 
bool IsValid () const
 
FRDGTextureRef GetAmbientTexture (const FViewInfo &View, int32 CascadeIndex) const
 
FRDGTextureRef GetDirectionalTexture (const FViewInfo &View, int32 CascadeIndex) const
 

Static Public Member Functions

static void GetTextureFormatAndCreationFlags (EPixelFormat &OutPixelFormat, ETextureCreateFlags &OutCreationFlags)
 

Public Attributes

TArray< FRDGTextureRef, TInlineAllocator< TVC_MAX > > Ambient
 
TArray< FRDGTextureRef, TInlineAllocator< TVC_MAX > > Directional
 
int32 VolumeDim = 0
 
TArray< int32, TInlineAllocator< 2 > > ViewsToTexturePairs
 

Member Function Documentation

◆ GetAmbientTexture()

FRDGTextureRef FTranslucencyLightingVolumeTextures::GetAmbientTexture ( const FViewInfo View,
int32  CascadeIndex 
) const
inline

◆ GetDirectionalTexture()

FRDGTextureRef FTranslucencyLightingVolumeTextures::GetDirectionalTexture ( const FViewInfo View,
int32  CascadeIndex 
) const
inline

◆ GetIndex()

int32 FTranslucencyLightingVolumeTextures::GetIndex ( const FViewInfo View,
int32  CascadeIndex 
) const

Maps view to a texture index, accounting for sharing between some views

◆ GetTextureFormatAndCreationFlags()

void FTranslucencyLightingVolumeTextures::GetTextureFormatAndCreationFlags ( EPixelFormat OutPixelFormat,
ETextureCreateFlags OutCreationFlags 
)
static

Retrieve the statically defined pixel format and creation flags used for the translucency light volume textures

◆ Init()

void FTranslucencyLightingVolumeTextures::Init ( FRDGBuilder GraphBuilder,
TArrayView< const FViewInfo Views,
ERDGPassFlags  PassFlags 
)

Initializes the translucent volume textures and clears them using a compute pass. PassFlags should be ERDGPassFlags::Compute or ERDGPassFlags::AsyncCompute.

◆ IsValid()

bool FTranslucencyLightingVolumeTextures::IsValid ( ) const
inline

Member Data Documentation

◆ Ambient

TArray<FRDGTextureRef, TInlineAllocator<TVC_MAX> > FTranslucencyLightingVolumeTextures::Ambient

◆ Directional

TArray<FRDGTextureRef, TInlineAllocator<TVC_MAX> > FTranslucencyLightingVolumeTextures::Directional

◆ ViewsToTexturePairs

TArray<int32, TInlineAllocator<2> > FTranslucencyLightingVolumeTextures::ViewsToTexturePairs

Mapping between the view index and texture pair - needed because stereo views shares textures.

◆ VolumeDim

int32 FTranslucencyLightingVolumeTextures::VolumeDim = 0

The documentation for this struct was generated from the following files: