aboutsummaryrefslogtreecommitdiff
path: root/src/queue_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/queue_context.cc')
-rw-r--r--src/queue_context.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/queue_context.cc b/src/queue_context.cc
index e210685..6968720 100644
--- a/src/queue_context.cc
+++ b/src/queue_context.cc
@@ -55,10 +55,11 @@ void QueueContext::notify_submit(
auto signals = std::unordered_set<VkSemaphore>{};
auto waits = std::unordered_set<VkSemaphore>{};
- std::ranges::copy_n(info.pWaitSemaphores, info.waitSemaphoreCount,
- std::inserter(waits, std::end(waits)));
- std::ranges::copy_n(info.pSignalSemaphores, info.signalSemaphoreCount,
- std::inserter(signals, std::end(signals)));
+ std::ranges::copy(std::span{info.pWaitSemaphores, info.waitSemaphoreCount},
+ std::inserter(waits, std::end(waits)));
+ std::ranges::copy(
+ std::span{info.pSignalSemaphores, info.signalSemaphoreCount},
+ std::inserter(signals, std::end(signals)));
std::cerr << "submit1 notif for queue " << this->queue << '\n';
std::cerr << " signals: \n";