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

@@ -1,20 +1,26 @@
# RHITexture::GetName / SetName
# RHITexture::GetName
```cpp
virtual const std::string& GetName() const = 0;
virtual void SetName(const std::string& name) = 0;
```
获取或设置纹理名称(用于调试)。
获取纹理名称(用于调试)。
**参数:**
**返回:** 纹理名称字符串引用
**线程安全:**
**复杂度:** O(1)
**示例:**
```cpp
texture->SetName("DiffuseMap_Main");
const std::string& name = texture->GetName();
```
## 相关文档
- [RHITexture 总览](texture.md) - 返回类总览
- [SetName](set-name.md) - 设置资源名称