docs: update resources API docs
This commit is contained in:
24
docs/api/resources/asyncloader/initialize.md
Normal file
24
docs/api/resources/asyncloader/initialize.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# AsyncLoader::Initialize
|
||||
|
||||
```cpp
|
||||
void Initialize(Core::uint32 workerThreadCount = 2)
|
||||
```
|
||||
|
||||
初始化异步加载器。根据 `workerThreadCount` 参数创建相应数量的工作线程用于后台资源加载。
|
||||
|
||||
**参数:**
|
||||
- `workerThreadCount` - 工作线程数量,默认为 2
|
||||
|
||||
**返回:** 无
|
||||
|
||||
**复杂度:** O(n),n 为创建的工作线程数
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
AsyncLoader::Get().Initialize(4);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [AsyncLoader 总览](asyncloader.md) - 返回类总览
|
||||
Reference in New Issue
Block a user