LiteFX::Rendering::IGraphicsFactory::createAllocator¶
Creates a virtual allocator that can be used to manage allocation from a custom block of memory.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[dllimport, nodiscard, dllexport]] virtual VirtualAllocator createAllocator(
UInt64 overallMemory,
AllocationAlgorithm algorithm = AllocationAlgorithm::Default) const = 0;
Return Value¶
The instance of the virtual allocator.
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| overallMemory | The overall size (in bytes) of memory available to the allocator. |
| algorithm | The algorithm used to find a suitable block in the allocator memory. |