diff options
| author | 2020-07-16 18:34:04 -0400 | |
|---|---|---|
| committer | 2020-07-16 18:34:04 -0400 | |
| commit | c07b0ffe4760f4282dfc128c09f02e4b509b7e05 (patch) | |
| tree | d4359aab4a18e6b11566edc169b4abbbeefacb06 /src | |
| parent | vk_pipeline_cache: Make use of designated initializers where applicable (diff) | |
| download | yuzu-c07b0ffe4760f4282dfc128c09f02e4b509b7e05.tar.gz yuzu-c07b0ffe4760f4282dfc128c09f02e4b509b7e05.tar.xz yuzu-c07b0ffe4760f4282dfc128c09f02e4b509b7e05.zip | |
vk_query_cache: Make use of designated initializers where applicable
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_query_cache.cpp | 16 |
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) { | |||
| 47 | void QueryPool::Allocate(std::size_t begin, std::size_t end) { | 47 | void QueryPool::Allocate(std::size_t begin, std::size_t end) { |
| 48 | usage.resize(end); | 48 | usage.resize(end); |
| 49 | 49 | ||
| 50 | VkQueryPoolCreateInfo query_pool_ci; | 50 | pools.push_back(device->GetLogical().CreateQueryPool({ |
| 51 | query_pool_ci.sType = VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO; | 51 | .sType = VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO, |
| 52 | query_pool_ci.pNext = nullptr; | 52 | .pNext = nullptr, |
| 53 | query_pool_ci.flags = 0; | 53 | .flags = 0, |
| 54 | query_pool_ci.queryType = GetTarget(type); | 54 | .queryType = GetTarget(type), |
| 55 | query_pool_ci.queryCount = static_cast<u32>(end - begin); | 55 | .queryCount = static_cast<u32>(end - begin), |
| 56 | query_pool_ci.pipelineStatistics = 0; | 56 | .pipelineStatistics = 0, |
| 57 | pools.push_back(device->GetLogical().CreateQueryPool(query_pool_ci)); | 57 | })); |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | void QueryPool::Reserve(std::pair<VkQueryPool, u32> query) { | 60 | void QueryPool::Reserve(std::pair<VkQueryPool, u32> query) { |