D3D12_RESOURCE_ALLOCATION_INFO structure (d3d12.h)

Describes parameters needed to allocate resources.

Syntax

typedef struct D3D12_RESOURCE_ALLOCATION_INFO {
  UINT64 SizeInBytes;
  UINT64 Alignment;
} D3D12_RESOURCE_ALLOCATION_INFO;

Members

SizeInBytes

Type: UINT64

The size, in bytes, of the resource.

Alignment

Type: UINT64

The alignment value for the resource; one of 4KB (4096), 64KB (65536), or 4MB (4194304) alignment.

Remarks

This structure is used by the ID3D12Device::GetResourceAllocationInfo and ID3D12Device::GetResourceAllocationInfo1 methods.

Requirements

Requirement Value
Header d3d12.h

See also

CD3DX12_RESOURCE_ALLOCATION_INFO

Core structures