summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_query_cache.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-18 06:12:43 +0200
committerGitHub <noreply@github.com>2020-07-18 06:12:43 +0200
commit821d295f24136b7550fde1376810ca3756a58403 (patch)
tree1b9f91f228b691a9f1ac8425a858700cbee4dba2 /src/video_core/renderer_vulkan/vk_query_cache.cpp
parentMerge pull request #4365 from lioncash/mii (diff)
parentwrapper: Make use of designated initializers where applicable (diff)
downloadyuzu-821d295f24136b7550fde1376810ca3756a58403.tar
yuzu-821d295f24136b7550fde1376810ca3756a58403.tar.gz
yuzu-821d295f24136b7550fde1376810ca3756a58403.tar.bz2
yuzu-821d295f24136b7550fde1376810ca3756a58403.tar.lz
yuzu-821d295f24136b7550fde1376810ca3756a58403.tar.xz
yuzu-821d295f24136b7550fde1376810ca3756a58403.tar.zst
yuzu-821d295f24136b7550fde1376810ca3756a58403.zip
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_query_cache.cpp')
-rw-r--r--src/video_core/renderer_vulkan/vk_query_cache.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/video_core/renderer_vulkan/vk_query_cache.cpp b/src/video_core/renderer_vulkan/vk_query_cache.cpp
index bc91c48cc..6cd63d090 100644
--- a/src/video_core/renderer_vulkan/vk_query_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_query_cache.cpp
@@ -47,14 +47,14 @@ std::pair<VkQueryPool, u32> QueryPool::Commit(VKFence& fence) {
void QueryPool::Allocate(std::size_t begin, std::size_t end) {
usage.resize(end);
- VkQueryPoolCreateInfo query_pool_ci;
- query_pool_ci.sType = VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO;
- query_pool_ci.pNext = nullptr;
- query_pool_ci.flags = 0;
- query_pool_ci.queryType = GetTarget(type);
- query_pool_ci.queryCount = static_cast<u32>(end - begin);
- query_pool_ci.pipelineStatistics = 0;
- pools.push_back(device->GetLogical().CreateQueryPool(query_pool_ci));
+ pools.push_back(device->GetLogical().CreateQueryPool({
+ .sType = VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO,
+ .pNext = nullptr,
+ .flags = 0,
+ .queryType = GetTarget(type),
+ .queryCount = static_cast<u32>(end - begin),
+ .pipelineStatistics = 0,
+ }));
}
void QueryPool::Reserve(std::pair<VkQueryPool, u32> query) {