docs: update resources API docs

This commit is contained in:
2026-03-20 02:35:35 +08:00
parent fd792b7df1
commit ea756c0177
314 changed files with 9439 additions and 1360 deletions

View File

@@ -0,0 +1,27 @@
# Shader::~Shader
```cpp
virtual ~Shader()
```
析构函数,释放 Shader 对象持有的所有资源。
**返回:**
**线程安全:** ❌ 非线程安全
**复杂度:** O(1) - 平凡析构函数
**示例:**
```cpp
{
Shader vs;
vs.SetShaderType(ShaderType::Vertex);
// ...
} // vs 超出作用域,自动调用析构函数
```
## 相关文档
- [Shader 总览](shader.md) - 返回类总览