diff --git a/chapter-5/vk_engine.cpp b/chapter-5/vk_engine.cpp index 5185967a3..4c1db6d03 100644 --- a/chapter-5/vk_engine.cpp +++ b/chapter-5/vk_engine.cpp @@ -876,11 +876,11 @@ void VulkanEngine::init_vulkan() SDL_Vulkan_CreateSurface(_window, _instance, &_surface); - VkPhysicalDeviceVulkan13Features features13 {}; + VkPhysicalDeviceVulkan13Features features13{ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES }; features13.dynamicRendering = true; features13.synchronization2 = true; - VkPhysicalDeviceVulkan12Features features12 {}; + VkPhysicalDeviceVulkan12Features features12{ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES }; features12.bufferDeviceAddress = true; features12.descriptorIndexing = true; diff --git a/chapter-6/vk_engine.cpp b/chapter-6/vk_engine.cpp index db1d78203..83fc08a15 100644 --- a/chapter-6/vk_engine.cpp +++ b/chapter-6/vk_engine.cpp @@ -874,11 +874,11 @@ void VulkanEngine::init_vulkan() SDL_Vulkan_CreateSurface(_window, _instance, &_surface); - VkPhysicalDeviceVulkan13Features features13 {}; + VkPhysicalDeviceVulkan13Features features13{ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES }; features13.dynamicRendering = true; features13.synchronization2 = true; - VkPhysicalDeviceVulkan12Features features12 {}; + VkPhysicalDeviceVulkan12Features features12{ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES }; features12.bufferDeviceAddress = true; features12.descriptorIndexing = true; features12.descriptorBindingPartiallyBound = true;