Files
XCEngine/docs/api/d3d12/d3d12-command-list-draw.md

18 lines
416 B
Markdown
Raw Normal View History

2026-03-20 19:43:28 +08:00
# D3D12CommandList::Draw
绘制调用。
```cpp
void Draw(uint32_t vertexCount, uint32_t instanceCount = 1, uint32_t startVertex = 0, uint32_t startInstance = 0) override;
```
**参数:**
- `vertexCount` - 顶点数量
- `instanceCount` - 实例数量,默认为 1
- `startVertex` - 起始顶点位置
- `startInstance` - 起始实例位置
## 相关文档
- [D3D12CommandList 总览](d3d12-command-list.md)