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

> 描述要查看的索引缓冲区。

描述要查看的索引缓冲区。

## 语法

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

### 成员

*BufferLocation*\
类型：D3D12\_GPU\_VIRTUAL\_ADDRESS

索引缓冲区的 GPU 虚拟地址。
D3D12\_GPU\_VIRTUAL\_ADDRESS 是 UINT64 的 typedef 同义词。

*SizeInBytes*\
类型：UINT

索引缓冲区的大小（以字节为单位）。

*Format*\
类型：DXGI\_FORMAT

一个 [DXGI\_FORMAT](https://learn.microsoft.com/en-us/windows/desktop/api/dxgiformat/ne-dxgiformat-dxgi_format) 类型的值，用于索引缓冲区格式。

## 备注

此结构传递给 [ID3D12GraphicsCommandList::IASetIndexBuffer](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_iasetindexbuffer_public)。

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅

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


## Related topics

- [IASetIndexBuffer](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_iasetindexbuffer_public.md)
- [D3D12_VERTEX_BUFFER_VIEW](/zh-CN/reference/graphics/d3d12/structs/d3d12_vertex_buffer_view_public.md)
- [D3D12_VIEW_INSTANCING_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_view_instancing_desc_public.md)
- [D3D12_VIEW_INSTANCE_LOCATION](/zh-CN/reference/graphics/d3d12/structs/d3d12_view_instance_location_public.md)
- [D3D12_STREAM_OUTPUT_BUFFER_VIEW](/zh-CN/reference/graphics/d3d12/structs/d3d12_stream_output_buffer_view_public.md)
