fix: improve doc link navigation and tree display

- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
This commit is contained in:
2026-03-19 12:44:08 +08:00
parent e003fe6513
commit 58a83f445a
1012 changed files with 56880 additions and 22 deletions

View File

@@ -0,0 +1,29 @@
# RHIBuffer::SetData
```cpp
virtual void SetData(const void* data, size_t size, size_t offset = 0) = 0;
```
设置缓冲区数据。
**参数:**
- `data` - 源数据指针
- `size` - 数据大小(字节)
- `offset` - 缓冲区内的偏移量
**复杂度:** O(n)
**示例:**
```cpp
Vertex vertices[] = {
{0.0f, 0.5f, 0.0f},
{0.5f, -0.5f, 0.0f},
{-0.5f, -0.5f, 0.0f}
};
buffer->SetData(vertices, sizeof(vertices), 0);
```
## 相关文档
- [RHIBuffer 总览](buffer.md) - 返回类总览