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

Method GetLastBatches

layers/sync/sync_submit.cpp:777–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775}
776
777std::vector<BatchContextPtr> SyncValidator::GetLastBatches(std::function<bool(const BatchContextPtr&)> filter) const {
778 std::vector<BatchContextPtr> snapshot;
779 for (const QueueState& queue_state : queue_states_) {
780 auto batch = queue_state.LastBatch();
781 if (batch && filter(batch)) {
782 snapshot.emplace_back(std::move(batch));
783 }
784 }
785 return snapshot;
786}
787
788const LastSynchronizedPresent& QueueState::GetLastSynchronizedPresent() const {
789 static const LastSynchronizedPresent empty;

Callers 1

RegisterAsyncContextsMethod · 0.80

Calls 2

LastBatchMethod · 0.80
emplace_backMethod · 0.80

Tested by

no test coverage detected