@@ -153,11 +153,15 @@ void DynamicBlending::request_gpu_features(vkb::core::PhysicalDeviceC &gpu)
153153 VkPhysicalDeviceExtendedDynamicState3FeaturesEXT,
154154 extendedDynamicState3ColorBlendEnable);
155155
156- // Only request the features that we support
157- REQUEST_OPTIONAL_FEATURE (gpu, VkPhysicalDeviceExtendedDynamicState3FeaturesEXT, extendedDynamicState3ColorWriteMask);
158- REQUEST_OPTIONAL_FEATURE (gpu, VkPhysicalDeviceExtendedDynamicState3FeaturesEXT, extendedDynamicState3ColorBlendEnable);
159- REQUEST_OPTIONAL_FEATURE (gpu, VkPhysicalDeviceExtendedDynamicState3FeaturesEXT, extendedDynamicState3ColorBlendAdvanced);
160- REQUEST_OPTIONAL_FEATURE (gpu, VkPhysicalDeviceExtendedDynamicState3FeaturesEXT, extendedDynamicState3ColorBlendEquation);
156+ // Only request the features that we support, and record which ones are available
157+ eds_feature_support.extendedDynamicState3ColorWriteMask =
158+ REQUEST_OPTIONAL_FEATURE (gpu, VkPhysicalDeviceExtendedDynamicState3FeaturesEXT, extendedDynamicState3ColorWriteMask);
159+ eds_feature_support.extendedDynamicState3ColorBlendEnable =
160+ REQUEST_OPTIONAL_FEATURE (gpu, VkPhysicalDeviceExtendedDynamicState3FeaturesEXT, extendedDynamicState3ColorBlendEnable);
161+ eds_feature_support.extendedDynamicState3ColorBlendAdvanced =
162+ REQUEST_OPTIONAL_FEATURE (gpu, VkPhysicalDeviceExtendedDynamicState3FeaturesEXT, extendedDynamicState3ColorBlendAdvanced);
163+ eds_feature_support.extendedDynamicState3ColorBlendEquation =
164+ REQUEST_OPTIONAL_FEATURE (gpu, VkPhysicalDeviceExtendedDynamicState3FeaturesEXT, extendedDynamicState3ColorBlendEquation);
161165
162166 REQUEST_REQUIRED_FEATURE (gpu, VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT, advancedBlendCoherentOperations);
163167}
0 commit comments