LiteFX::Rendering::VirtualAllocator::create¶
Creates a new virtual allocator instance.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
template<typename TBackend>
[[nodiscard]] static VirtualAllocator create(
UInt64 overallMemory,
AllocationAlgorithm algorithm = AllocationAlgorithm::Default);
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. |