From effef8d4c4012f415c8cf869f9999232862009e2 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Sat, 4 Apr 2026 14:09:39 +1100 Subject: Fix CmdWriteTimpstamps bit forward, re-add 'no-unused*' compiler warnings --- src/timestamp_pool.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/timestamp_pool.cc') diff --git a/src/timestamp_pool.cc b/src/timestamp_pool.cc index 2d43c58..80170e5 100644 --- a/src/timestamp_pool.cc +++ b/src/timestamp_pool.cc @@ -155,7 +155,7 @@ void TimestampPool::do_reaper(const std::stop_token stoken) { } void TimestampPool::Handle::write_command( - const VkPipelineStageFlagBits2& bit) const { + const VkPipelineStageFlagBits2 bit) const { const auto cbbi = VkCommandBufferBeginInfo{ .sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, @@ -170,9 +170,8 @@ void TimestampPool::Handle::write_command( THROW_NOT_VKSUCCESS(vtable.ResetCommandBuffer(this->command_buffer, 0)); THROW_NOT_VKSUCCESS(vtable.BeginCommandBuffer(this->command_buffer, &cbbi)); - vtable.CmdWriteTimestamp2KHR( - this->command_buffer, VK_PIPELINE_STAGE_2_TOP_OF_PIPE_BIT, - this->query_pool, static_cast(this->query_index)); + vtable.CmdWriteTimestamp2KHR(this->command_buffer, bit, this->query_pool, + static_cast(this->query_index)); THROW_NOT_VKSUCCESS(vtable.EndCommandBuffer(this->command_buffer)); } -- cgit v1.2.3