gfx.memalloc

A memory allocator for Gfx-d

Modules

dedicated
module gfx.memalloc.dedicated
Undocumented in source.
pool
module gfx.memalloc.pool
Undocumented in source.

Members

Classes

Allocator
class Allocator

Memory allocator for a device

BufferAlloc
class BufferAlloc
Undocumented in source.
ImageAlloc
class ImageAlloc
Undocumented in source.
MemAlloc
class MemAlloc

Represent a single allocation within a DeviceMemory

Enums

AllocFlags
enum AllocFlags

Flags controlling an allocation of memory

AllocatorFlags
enum AllocatorFlags

Option flags for creating an Allocator

MemoryUsage
enum MemoryUsage

Describes the usage of a memory allocation

ResourceLayout
enum ResourceLayout

Layout of a resource This is important to determined whether a page alignment or simple alignemnt is necessary between two consecutive resources

Functions

createAllocator
Allocator createAllocator(Device device, AllocatorOptions options)

Create an Allocator for device and options

findMemoryTypeIndex
uint findMemoryTypeIndex(MemoryType[] types, uint allowedIndexMask, AllocOptions options)

Find a memory type index suitable for the given allowedIndexMask and info.

granularityMatters
bool granularityMatters(ResourceLayout l1, ResourceLayout l2)

whether two adjacent block should check for granularity alignment

Interfaces

MemBlock
interface MemBlock

A block of memory associated to one DeviceMemory

Manifest constants

gfxMemallocLogMask
enum gfxMemallocLogMask;
Undocumented in source.

Structs

AllocOptions
struct AllocOptions

Structure controlling an allocation of memory

AllocResult
struct AllocResult

The result of allocation request

AllocStats
struct AllocStats

Some stats of an allocator that can be collected with Allocator.collectStats

AllocatorOptions
struct AllocatorOptions

Options for the creation of an Allocator

HeapOptions
struct HeapOptions

Option to define allocation behavior for each heap of the device

Variables

gfxMemallocLog
auto gfxMemallocLog;
Undocumented in source.

Meta