# D3D12CommandQueue::ExecuteCommandLists ```cpp void ExecuteCommandLists(uint32_t count, void** lists) override; ``` ## 作用 把一组抽象命令列表提交到当前 D3D12 队列。 ## 前置条件 - 队列已经初始化 - `lists` 指向的是可提交的 `RHICommandList` 实例 ## 当前实现行为 - 当 `count == 0` 或 `lists == nullptr` 时直接返回 - 把每个 `RHICommandList` 的 `GetNativeHandle()` 转成 `ID3D12CommandList*` - 调用内部 `ExecuteCommandListsInternal()` - `ExecuteCommandListsInternal()` 提交后会: - `m_currentFrame++` - 对 `m_frameFence` signal 当前帧值 ## 相关文档 - [D3D12CommandQueue](D3D12CommandQueue.md) - [GetCompletedValue](GetCompletedValue.md) - [WaitForIdle](WaitForIdle.md)