mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-29 23:06:23 -05:00
Vulkan Query Cache: make sure to wait for the query result.
This commit is contained in:
parent
8fdb51ab46
commit
d702b393a4
1 changed files with 2 additions and 1 deletions
|
@ -117,7 +117,8 @@ u64 HostCounter::BlockingQuery() const {
|
||||||
cache.GetScheduler().Wait(tick);
|
cache.GetScheduler().Wait(tick);
|
||||||
u64 data;
|
u64 data;
|
||||||
const VkResult query_result = cache.GetDevice().GetLogical().GetQueryResults(
|
const VkResult query_result = cache.GetDevice().GetLogical().GetQueryResults(
|
||||||
query.first, query.second, 1, sizeof(data), &data, sizeof(data), VK_QUERY_RESULT_64_BIT);
|
query.first, query.second, 1, sizeof(data), &data, sizeof(data),
|
||||||
|
VK_QUERY_RESULT_64_BIT | VK_QUERY_RESULT_WAIT_BIT);
|
||||||
|
|
||||||
switch (query_result) {
|
switch (query_result) {
|
||||||
case VK_SUCCESS:
|
case VK_SUCCESS:
|
||||||
|
|
Loading…
Reference in a new issue