> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# D3D12_INDEX_BUFFER_VIEW

> Describes the index buffer to view.

Describes the index buffer to view.

## Syntax

```cpp theme={null}
typedef struct D3D12_INDEX_BUFFER_VIEW
{
    D3D12_GPU_VIRTUAL_ADDRESS BufferLocation;
    UINT SizeInBytes;
    DXGI_FORMAT Format;
} D3D12_INDEX_BUFFER_VIEW
```

### Members

*BufferLocation*\
Type: D3D12\_GPU\_VIRTUAL\_ADDRESS

The GPU virtual address of the index buffer.
D3D12\_GPU\_VIRTUAL\_ADDRESS is a typedef'd synonym of UINT64.

*SizeInBytes*\
Type: UINT

The size in bytes of the index buffer.

*Format*\
Type: DXGI\_FORMAT

A [DXGI\_FORMAT](https://learn.microsoft.com/en-us/windows/desktop/api/dxgiformat/ne-dxgiformat-dxgi_format)-typed value for the index-buffer format.

## Remarks

This structure is passed into [ID3D12GraphicsCommandList::IASetIndexBuffer](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_iasetindexbuffer_public).

## 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

[Core Structures](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

- [IASetIndexBuffer](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_iasetindexbuffer_public.md)
- [D3D12_BUFFER_SRV](/reference/graphics/d3d12/structs/d3d12_buffer_srv_public.md)
- [D3D12_BUFFER_UAV](/reference/graphics/d3d12/structs/d3d12_buffer_uav_public.md)
- [D3D12_RENDER_TARGET_VIEW_DESC](/reference/graphics/d3d12/structs/d3d12_render_target_view_desc_public.md)
- [D3D12_VIEW_INSTANCING_DESC](/reference/graphics/d3d12/structs/d3d12_view_instancing_desc_public.md)
