Direct3D 12 Memory Allocator
|
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_CALLBACKS * | pAllocationCallbacks |
Custom CPU memory allocation callbacks. Optional. | |
IDXGIAdapter * | pAdapter |
Parameters of created Allocator object. To be used with CreateAllocator().
ALLOCATOR_FLAGS D3D12MA::ALLOCATOR_DESC::Flags |
Flags.
IDXGIAdapter* D3D12MA::ALLOCATOR_DESC::pAdapter |
DXGI Adapter object that you use for D3D12 and this allocator.
Allocator is doing AddRef
/Release
on this object.
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.
ID3D12Device* D3D12MA::ALLOCATOR_DESC::pDevice |
Direct3D device object that the allocator should be attached to.
Allocator is doing AddRef
/Release
on this object.
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.