19 lines
465 B
Markdown
19 lines
465 B
Markdown
|
|
# D3D12CommandList::Initialize
|
||
|
|
|
||
|
|
初始化命令列表。
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
bool Initialize(ID3D12Device* device, CommandQueueType type = CommandQueueType::Direct, ID3D12CommandAllocator* allocator = nullptr);
|
||
|
|
```
|
||
|
|
|
||
|
|
**参数:**
|
||
|
|
- `device` - DirectX 12 设备指针
|
||
|
|
- `type` - 命令队列类型,默认为 Direct
|
||
|
|
- `allocator` - 可选的命令分配器
|
||
|
|
|
||
|
|
**返回:** `bool` - 初始化成功返回 true
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [D3D12CommandList 总览](d3d12-command-list.md)
|