mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-26 21:47:06 +02:00
another change
This commit is contained in:
parent
557dd92938
commit
b672ab2709
1 changed files with 11 additions and 9 deletions
|
|
@ -155,15 +155,17 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
ReserveHostQuery();
|
ReserveHostQuery();
|
||||||
|
|
||||||
scheduler.RequestOutsideRenderPassOperationContext();
|
{
|
||||||
scheduler.Record([query_pool = current_query_pool,
|
const VkQueryPool qp = current_query_pool;
|
||||||
query_index = current_bank_slot](vk::CommandBuffer cmdbuf) {
|
const u32 qi = static_cast<u32>(current_bank_slot);
|
||||||
const bool use_precise = Settings::IsGPULevelHigh();
|
device.GetLogical().ResetQueryPool(qp, qi, 1);
|
||||||
cmdbuf.ResetQueryPool(query_pool, static_cast<u32>(query_index), 1);
|
scheduler.Record([query_pool = qp, query_index = qi](vk::CommandBuffer cmdbuf) {
|
||||||
cmdbuf.BeginQuery(query_pool, static_cast<u32>(query_index),
|
const bool use_precise = Settings::IsGPULevelHigh();
|
||||||
use_precise ? VK_QUERY_CONTROL_PRECISE_BIT : 0);
|
cmdbuf.BeginQuery(query_pool, static_cast<u32>(query_index),
|
||||||
});
|
use_precise ? VK_QUERY_CONTROL_PRECISE_BIT : 0);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
has_started = true;
|
has_started = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue