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

> 描述用于绘制索引实例的参数。

描述用于绘制索引实例的参数。

## 语法

```cpp theme={null}
typedef struct D3D12_DRAW_INDEXED_ARGUMENTS
{
    UINT IndexCountPerInstance;
    UINT InstanceCount;
    UINT StartIndexLocation;
    INT BaseVertexLocation;
    UINT StartInstanceLocation;
} D3D12_DRAW_INDEXED_ARGUMENTS
```

### 成员

*IndexCountPerInstance*\
类型:UINT

每个实例从索引缓冲区读取的索引数。

*InstanceCount*\
类型:UINT

要绘制的实例数。

*StartIndexLocation*\
类型:UINT

GPU 从索引缓冲区读取的第一个索引的位置。

*BaseVertexLocation*\
类型:INT

在从顶点缓冲区读取顶点之前添加到每个索引的值。

*StartInstanceLocation*\
类型:UINT

在从顶点缓冲区读取每个实例数据之前添加到每个索引的值。

## 备注

此结构的成员与
[DrawIndexedInstanced](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_drawindexedinstanced_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)
