> ## 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](/zh-TW/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 系列

## 另請參閱

[核心結構](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)


## Related topics

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