| 118 | } |
| 119 | |
| 120 | void CommandBuffer::DropAll() |
| 121 | { |
| 122 | std::lock_guard<std::mutex> lock(mtx_); |
| 123 | for (auto &xcmd : cmds_) xcmd->SetState(kCommandStateCompleted); |
| 124 | cmds_.clear(); |
| 125 | } |
| 126 | |
| 127 | std::shared_ptr<XQueueWaitAllCommand> CommandBuffer::EnqueueXQueueWaitAllCommand() |
| 128 | { |