| 534 | } |
| 535 | |
| 536 | void OmmBuildQueue::Update(nvrhi::ICommandList& commandList) |
| 537 | { |
| 538 | if (ReadyToRecordWork() && !m_pending.empty()) |
| 539 | { |
| 540 | // Work backwards from the final state to avoid consuming consecutive states of the same task in a single frame. |
| 541 | ConsumeOneTask(commandList, BuildState::BakeAndBuild); |
| 542 | ConsumeOneTask(commandList, BuildState::Setup); |
| 543 | ConsumeOneTask(commandList, BuildState::None); |
| 544 | |
| 545 | SubmitAndSubscribeQuery(commandList); |
| 546 | } |
| 547 | } |
| 548 | |
| 549 | void OmmBuildQueue::QueueBuild(const BuildInput& input) |
| 550 | { |