Files
XCEngine/docs/api/XCEngine/RHI/D3D12/D3D12CommandQueue/ExecuteCommandLists.md

754 B

D3D12CommandQueue::ExecuteCommandLists

void ExecuteCommandLists(uint32_t count, void** lists) override;

作用

把一组抽象命令列表提交到当前 D3D12 队列。

前置条件

  • 队列已经初始化
  • lists 指向的是可提交的 RHICommandList 实例

当前实现行为

  • count == 0lists == nullptr 时直接返回
  • 把每个 RHICommandListGetNativeHandle() 转成 ID3D12CommandList*
  • 调用内部 ExecuteCommandListsInternal()
  • ExecuteCommandListsInternal() 提交后会:
    • m_currentFrame++
    • m_frameFence signal 当前帧值

相关文档