Files
XCEngine/docs/api/rhi/texture/get-name.md

27 lines
422 B
Markdown
Raw Normal View History

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