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

# IASetVertexBuffers

> 設定頂點緩衝區的 CPU 描述元控制代碼。

設定頂點緩衝區的 CPU 描述元控制代碼。

## 語法

```cpp theme={null}
void IASetVertexBuffers(
    UINT StartSlot,
    UINT NumViews,
    const D3D12_VERTEX_BUFFER_VIEW  pViews
)
```

### 參數

*StartSlot \[in]*\
類型：UINT

裝置以零為起始之陣列中的索引，從此處開始設定頂點緩衝區。

*NumViews \[in]*\
類型：UINT

<i>pViews</i> 陣列中的檢視數目。

*pViews \[in, optional]*\
類型：const D3D12\_VERTEX\_BUFFER\_VIEW \*

在 [D3D12\_VERTEX\_BUFFER\_VIEW](/zh-TW/reference/graphics/d3d12/structs/d3d12_vertex_buffer_view_public) 結構陣列中指定頂點緩衝區檢視。

### 傳回值

類型：void

無。

## 需求

**標頭:** d3d12\_xs.h 或 d3d12\_x.h\
**程式庫:** d3d12\_xs.lib 或 d3d12\_x.lib\
**支援的平台**: XBOX Series 主機與 XBOX One 系列

## 另請參閱

[IASetIndexBuffer](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_iasetindexbuffer_public)

[ID3D12GraphicsCommandList](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList/id3d12graphicscommandlist_xs)


## Related topics

- [D3D12_VERTEX_BUFFER_VIEW](/zh-TW/reference/graphics/d3d12/structs/d3d12_vertex_buffer_view_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS13](/zh-TW/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options13_public.md)
- [D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_raytracing_geometry_triangles_desc_public.md)
- [IASetIndexBuffer](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_iasetindexbuffer_public.md)
- [SetShapePcmBufferLength](/zh-TW/reference/audio/shapepcmcontext/functions/setshapepcmbufferlength.md)
