UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FRenderAssetInstanceState Class Reference

#include <TextureInstanceState.h>

+ Inheritance diagram for FRenderAssetInstanceState:

Classes

struct  FPreAddBounds
 
struct  FPreAddComponentIgnoreBoundsPayload
 
struct  FPreAddComponentPayload
 
struct  FPreAddRenderAssetElement
 

Public Member Functions

 FRenderAssetInstanceState (bool bForDynamicInstances)
 
EAddComponentResult AddComponent (const UPrimitiveComponent *Component, FStreamingTextureLevelContext &LevelContext, float MaxAllowedUIDensity)
 
EAddComponentResult AddComponent (const FPreAddComponentPayload &Payload)
 
EAddComponentResult AddComponents (const TArray< FRenderAssetInstanceState::FPreAddComponentPayload > &Payloads, TFunctionRef< void(const FRenderAssetInstanceState::FPreAddComponentPayload &, EAddComponentResult)> OnAddFailedFunc)
 
EAddComponentResult AddComponentIgnoreBounds (const UPrimitiveComponent *Component, FStreamingTextureLevelContext &LevelContext)
 
EAddComponentResult AddComponentIgnoreBounds (const FPreAddComponentIgnoreBoundsPayload &Payload)
 
FORCEINLINE bool HasComponentReferences (const UPrimitiveComponent *Component) const
 
void RemoveComponent (const UPrimitiveComponent *Component, FRemovedRenderAssetArray *RemovedRenderAssets)
 
bool RemoveComponentReferences (const UPrimitiveComponent *Component)
 
void FlushPendingRemoveComponents (FRemovedRenderAssetArray &RemovedRenderAssets)
 
void GetReferencedComponents (TArray< const UPrimitiveComponent * > &Components) const
 
void UpdateBounds (const UPrimitiveComponent *Component)
 
bool UpdateBounds (int32 BoundIndex)
 
bool ConditionalUpdateBounds (int32 BoundIndex)
 
void UpdateLastRenderTimeAndMaxDrawDistance (int32 BoundIndex)
 
uint32 GetAllocatedSize () const
 
int32 CompileElements ()
 
int32 CheckRegistrationAndUnpackBounds (TArray< const UPrimitiveComponent * > &RemovedComponents)
 
bool MoveBound (int32 SrcBoundIndex, int32 DstBoundIndex)
 
void TrimBounds ()
 
void OffsetBounds (const FVector &Offset)
 
FORCEINLINE int32 NumBounds () const
 
FORCEINLINE bool HasComponent (int32 BoundIndex) const
 
- Public Member Functions inherited from FRenderAssetInstanceView
 FRenderAssetInstanceView ()
 
FORCEINLINE int32 NumBounds4 () const
 
FORCEINLINE const FBounds4GetBounds4 (int32 Bounds4Index) const
 
FORCEINLINE TConstArrayView< FBounds4GetBoundsView () const
 
FORCEINLINE FRenderAssetLinkIterator GetElementIterator (const UStreamableRenderAsset *InTexture)
 
FORCEINLINE FRenderAssetLinkConstIterator GetElementIterator (const UStreamableRenderAsset *InTexture) const
 
FORCEINLINE FRenderAssetIterator GetRenderAssetIterator () const
 
bool HasCompiledElements () const
 
const TArray< FCompiledElement > * GetCompiledElements (const UStreamableRenderAsset *Asset) const
 
bool HasComponentWithForcedLOD (const UStreamableRenderAsset *Asset) const
 
bool HasAnyComponentWithForcedLOD () const
 
float GetMaxTexelFactor () const
 
- Public Member Functions inherited from FRefCountedObject
 FRefCountedObject ()
 
virtual ~FRefCountedObject ()
 
 FRefCountedObject (const FRefCountedObject &Rhs)=delete
 
FRefCountedObjectoperator= (const FRefCountedObject &Rhs)=delete
 
FReturnedRefCountValue AddRef () const
 
uint32 Release () const
 
uint32 GetRefCount () const
 

Static Public Member Functions

static void PreAddComponent (const UPrimitiveComponent *Component, FStreamingTextureLevelContext &LevelContext, float MaxAllowedUIDensity, FPreAddComponentPayload &OutPayload)
 
static void PreAddComponentIgnoreBounds (const UPrimitiveComponent *Component, FStreamingTextureLevelContext &LevelContext, FPreAddComponentIgnoreBoundsPayload &OutPayload)
 
- Static Public Member Functions inherited from FRenderAssetInstanceView
static TRefCountPtr< const FRenderAssetInstanceViewCreateView (const FRenderAssetInstanceView *RefView)
 
static TRefCountPtr< FRenderAssetInstanceViewCreateViewWithUninitializedBounds (const FRenderAssetInstanceView *RefView)
 
static void SwapData (FRenderAssetInstanceView *Lfs, FRenderAssetInstanceView *Rhs)
 
static float GetMaxDrawDistSqWithLODParent (const FVector &Origin, const FVector &ParentOrigin, float ParentMinDrawDist, float ParentBoundingSphereRadius)
 
static void GetDistanceAndRange (const UPrimitiveComponent *Component, const FBoxSphereBounds &RenderAssetInstanceBounds, float &MinDistanceSq, float &MinRangeSq, float &MaxRangeSq)
 
static void OutputToLog (const FBoxSphereBounds &Bounds, int32 BoundsIndex, const TArray< FBounds4 > &Bounds4, float TexelFactor, bool bForceLoad, float MaxNormalizedSize, float MaxNormalizedSize_VisibleOnly, const TCHAR *Prefix, const UPrimitiveComponent *Component=nullptr)
 

Friends

class FRenderAssetLinkIterator
 
class FRenderAssetIterator
 

Additional Inherited Members

- Protected Attributes inherited from FRenderAssetInstanceView
TArray< FBounds4Bounds4
 
TChunkedArray< FElementElements
 
TMap< const UStreamableRenderAsset *, FRenderAssetDescRenderAssetMap
 
TMap< const UStreamableRenderAsset *, TArray< FCompiledElement > > CompiledRenderAssetMap
 
TMap< const UStreamableRenderAsset *, int32CompiledNumForcedLODCompMap
 
float MaxTexelFactor
 

Constructor & Destructor Documentation

◆ FRenderAssetInstanceState()

FRenderAssetInstanceState::FRenderAssetInstanceState ( bool  bForDynamicInstances)

Member Function Documentation

◆ AddComponent() [1/2]

EAddComponentResult FRenderAssetInstanceState::AddComponent ( const FPreAddComponentPayload Payload)

◆ AddComponent() [2/2]

EAddComponentResult FRenderAssetInstanceState::AddComponent ( const UPrimitiveComponent *  Component,
FStreamingTextureLevelContext LevelContext,
float  MaxAllowedUIDensity 
)

◆ AddComponentIgnoreBounds() [1/2]

EAddComponentResult FRenderAssetInstanceState::AddComponentIgnoreBounds ( const FPreAddComponentIgnoreBoundsPayload Payload)

◆ AddComponentIgnoreBounds() [2/2]

EAddComponentResult FRenderAssetInstanceState::AddComponentIgnoreBounds ( const UPrimitiveComponent *  Component,
FStreamingTextureLevelContext LevelContext 
)

◆ AddComponents()

EAddComponentResult FRenderAssetInstanceState::AddComponents ( const TArray< FRenderAssetInstanceState::FPreAddComponentPayload > &  Payloads,
TFunctionRef< void(const FRenderAssetInstanceState::FPreAddComponentPayload &, EAddComponentResult)>  OnAddFailedFunc 
)

◆ CheckRegistrationAndUnpackBounds()

int32 FRenderAssetInstanceState::CheckRegistrationAndUnpackBounds ( TArray< const UPrimitiveComponent * > &  RemovedComponents)

◆ CompileElements()

int32 FRenderAssetInstanceState::CompileElements ( )

◆ ConditionalUpdateBounds()

bool FRenderAssetInstanceState::ConditionalUpdateBounds ( int32  BoundIndex)

◆ FlushPendingRemoveComponents()

void FRenderAssetInstanceState::FlushPendingRemoveComponents ( FRemovedRenderAssetArray RemovedRenderAssets)

◆ GetAllocatedSize()

uint32 FRenderAssetInstanceState::GetAllocatedSize ( ) const

◆ GetReferencedComponents()

void FRenderAssetInstanceState::GetReferencedComponents ( TArray< const UPrimitiveComponent * > &  Components) const

◆ HasComponent()

FORCEINLINE bool FRenderAssetInstanceState::HasComponent ( int32  BoundIndex) const
inline

◆ HasComponentReferences()

FORCEINLINE bool FRenderAssetInstanceState::HasComponentReferences ( const UPrimitiveComponent *  Component) const
inline

◆ MoveBound()

bool FRenderAssetInstanceState::MoveBound ( int32  SrcBoundIndex,
int32  DstBoundIndex 
)

Move around one bound to free the last bound indices. This allows to keep the number of dynamic bounds low.

◆ NumBounds()

FORCEINLINE int32 FRenderAssetInstanceState::NumBounds ( ) const
inline

◆ OffsetBounds()

void FRenderAssetInstanceState::OffsetBounds ( const FVector Offset)

◆ PreAddComponent()

void FRenderAssetInstanceState::PreAddComponent ( const UPrimitiveComponent *  Component,
FStreamingTextureLevelContext LevelContext,
float  MaxAllowedUIDensity,
FPreAddComponentPayload OutPayload 
)
static

◆ PreAddComponentIgnoreBounds()

void FRenderAssetInstanceState::PreAddComponentIgnoreBounds ( const UPrimitiveComponent *  Component,
FStreamingTextureLevelContext LevelContext,
FPreAddComponentIgnoreBoundsPayload OutPayload 
)
static

◆ RemoveComponent()

void FRenderAssetInstanceState::RemoveComponent ( const UPrimitiveComponent *  Component,
FRemovedRenderAssetArray RemovedRenderAssets 
)

◆ RemoveComponentReferences()

bool FRenderAssetInstanceState::RemoveComponentReferences ( const UPrimitiveComponent *  Component)

◆ TrimBounds()

void FRenderAssetInstanceState::TrimBounds ( )

◆ UpdateBounds() [1/2]

void FRenderAssetInstanceState::UpdateBounds ( const UPrimitiveComponent *  Component)

◆ UpdateBounds() [2/2]

bool FRenderAssetInstanceState::UpdateBounds ( int32  BoundIndex)

◆ UpdateLastRenderTimeAndMaxDrawDistance()

void FRenderAssetInstanceState::UpdateLastRenderTimeAndMaxDrawDistance ( int32  BoundIndex)

Friends And Related Symbol Documentation

◆ FRenderAssetIterator

◆ FRenderAssetLinkIterator


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