29 lines
549 B
Markdown
29 lines
549 B
Markdown
|
|
# RHICommandList::RHICommandList
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
RHICommandList() = default;
|
||
|
|
```
|
||
|
|
|
||
|
|
默认构造函数,创建空的 RHICommandList 对象。
|
||
|
|
|
||
|
|
**参数:** 无
|
||
|
|
|
||
|
|
**返回:** 无
|
||
|
|
|
||
|
|
**线程安全:** ✅
|
||
|
|
|
||
|
|
**复杂度:** O(1)
|
||
|
|
|
||
|
|
**示例:**
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
// 通过设备创建命令列表
|
||
|
|
RHICommandList* cmdList = device->CreateCommandList(desc);
|
||
|
|
// cmdList 现在是一个有效的命令列表引用
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [RHICommandList 总览](command-list.md) - 返回类总览
|
||
|
|
- [CreateCommandList](../device/create-command-list.md) - 创建命令列表
|