diff options
| author | 2020-07-17 20:27:53 -0300 | |
|---|---|---|
| committer | 2020-07-17 20:27:53 -0300 | |
| commit | 81c8f92f2e4ea9155116508d48c49a4894857c89 (patch) | |
| tree | 94543d88b0e09e6c7363370a43acdcc6f01f13e8 /src | |
| parent | Merge pull request #4344 from VolcaEM/c3 (diff) | |
| download | yuzu-81c8f92f2e4ea9155116508d48c49a4894857c89.tar.gz yuzu-81c8f92f2e4ea9155116508d48c49a4894857c89.tar.xz yuzu-81c8f92f2e4ea9155116508d48c49a4894857c89.zip | |
vk_device: Fix build error on old MSVC versions
Designated initializers on old MSVC versions fail to build when they
take the address of a constant.
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_device.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/vk_device.cpp b/src/video_core/renderer_vulkan/vk_device.cpp index 9226e591c..26379ee01 100644 --- a/src/video_core/renderer_vulkan/vk_device.cpp +++ b/src/video_core/renderer_vulkan/vk_device.cpp | |||
| @@ -757,14 +757,14 @@ std::vector<VkDeviceQueueCreateInfo> VKDevice::GetDeviceQueueCreateInfos() const | |||
| 757 | queue_cis.reserve(unique_queue_families.size()); | 757 | queue_cis.reserve(unique_queue_families.size()); |
| 758 | 758 | ||
| 759 | for (const u32 queue_family : unique_queue_families) { | 759 | for (const u32 queue_family : unique_queue_families) { |
| 760 | queue_cis.push_back({ | 760 | auto& ci = queue_cis.emplace_back(VkDeviceQueueCreateInfo{ |
| 761 | .sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO, | 761 | .sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO, |
| 762 | .pNext = nullptr, | 762 | .pNext = nullptr, |
| 763 | .flags = 0, | 763 | .flags = 0, |
| 764 | .queueFamilyIndex = queue_family, | 764 | .queueFamilyIndex = queue_family, |
| 765 | .queueCount = 1, | ||
| 766 | .pQueuePriorities = &QUEUE_PRIORITY, | ||
| 767 | }); | 765 | }); |
| 766 | ci.queueCount = 1; | ||
| 767 | ci.pQueuePriorities = &QUEUE_PRIORITY; | ||
| 768 | } | 768 | } |
| 769 | 769 | ||
| 770 | return queue_cis; | 770 | return queue_cis; |