Skip to main content
Sets the view for the index buffer.

Syntax

Parameters

pView [in, optional]
Type: const D3D12_INDEX_BUFFER_VIEW *
The view specifies the index buffer’s address, size, and DXGI_FORMAT, as a pointer to a D3D12_INDEX_BUFFER_VIEW structure.

Return value

Type: void None.

Remarks

Only one index buffer can be bound to the graphics pipeline at any one time.

Examples

The D3D12Bundles sample uses ID3D12GraphicsCommandList::IASetIndexBuffer as follows:
See 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

ID3D12GraphicsCommandList
Last modified on August 20, 2026