Docs: Add D3D12 API documentation
This commit is contained in:
18
docs/api/d3d12/d3d12-command-list-draw-indexed.md
Normal file
18
docs/api/d3d12/d3d12-command-list-draw-indexed.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# D3D12CommandList::DrawIndexed
|
||||
|
||||
绘制索引图元。
|
||||
|
||||
```cpp
|
||||
void DrawIndexed(uint32_t indexCount, uint32_t instanceCount = 1, uint32_t startIndex = 0, int32_t baseVertex = 0, uint32_t startInstance = 0) override;
|
||||
```
|
||||
|
||||
**参数:**
|
||||
- `indexCount` - 索引数量
|
||||
- `instanceCount` - 实例数量,默认为 1
|
||||
- `startIndex` - 起始索引位置
|
||||
- `baseVertex` - 基础顶点位置
|
||||
- `startInstance` - 起始实例位置
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [D3D12CommandList 总览](d3d12-command-list.md)
|
||||
Reference in New Issue
Block a user