24 lines
442 B
Markdown
24 lines
442 B
Markdown
|
|
# OpenGLCommandList::Draw
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
void Draw(uint32_t vertexCount, uint32_t instanceCount, uint32_t startVertex, uint32_t startInstance)
|
||
|
|
```
|
||
|
|
|
||
|
|
绘制非索引图元。
|
||
|
|
|
||
|
|
**参数:**
|
||
|
|
- `vertexCount` - 顶点数量
|
||
|
|
- `instanceCount` - 实例数量
|
||
|
|
- `startVertex` - 起始顶点
|
||
|
|
- `startInstance` - 起始实例
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
commandList->Draw(3, 1, 0, 0);
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [OpenGLCommandList](command-list.md) - 返回类总览
|