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