// Copyright (c) 2014-2017 The Khronos Group Inc.
// Copyright notice at https://www.khronos.org/registry/speccopyright.html

[[platformQuerySupport_xcb,platformQuerySupport_xcb]]

=== XCB Platform

// refBegin vkGetPhysicalDeviceXcbPresentationSupportKHR - Query physical device for presentation to X11 server using XCB

To determine whether a queue family of a physical device supports
presentation to an X11 server, using the XCB client-side library, call:

include::../../api/protos/vkGetPhysicalDeviceXcbPresentationSupportKHR.txt[]

  * pname:physicalDevice is the physical device.
  * pname:queueFamilyIndex is the queue family index.
  * pname:connection is a pointer to an code:xcb_connection_t to the X
    server.
    pname:visual_id is an X11 visual (code:xcb_visualid_t).

This platform-specific function can: be called prior to creating a surface.

.Valid Usage
****
  * [[VUID-vkGetPhysicalDeviceXcbPresentationSupportKHR-queueFamilyIndex-01312]]
    pname:queueFamilyIndex must: be less than
    pname:pQueueFamilyPropertyCount returned by
    fname:vkGetPhysicalDeviceQueueFamilyProperties for the given
    pname:physicalDevice
****

include::../../validity/protos/vkGetPhysicalDeviceXcbPresentationSupportKHR.txt[]
