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


## Related topics

- [D3D12_DRAW_ARGUMENTS](/zh-TW/reference/graphics/d3d12/structs/d3d12_draw_arguments_public.md)
- [D3D12_DISPATCH_ARGUMENTS](/zh-TW/reference/graphics/d3d12/structs/d3d12_dispatch_arguments_public.md)
- [DrawIndexedInstanced](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_drawindexedinstanced_public.md)
- [DrawInstanced](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_drawinstanced_public.md)
- [D3D12_COMMAND_SIGNATURE_DESC](/zh-TW/reference/graphics/d3d12/structs/d3d12_command_signature_desc_public.md)
