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

Public Member Functions

 FDynamicMeshBoundsBuffer ()=default
 
int32 AllocateOffset (int32 NumSlots)
 
void FreeOffset (int32 Offset, int32 NumSlots)
 
int32 GetNumSlotsAllocated () const
 
FDynamicMeshBoundsShaderParameters Update (FRHICommandList &RHICmdList, const TBitArray<> &SlotsToUpdateMask)
 
FRHIUnorderedAccessViewGetUAV () const
 

Detailed Description

Manages a GPU buffer of bounds (AABBs) that are intended for use with mesh sections submitted through the rendering pipeline. The returned slots can be piped through the FMeshBatch::DynamicMeshBoundsIndex and is then used in instance culling. The allocated bounds are not persistent, in that if they are not updated in a given frame, they revert back to uninitialized.

Constructor & Destructor Documentation

◆ FDynamicMeshBoundsBuffer()

FDynamicMeshBoundsBuffer::FDynamicMeshBoundsBuffer ( )
default

Member Function Documentation

◆ AllocateOffset()

int32 FDynamicMeshBoundsBuffer::AllocateOffset ( int32  NumSlots)
inline

◆ FreeOffset()

void FDynamicMeshBoundsBuffer::FreeOffset ( int32  Offset,
int32  NumSlots 
)
inline

◆ GetNumSlotsAllocated()

int32 FDynamicMeshBoundsBuffer::GetNumSlotsAllocated ( ) const
inline

◆ GetUAV()

FRHIUnorderedAccessView * FDynamicMeshBoundsBuffer::GetUAV ( ) const
inline

◆ Update()

FDynamicMeshBoundsShaderParameters FDynamicMeshBoundsBuffer::Update ( FRHICommandList RHICmdList,
const TBitArray<> &  SlotsToUpdateMask 
)
inline

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