> ## 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](/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](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_iasetindexbuffer_public)

[ID3D12GraphicsCommandList](/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList/id3d12graphicscommandlist_xs)


## Related topics

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