1// Copyright 2014-2023 The Khronos Group Inc. 2// 3// SPDX-License-Identifier: CC-BY-4.0 4 5[[platformQuerySupport_xlib]] 6=== Xlib Platform 7 8[open,refpage='vkGetPhysicalDeviceXlibPresentationSupportKHR',desc='Query physical device for presentation to X11 server using Xlib',type='protos'] 9-- 10To determine whether a queue family of a physical device supports 11presentation to an X11 server, using the Xlib client-side library, call: 12 13include::{generated}/api/protos/vkGetPhysicalDeviceXlibPresentationSupportKHR.adoc[] 14 15 * pname:physicalDevice is the physical device. 16 * pname:queueFamilyIndex is the queue family index. 17 * pname:dpy is a pointer to an Xlib code:Display connection to the server. 18 * pname:visualId is an X11 visual (code:VisualID). 19 20This platform-specific function can: be called prior to creating a surface. 21 22.Valid Usage 23**** 24 * [[VUID-vkGetPhysicalDeviceXlibPresentationSupportKHR-queueFamilyIndex-01315]] 25 pname:queueFamilyIndex must: be less than 26 pname:pQueueFamilyPropertyCount returned by 27 fname:vkGetPhysicalDeviceQueueFamilyProperties for the given 28 pname:physicalDevice 29**** 30 31include::{generated}/validity/protos/vkGetPhysicalDeviceXlibPresentationSupportKHR.adoc[] 32-- 33