diff --git a/layer/surface_api.cpp b/layer/surface_api.cpp index 4140c03..6e11840 100644 --- a/layer/surface_api.cpp +++ b/layer/surface_api.cpp @@ -63,6 +63,13 @@ wsi_layer_vkGetPhysicalDeviceSurfaceCapabilities2KHR(VkPhysicalDevice physicalDe wsi::surface_properties *props = wsi::get_surface_properties(instance, pSurfaceInfo->surface); assert(props != nullptr); + auto shared_present_surface_cap_struct = util::find_extension( + VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_KHR, pSurfaceCapabilities); + if (shared_present_surface_cap_struct != nullptr) + { + shared_present_surface_cap_struct->sharedPresentSupportedUsageFlags = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; + } + /* * Any of the extensions that extend pSurfaceInfo are not supported by the * swapchain implementation so it is safe to ignore pNext here, even if