Skip to content

Commit

Permalink
MoltenVK: enable VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_S…
Browse files Browse the repository at this point in the history
…TATE_2_FEATURES_EXT
  • Loading branch information
corporateshark committed Feb 14, 2024
1 parent 7d0560f commit bb8940b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lvk/vulkan/VulkanClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4559,8 +4559,14 @@ lvk::Result lvk::VulkanContext::initContext(const HWDeviceDesc& desc) {
.pNext = &deviceFeatures13,
.extendedDynamicState = VK_TRUE,
};

const void* createInfoNext = &dynamicStateFeature;

VkPhysicalDeviceExtendedDynamicState2FeaturesEXT dynamicState2Feature = {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_2_FEATURES_EXT,
.pNext = &dynamicStateFeature,
.extendedDynamicState2 = VK_TRUE,
};

const void* createInfoNext = &dynamicState2Feature;
#else
const void* createInfoNext = &deviceFeatures13;
#endif
Expand Down

0 comments on commit bb8940b

Please sign in to comment.