MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / SetLastBatch

Method SetLastBatch

layers/sync/sync_submit.cpp:793–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791}
792
793void QueueState::SetLastBatch(BatchContextPtr&& last) {
794 if (last) {
795 // Clean up the events data in the previous last batch on queue, as only the subsequent
796 // batches have valid use for them and the QueueBatchContext::Setup calls have be copying
797 // them along from batch to batch during submit.
798 if (last_batch_) {
799 last_batch_->ResetEventsContext();
800 }
801 last->Trim();
802 last_batch_ = std::move(last);
803 }
804}
805
806void BatchAccessLog::Import(const BatchRecord& batch, const CommandBufferAccessContext& cb_access,
807 const std::vector<std::string>& initial_label_stack) {

Callers 3

ProcessQueuePresentMethod · 0.80
ProcessQueueSubmitMethod · 0.80

Calls 2

ResetEventsContextMethod · 0.80
TrimMethod · 0.80

Tested by

no test coverage detected