Direct3D 12 Memory Allocator
Loading...
Searching...
No Matches
Public Attributes | List of all members
D3D12MA::ALLOCATOR_DESC Struct Reference

Parameters of created Allocator object. To be used with CreateAllocator(). More...

#include <D3D12MemAlloc.h>

Public Attributes

ALLOCATOR_FLAGS Flags
 Flags.
 
ID3D12Device * pDevice
 
UINT64 PreferredBlockSize
 Preferred size of a single ID3D12Heap block to be allocated.
 
const ALLOCATION_CALLBACKSpAllocationCallbacks
 Custom CPU memory allocation callbacks. Optional.
 
IDXGIAdapter * pAdapter
 

Detailed Description

Parameters of created Allocator object. To be used with CreateAllocator().

Member Data Documentation

◆ Flags

ALLOCATOR_FLAGS D3D12MA::ALLOCATOR_DESC::Flags

Flags.

◆ pAdapter

IDXGIAdapter* D3D12MA::ALLOCATOR_DESC::pAdapter

DXGI Adapter object that you use for D3D12 and this allocator.

Allocator is doing AddRef/Release on this object.

◆ pAllocationCallbacks

const ALLOCATION_CALLBACKS* D3D12MA::ALLOCATOR_DESC::pAllocationCallbacks

Custom CPU memory allocation callbacks. Optional.

Optional, can be null. When specified, will be used for all CPU-side memory allocations.

◆ pDevice

ID3D12Device* D3D12MA::ALLOCATOR_DESC::pDevice

Direct3D device object that the allocator should be attached to.

Allocator is doing AddRef/Release on this object.

◆ PreferredBlockSize

UINT64 D3D12MA::ALLOCATOR_DESC::PreferredBlockSize

Preferred size of a single ID3D12Heap block to be allocated.

Set to 0 to use default, which is currently 64 MiB.


The documentation for this struct was generated from the following file: