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