docs: update RHI API docs

This commit is contained in:
2026-03-20 02:35:45 +08:00
parent ea756c0177
commit 070b444f8f
501 changed files with 13493 additions and 2022 deletions

View File

@@ -4,13 +4,21 @@
virtual void SetVertexBuffer(uint32_t slot, void* buffer, uint64_t offset, uint32_t stride) = 0;
```
设置顶点缓冲区
绑定单个顶点缓冲区到指定的槽位。顶点缓冲区包含绘制所需的顶点数据
**参数:**
- `slot` - 顶点缓冲区槽位
- `slot` - 顶点缓冲区槽位索引(范围 0-15
- `buffer` - 顶点缓冲区指针
- `offset` - 数据偏移量
- `stride` - 顶点步长
- `offset` - 缓冲区内的起始偏移量(字节)
- `stride` - 每个顶点的字节大小
**返回:** `void`
**异常:**
**线程安全:**
**复杂度:** O(1)
**示例:**
@@ -21,3 +29,5 @@ cmdList->SetVertexBuffer(0, vertexBuffer, 0, sizeof(Vertex));
## 相关文档
- [RHICommandList 总览](command-list.md) - 返回类总览
- [SetVertexBuffers](set-vertex-buffers.md) - 设置多个顶点缓冲
- [SetIndexBuffer](set-index-buffer.md) - 设置索引缓冲