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

Method LogPresentOperations

layers/sync/sync_submit.cpp:598–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598void QueueBatchContext::LogPresentOperations(const PresentedImages& presented_images, uint64_t submit_index) {
599 if (tag_range_.size()) {
600 auto access_log = std::make_shared<AccessLog>();
601 BatchAccessLog::BatchRecord batch{queue_state_};
602 batch.submit_index = submit_index;
603 batch.base_tag = tag_range_.begin;
604 batch_log_.Insert(batch, tag_range_, access_log);
605 access_log->reserve(tag_range_.size());
606 assert(tag_range_.size() == presented_images.size());
607 for (const auto& presented : presented_images) {
608 access_log->emplace_back(PresentResourceRecord(static_cast<const PresentedImageRecord>(presented)));
609 }
610 }
611}
612
613void QueueBatchContext::DoAcquireOperation(const PresentedImage& presented) {
614 // Only one tag for acquire. The tag in presented is the present tag

Callers 1

ProcessQueuePresentMethod · 0.80

Calls 5

emplace_backMethod · 0.80
sizeMethod · 0.45
InsertMethod · 0.45
reserveMethod · 0.45

Tested by

no test coverage detected