|
Nebula
|
#include <memory.h>
Public Member Functions | |
| Alloc | AllocateMemory (uint alignment, uint size) |
| bool | DeallocateMemory (const Alloc &alloc) |
| Deallocates memory, if a GPU block was freed this function returns true. | |
| void | Clear () |
| void * | GetMappedMemory (const Alloc &alloc) |
Public Attributes | |
| DeviceSize | blockSize |
| uint | memoryType |
| Ids::IdPool | blockPool |
| Util::Array< DeviceMemory > | blocks |
| Util::Array< Memory::RangeAllocator > | allocators |
| Util::Array< void * > | blockMappedPointers |
| DeviceSize | size |
| const char * | budgetCounter |
| DeviceSize | maxSize |
| bool | mapMemory |
| MemoryHeap * | heap |
Private Member Functions | |
| DeviceMemory | CreateBlock (void **outMappedPtr) |
| void | DestroyBlock (DeviceMemory mem) |
| Alloc | AllocateExclusiveBlock (DeviceSize alignment, DeviceSize size) |
Static Private Attributes | |
| static constexpr uint | DedicatedBlockNodeIndex = 0xFFFFFFFF |
|
private |
| void CoreGraphics::MemoryPool::Clear | ( | ) |
|
private |
| bool CoreGraphics::MemoryPool::DeallocateMemory | ( | const Alloc & | alloc | ) |
Deallocates memory, if a GPU block was freed this function returns true.
|
private |
| void * CoreGraphics::MemoryPool::GetMappedMemory | ( | const Alloc & | alloc | ) |
| Util::Array<Memory::RangeAllocator> CoreGraphics::MemoryPool::allocators |
| Util::Array<void*> CoreGraphics::MemoryPool::blockMappedPointers |
| Ids::IdPool CoreGraphics::MemoryPool::blockPool |
| Util::Array<DeviceMemory> CoreGraphics::MemoryPool::blocks |
| DeviceSize CoreGraphics::MemoryPool::blockSize |
| const char* CoreGraphics::MemoryPool::budgetCounter |
|
staticconstexprprivate |
| MemoryHeap* CoreGraphics::MemoryPool::heap |
| bool CoreGraphics::MemoryPool::mapMemory |
| DeviceSize CoreGraphics::MemoryPool::maxSize |
| uint CoreGraphics::MemoryPool::memoryType |
| DeviceSize CoreGraphics::MemoryPool::size |