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

# IASetPrimitiveTopology

> 绑定有关图元类型和数据顺序的信息，这些信息描述输入汇编器阶段的输入数据。

绑定有关图元类型和数据顺序的信息，这些信息描述输入汇编器阶段的输入数据。

## 语法

```cpp theme={null}
void IASetPrimitiveTopology(
    D3D12_PRIMITIVE_TOPOLOGY PrimitiveTopology
)
```

### 参数

*PrimitiveTopology \[in]*\
类型：D3D12\_PRIMITIVE\_TOPOLOGY

图元的类型和图元数据的顺序（请参阅 [D3D\_PRIMITIVE\_TOPOLOGY](https://learn.microsoft.com/en-us/windows/desktop/api/d3dcommon/ne-d3dcommon-d3d_primitive_topology)）。

### 返回值

类型：void

无。

## 要求

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

## 另请参阅

[D3D12\_PRIMITIVE\_TOPOLOGY\_TYPE](/reference/graphics/d3d12_x/enums/d3d12_primitive_topology_type)

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


## Related topics

- [ClearState](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_clearstate_public.md)
- [D3D12_PIPELINE_STATE_STREAM_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_pipeline_state_stream_desc_public.md)
- [D3D12_QUERY_DATA_SO_STATISTICS](/zh-CN/reference/graphics/d3d12/structs/d3d12_query_data_so_statistics_public.md)
- [网格着色器管线 API 概述](/zh-CN/build/core-features/graphics/newfeatures/ms/ms-api-design.md)
- [D3D12_GRAPHICS_STATES](/zh-CN/reference/graphics/d3d12/enums/d3d12_graphics_states_public.md)
