#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 |
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.