Skip to main content
Gets the size of the handle increment for the given type of descriptor heap. This value is typically used to increment a handle into a descriptor array by the correct amount.

Syntax

Parameters

DescriptorHeapType [in]
Type: D3D12_DESCRIPTOR_HEAP_TYPE
The D3D12_DESCRIPTOR_HEAP_TYPE-typed value that specifies the type of descriptor heap to get the size of the handle increment for.

Return value

Type: UINT Returns the size of the handle increment for the given type of descriptor heap, including any necessary padding.

Remarks

The descriptor size returned by this method is used as one input to the helper structures CD3DX12_CPU_DESCRIPTOR_HANDLE and CD3DX12_GPU_DESCRIPTOR_HANDLE.

Examples

The D3D12PredicationQueries sample uses ID3D12Device::GetDescriptorHandleIncrementSize as follows: Create the descriptor heap for the resources. The m_rtvDescriptorSize variable stores the render target view descriptor handle increment size, and is used in the Create frame resources section of the code.
Refer to the Example Code in the D3D12 Reference.

Requirements

Header: d3d12_xs.h or d3d12_x.h
Library: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family

See Also

ID3D12Device
Last modified on August 20, 2026