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