1// Copyright 2019-2022 The Khronos Group Inc. 2// 3// SPDX-License-Identifier: CC-BY-4.0 4 5// Common Valid Usage 6// Common to all VkPhysicalDevice commands accepting a 7// VkPhysicalDeviceSurfaceInfo2KHR param, which may also accept VK_NULL_HANDLE 8// as surface as part of VK_GOOGLE_surfaceless_query. 9 10ifdef::VK_GOOGLE_surfaceless_query[] 11 * [[VUID-{refpage}-pSurfaceInfo-06521]] 12 If the `apiext:VK_GOOGLE_surfaceless_query` extension is not enabled, 13 pname:pSurfaceInfo->surface must: be a valid slink:VkSurfaceKHR handle 14 * [[VUID-{refpage}-pSurfaceInfo-06522]] 15 If pname:pSurfaceInfo->surface is not dlink:VK_NULL_HANDLE, it must: be 16 supported by pname:physicalDevice, as reported by 17 flink:vkGetPhysicalDeviceSurfaceSupportKHR or an equivalent 18 platform-specific mechanism 19endif::VK_GOOGLE_surfaceless_query[] 20ifndef::VK_GOOGLE_surfaceless_query[] 21include::{chapters}/commonvalidity/surface_info_physical_device_common.adoc[] 22endif::VK_GOOGLE_surfaceless_query[] 23 24// Common Valid Usage 25