Revert "another change"

This commit is contained in:
CamilleLaVey 2026-05-15 20:09:02 -04:00
parent 18225180a2
commit b5dc68ec39

View file

@ -156,16 +156,14 @@ public:
ReserveHostQuery(); ReserveHostQuery();
{ scheduler.RequestOutsideRenderPassOperationContext();
const VkQueryPool qp = current_query_pool; scheduler.Record([query_pool = current_query_pool,
const u32 qi = static_cast<u32>(current_bank_slot); query_index = current_bank_slot](vk::CommandBuffer cmdbuf) {
device.GetLogical().ResetQueryPool(qp, qi, 1); const bool use_precise = Settings::IsGPULevelHigh();
scheduler.Record([query_pool = qp, query_index = qi](vk::CommandBuffer cmdbuf) { cmdbuf.ResetQueryPool(query_pool, static_cast<u32>(query_index), 1);
const bool use_precise = Settings::IsGPULevelHigh(); cmdbuf.BeginQuery(query_pool, static_cast<u32>(query_index),
cmdbuf.BeginQuery(query_pool, static_cast<u32>(query_index), use_precise ? VK_QUERY_CONTROL_PRECISE_BIT : 0);
use_precise ? VK_QUERY_CONTROL_PRECISE_BIT : 0); });
});
}
has_started = true; has_started = true;
} }