Skip to content

LiteFX::Rendering::Backends::DirectX12GraphicsFactory::createAllocator

Creates a virtual allocator that can be used to manage allocation from a custom block of memory.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, nodiscard, dllexport]] virtual VirtualAllocator createAllocator(
    UInt64 overallMemory,
    AllocationAlgorithm algorithm = AllocationAlgorithm::Default) const override;

Return Value

The instance of the virtual allocator.

Note

The return value should not be discarded.

Parameters

NameDescription
overallMemoryThe overall size (in bytes) of memory available to the allocator.
algorithmThe algorithm used to find a suitable block in the allocator memory.