25 lines
543 B
Markdown
25 lines
543 B
Markdown
|
|
# OpenGLCommandList::SetVertexBuffers
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
void SetVertexBuffers(uint32_t startSlot, uint32_t count, const uint64_t* buffers, const uint64_t* offsets, const uint32_t* strides)
|
||
|
|
```
|
||
|
|
|
||
|
|
批量设置顶点缓冲区。
|
||
|
|
|
||
|
|
**参数:**
|
||
|
|
- `startSlot` - 起始槽位
|
||
|
|
- `count` - 缓冲区数量
|
||
|
|
- `buffers` - 缓冲区指针数组
|
||
|
|
- `offsets` - 偏移数组
|
||
|
|
- `strides` - 跨度数组
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
commandList->SetVertexBuffers(0, 2, buffers, offsets, strides);
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [OpenGLCommandList](command-list.md) - 返回类总览
|