Module gfx.memalloc

A memory allocator for Gfx-d

Functions

NameDescription
createAllocator(device, options) Create an Allocator for device and options
findMemoryTypeIndex(types, allowedIndexMask, options) Find a memory type index suitable for the given allowedIndexMask and info.

Classes

NameDescription
Allocator Memory allocator for a device
BufferAlloc
ImageAlloc
MemAlloc Represent a single allocation within a DeviceMemory

Structs

NameDescription
AllocatorOptions Options for the creation of an Allocator
AllocOptions Structure controlling an allocation of memory
AllocStats Some stats of an allocator that can be collected with Allocator.collectStats
HeapOptions Option to define allocation behavior for each heap of the device

Enums

NameDescription
AllocatorFlags Option flags for creating an Allocator
AllocFlags Flags controlling an allocation of memory
MemoryUsage Describes the usage of a memory allocation
ResourceLayout Layout of a resource This is important to determined whether a page alignment or simple alignemnt is necessary between two consecutive resources

Manifest constants

NameTypeDescription
gfxMemallocLogMask