UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
D3D12Allocation.h File Reference
#include "D3D12Resources.h"
#include "D3D12PoolAllocator.h"
#include "Misc/ScopeRWLock.h"

Go to the source code of this file.

Classes

struct  FD3D12SegListAllocatorLeakTrack
 
class  FD3D12ResourceAllocator
 
class  FD3D12BuddyAllocator
 
class  FD3D12MultiBuddyAllocator
 
class  FD3D12BucketAllocator
 
class  FD3D12UploadHeapAllocator
 
class  FD3D12DefaultBufferPool
 
class  FD3D12DefaultBufferAllocator
 
struct  FD3D12FastAllocatorPage
 
class  FD3D12FastAllocatorPagePool
 
class  FD3D12FastAllocator
 
class  FD3D12FastConstantAllocator
 
class  FD3D12SegHeap
 
class  FD3D12SegList
 
class  FD3D12SegListAllocator
 
class  FD3D12TextureAllocator
 
class  FD3D12TextureAllocatorPool
 

Macros

#define SUB_ALLOCATED_DEFAULT_ALLOCATIONS   1
 
#define USE_BUFFER_POOL_ALLOCATOR   (PLATFORM_WINDOWS)
 
#define USE_TEXTURE_POOL_ALLOCATOR   (PLATFORM_WINDOWS)
 
#define D3D12RHI_SEGREGATED_TEXTURE_ALLOC   (PLATFORM_WINDOWS)
 
#define D3D12RHI_SEGLIST_ALLOC_TRACK_WASTAGE   (!(UE_BUILD_TEST || UE_BUILD_SHIPPING))
 
#define D3D12RHI_SEGLIST_ALLOC_TRACK_LEAK_STACK_DEPTH   12
 
#define D3D12RHI_TRACK_DETAILED_STATS   (PLATFORM_WINDOWS && !(UE_BUILD_TEST || UE_BUILD_SHIPPING))
 
#define MIN_PLACED_RESOURCE_SIZE   (64 * 1024)
 
#define D3D_BUFFER_ALIGNMENT   (64 * 1024)
 
#define INCREASE_ALLOC_COUNTER(A, B)   (A = A + B);
 
#define DECREASE_ALLOC_COUNTER(A, B)   (A = A - B);
 

Typedefs

typedef FD3D12DefaultBufferPool FD3D12BufferPool
 

Functions

FORCEINLINE uint32 GetTypeHash (const FD3D12SegListAllocatorLeakTrack &S)
 

Variables

const uint32 kD3D12ManualSubAllocationAlignment = 256
 

Macro Definition Documentation

◆ D3D12RHI_SEGLIST_ALLOC_TRACK_LEAK_STACK_DEPTH

#define D3D12RHI_SEGLIST_ALLOC_TRACK_LEAK_STACK_DEPTH   12

◆ D3D12RHI_SEGLIST_ALLOC_TRACK_WASTAGE

#define D3D12RHI_SEGLIST_ALLOC_TRACK_WASTAGE   (!(UE_BUILD_TEST || UE_BUILD_SHIPPING))

◆ D3D12RHI_SEGREGATED_TEXTURE_ALLOC

#define D3D12RHI_SEGREGATED_TEXTURE_ALLOC   (PLATFORM_WINDOWS)

◆ D3D12RHI_TRACK_DETAILED_STATS

#define D3D12RHI_TRACK_DETAILED_STATS   (PLATFORM_WINDOWS && !(UE_BUILD_TEST || UE_BUILD_SHIPPING))

◆ D3D_BUFFER_ALIGNMENT

#define D3D_BUFFER_ALIGNMENT   (64 * 1024)

◆ DECREASE_ALLOC_COUNTER

#define DECREASE_ALLOC_COUNTER (   A,
  B 
)    (A = A - B);

◆ INCREASE_ALLOC_COUNTER

#define INCREASE_ALLOC_COUNTER (   A,
  B 
)    (A = A + B);

◆ MIN_PLACED_RESOURCE_SIZE

#define MIN_PLACED_RESOURCE_SIZE   (64 * 1024)

◆ SUB_ALLOCATED_DEFAULT_ALLOCATIONS

#define SUB_ALLOCATED_DEFAULT_ALLOCATIONS   1

◆ USE_BUFFER_POOL_ALLOCATOR

#define USE_BUFFER_POOL_ALLOCATOR   (PLATFORM_WINDOWS)

◆ USE_TEXTURE_POOL_ALLOCATOR

#define USE_TEXTURE_POOL_ALLOCATOR   (PLATFORM_WINDOWS)

Typedef Documentation

◆ FD3D12BufferPool

Function Documentation

◆ GetTypeHash()

Variable Documentation

◆ kD3D12ManualSubAllocationAlignment

const uint32 kD3D12ManualSubAllocationAlignment = 256