Open 3D Engine Meshlets Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::Meshlets::SharedBufferAllocation Class Reference

#include <SharedBufferInterface.h>

Inherits AZStd::intrusive_base.

Public Member Functions

 AZ_CLASS_ALLOCATOR (SharedBufferAllocation, AZ::SystemAllocator)
 
 SharedBufferAllocation (RHI::VirtualAddress virtualAddress)
 
void SuppressSignalOnDeallocate ()
 If this function is called, the SharedBuffer will not signal when the memory is freed.
 
RHI::VirtualAddress GetVirtualAddress () const
 

Detailed Description

An intrusive_ptr wrapper around an RHI::Allocation that will automatically free the memory from the SharedBuffer when the ref count drops to zero. Allocated memory will be cleared using the underlying allocator system and indirectly the garbage collection. Since the garbage collection is ran with delay of 3 frames due to CPU-GPU latency, this might result in over allocation at reset / back from game mode.


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