mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-08 14:19:58 +00:00
vk_query_cache: Make use of designated initializers where applicable
This commit is contained in:
parent
d43e923990
commit
c07b0ffe47
1 changed files with 8 additions and 8 deletions
|
@ -47,14 +47,14 @@ std::pair<VkQueryPool, u32> QueryPool::Commit(VKFence& fence) {
|
||||||
void QueryPool::Allocate(std::size_t begin, std::size_t end) {
|
void QueryPool::Allocate(std::size_t begin, std::size_t end) {
|
||||||
usage.resize(end);
|
usage.resize(end);
|
||||||
|
|
||||||
VkQueryPoolCreateInfo query_pool_ci;
|
pools.push_back(device->GetLogical().CreateQueryPool({
|
||||||
query_pool_ci.sType = VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO;
|
.sType = VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO,
|
||||||
query_pool_ci.pNext = nullptr;
|
.pNext = nullptr,
|
||||||
query_pool_ci.flags = 0;
|
.flags = 0,
|
||||||
query_pool_ci.queryType = GetTarget(type);
|
.queryType = GetTarget(type),
|
||||||
query_pool_ci.queryCount = static_cast<u32>(end - begin);
|
.queryCount = static_cast<u32>(end - begin),
|
||||||
query_pool_ci.pipelineStatistics = 0;
|
.pipelineStatistics = 0,
|
||||||
pools.push_back(device->GetLogical().CreateQueryPool(query_pool_ci));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
void QueryPool::Reserve(std::pair<VkQueryPool, u32> query) {
|
void QueryPool::Reserve(std::pair<VkQueryPool, u32> query) {
|
||||||
|
|
Loading…
Reference in a new issue