Cogs.Core
Public Member Functions | List of all members
Cogs::BufferPool Struct Reference
Inheritance diagram for Cogs::BufferPool:
Cogs::Collections::ConfigurablePagedPool< BufferContext, BufferPage, PoolBuffer >

Public Member Functions

void initialize (ResourcePointer< ID3D12Device > device, size_t capacity, uint32_t elementSize, uint32_t pageSize=128)
 
- Public Member Functions inherited from Cogs::Collections::ConfigurablePagedPool< BufferContext, BufferPage, PoolBuffer >
 ConfigurablePagedPool ()=default
 Constructs a default, empty pool.
 
 ConfigurablePagedPool (BufferContext context, size_t capacity, size_t pageSize)
 Constructs a pool with the given context, capacity and pageSize.
 
void initialize (BufferContext context, size_t capacity, size_t pageSize)
 Initialize the pool with the given parameters.
 
PoolBufferallocate ()
 Allocates storage for a new item and returns a pointer to the item.
 
void deallocate (PoolBuffer *item)
 Deallocate the given item.
 
void resize (size_t capacity)
 Resize the pool to the given capacity.
 

Detailed Description

Definition at line 47 of file BuffersD3D12.h.

Member Function Documentation

◆ initialize()

void Cogs::BufferPool::initialize ( ResourcePointer< ID3D12Device >  device,
size_t  capacity,
uint32_t  elementSize,
uint32_t  pageSize = 128 
)
inline

Definition at line 49 of file BuffersD3D12.h.


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