Files
XCEngine/docs/api/rhi/buffer/get-name.md
2026-03-20 02:35:45 +08:00

25 lines
472 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# RHIBuffer::GetName
```cpp
virtual const std::string& GetName() const = 0;
```
获取缓冲区名称(用于调试和诊断)。名称通常在图形调试器(如 RenderDoc、PIX中显示。
**返回:** 缓冲区名称字符串
**线程安全:**
**复杂度:** O(1)
**示例:**
```cpp
const std::string& name = buffer->GetName();
printf("Buffer name: %s\n", name.c_str());
```
## 相关文档
- [RHIBuffer 总览](buffer.md) - 返回类总览