Diligent Engine  v.2.4.g
Classes | Public Member Functions | List of all members
Diligent::VariableSizeGPUAllocationsManager Class Reference

#include <VariableSizeGPUAllocationsManager.hpp>

Inheritance diagram for Diligent::VariableSizeGPUAllocationsManager:
Diligent::VariableSizeAllocationsManager

Public Member Functions

 VariableSizeGPUAllocationsManager (OffsetType MaxSize, IMemoryAllocator &Allocator)
 
 ~VariableSizeGPUAllocationsManager ()
 
 VariableSizeGPUAllocationsManager (VariableSizeGPUAllocationsManager &&rhs) noexcept
 
VariableSizeGPUAllocationsManageroperator= (VariableSizeGPUAllocationsManager &&rhs)=delete
 
 VariableSizeGPUAllocationsManager (const VariableSizeGPUAllocationsManager &)=delete
 
VariableSizeGPUAllocationsManageroperator= (const VariableSizeGPUAllocationsManager &)=delete
 
void Free (VariableSizeAllocationsManager::Allocation &&allocation, Uint64 FenceValue)
 
void Free (OffsetType Offset, OffsetType Size, Uint64 FenceValue)
 
void ReleaseStaleAllocations (Uint64 LastCompletedFenceValue)
 
size_t GetStaleAllocationsSize () const
 
- Public Member Functions inherited from Diligent::VariableSizeAllocationsManager
 VariableSizeAllocationsManager (OffsetType MaxSize, IMemoryAllocator &Allocator)
 
 ~VariableSizeAllocationsManager ()
 
 VariableSizeAllocationsManager (VariableSizeAllocationsManager &&rhs) noexcept
 
VariableSizeAllocationsManageroperator= (VariableSizeAllocationsManager &&rhs)=default
 
 VariableSizeAllocationsManager (const VariableSizeAllocationsManager &)=delete
 
VariableSizeAllocationsManageroperator= (const VariableSizeAllocationsManager &)=delete
 
Allocation Allocate (OffsetType Size, OffsetType Alignment)
 
void Free (Allocation &&allocation)
 
void Free (OffsetType Offset, OffsetType Size)
 
bool IsFull () const
 
bool IsEmpty () const
 
OffsetType GetMaxSize () const
 
OffsetType GetFreeSize () const
 
OffsetType GetUsedSize () const
 
size_t GetNumFreeBlocks () const
 
void Extend (size_t ExtraSize)
 

Additional Inherited Members

- Public Types inherited from Diligent::VariableSizeAllocationsManager
using OffsetType = size_t
 

Constructor & Destructor Documentation

◆ VariableSizeGPUAllocationsManager() [1/3]

Diligent::VariableSizeGPUAllocationsManager::VariableSizeGPUAllocationsManager ( OffsetType  MaxSize,
IMemoryAllocator Allocator 
)
inline

◆ ~VariableSizeGPUAllocationsManager()

Diligent::VariableSizeGPUAllocationsManager::~VariableSizeGPUAllocationsManager ( )
inline

◆ VariableSizeGPUAllocationsManager() [2/3]

Diligent::VariableSizeGPUAllocationsManager::VariableSizeGPUAllocationsManager ( VariableSizeGPUAllocationsManager &&  rhs)
inlinenoexcept

◆ VariableSizeGPUAllocationsManager() [3/3]

Diligent::VariableSizeGPUAllocationsManager::VariableSizeGPUAllocationsManager ( const VariableSizeGPUAllocationsManager )
delete

Member Function Documentation

◆ Free() [1/2]

void Diligent::VariableSizeGPUAllocationsManager::Free ( OffsetType  Offset,
OffsetType  Size,
Uint64  FenceValue 
)
inline

◆ Free() [2/2]

void Diligent::VariableSizeGPUAllocationsManager::Free ( VariableSizeAllocationsManager::Allocation &&  allocation,
Uint64  FenceValue 
)
inline

◆ GetStaleAllocationsSize()

size_t Diligent::VariableSizeGPUAllocationsManager::GetStaleAllocationsSize ( ) const
inline

◆ operator=() [1/2]

VariableSizeGPUAllocationsManager& Diligent::VariableSizeGPUAllocationsManager::operator= ( const VariableSizeGPUAllocationsManager )
delete

◆ operator=() [2/2]

VariableSizeGPUAllocationsManager& Diligent::VariableSizeGPUAllocationsManager::operator= ( VariableSizeGPUAllocationsManager &&  rhs)
delete

◆ ReleaseStaleAllocations()

void Diligent::VariableSizeGPUAllocationsManager::ReleaseStaleAllocations ( Uint64  LastCompletedFenceValue)
inline

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