aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2026-02-02 14:20:45 +0100
committerAndre Weissflog <floooh@gmail.com>2026-02-02 14:20:45 +0100
commit6e98eea24f5c01e9c11c4172968f219b840c174f (patch)
tree270af9700e769ccd8c277308087b189bedc868dd
parent51921243937ef5b4b320ed95a8a2ebcbf9ccfb05 (diff)
sokol_app.h vk: enable swapchain-maintenance1 feature in device
-rw-r--r--sokol_app.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sokol_app.h b/sokol_app.h
index 58050b3a..b38dced3 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -4510,9 +4510,14 @@ _SOKOL_PRIVATE void _sapp_vk_create_device(void) {
xds_features.pNext = &descriptor_buffer_features;
xds_features.extendedDynamicState = VK_TRUE;
+ _SAPP_STRUCT(VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT, scm1_features);
+ scm1_features.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SWAPCHAIN_MAINTENANCE_1_FEATURES_EXT;
+ scm1_features.pNext = &xds_features;
+ scm1_features.swapchainMaintenance1 = VK_TRUE;
+
_SAPP_STRUCT(VkPhysicalDeviceVulkan12Features, vk12_features);
vk12_features.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES;
- vk12_features.pNext = &xds_features;
+ vk12_features.pNext = &scm1_features;
vk12_features.bufferDeviceAddress = VK_TRUE;
_SAPP_STRUCT(VkPhysicalDeviceVulkan13Features, vk13_features);