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,32 @@
# IncrementRefCount
增加资源的引用计数。
## 方法签名
```cpp
void IncrementRefCount(ResourceGUID guid);
```
## 详细描述
原子地增加指定资源的引用计数。引用计数用于追踪资源被多少其他资源或系统引用。当引用计数大于 0 时,资源不能被卸载。
如果节点不存在,则不做任何操作。
## 参数
| 参数 | 类型 | 描述 |
|------|------|------|
| `guid` | `ResourceGUID` | 目标资源的全局唯一标识符 |
## 返回值
## 示例
```cpp
graph.IncrementRefCount("texture"_guid);
graph.IncrementRefCount("texture"_guid); // refCount 现在为 2
```