aboutsummaryrefslogtreecommitdiff
path: root/src/timestamp_pool.cc
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-02-24 00:11:22 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-02-24 00:11:22 +1100
commit50f009b81218c5367031ce9c51089ecddc2e853a (patch)
tree9f82c871ade0d44f3c0451cab9478b4d4184522d /src/timestamp_pool.cc
parent56706244924987852e5ec610941bce8258ae647b (diff)
Cleanup, better document some areas
Diffstat (limited to 'src/timestamp_pool.cc')
-rw-r--r--src/timestamp_pool.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/timestamp_pool.cc b/src/timestamp_pool.cc
index 5149747..e8ef9f5 100644
--- a/src/timestamp_pool.cc
+++ b/src/timestamp_pool.cc
@@ -3,8 +3,8 @@
#include "queue_context.hh"
#include <chrono>
-#include <span>
#include <ranges>
+#include <span>
#include <vulkan/utility/vk_dispatch_table.h>
#include <vulkan/vulkan_core.h>
@@ -25,8 +25,10 @@ TimestampPool::QueryChunk::QueryChunk(const QueueContext& queue_context) {
return qp;
}();
- constexpr auto KEY_RANGE = std::views::iota(0u, QueryChunk::CHUNK_SIZE);
- this->free_indices = std::make_unique<free_indices_t>(std::from_range, KEY_RANGE);
+ this->free_indices = []() {
+ constexpr auto KEYS = std::views::iota(0u, QueryChunk::CHUNK_SIZE);
+ return std::make_unique<free_indices_t>(std::from_range, KEYS);
+ }();
this->command_buffers = [&, this]() -> auto {
auto cbs = std::make_unique<std::vector<VkCommandBuffer>>(CHUNK_SIZE);