Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chapter-5/vk_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions chapter-6/vk_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down