3
0
Fork 0
forked from suyu/suyu

Merge pull request #4374 from ReinUsesLisp/fix-err

vk_device: Fix build error on old MSVC versions
This commit is contained in:
bunnei 2020-07-17 20:30:24 -04:00 committed by GitHub
commit 0b733903f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -757,14 +757,14 @@ std::vector<VkDeviceQueueCreateInfo> VKDevice::GetDeviceQueueCreateInfos() const
queue_cis.reserve(unique_queue_families.size()); queue_cis.reserve(unique_queue_families.size());
for (const u32 queue_family : unique_queue_families) { for (const u32 queue_family : unique_queue_families) {
queue_cis.push_back({ auto& ci = queue_cis.emplace_back(VkDeviceQueueCreateInfo{
.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO, .sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO,
.pNext = nullptr, .pNext = nullptr,
.flags = 0, .flags = 0,
.queueFamilyIndex = queue_family, .queueFamilyIndex = queue_family,
.queueCount = 1,
.pQueuePriorities = &QUEUE_PRIORITY,
}); });
ci.queueCount = 1;
ci.pQueuePriorities = &QUEUE_PRIORITY;
} }
return queue_cis; return queue_cis;