vkCreateXcbSurfaceKHR(3)
Name
vkCreateXcbSurfaceKHR - Create aVkSurfaceKHR object for a X11 window, using the XCB client-side library
C Specification
To create aVkSurfaceKHR object for an X11 window, using the XCBclient-side library, call:
// Provided by VK_KHR_xcb_surfaceVkResult vkCreateXcbSurfaceKHR( VkInstance instance, const VkXcbSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);Parameters
instanceis the instance to associate the surface with.pCreateInfois a pointer to aVkXcbSurfaceCreateInfoKHRstructure containing parameters affecting the creation of the surfaceobject.pAllocatoris the allocator used for host memory allocated for thesurface object when there is no more specific allocator available (seeMemory Allocation).pSurfaceis a pointer to aVkSurfaceKHR handle in which thecreated surface object is returned.
Description
VUID-vkCreateXcbSurfaceKHR-instance-parameter
instancemust be a validVkInstance handleVUID-vkCreateXcbSurfaceKHR-pCreateInfo-parameter
pCreateInfomust be a valid pointer to a validVkXcbSurfaceCreateInfoKHR structureVUID-vkCreateXcbSurfaceKHR-pAllocator-parameter
IfpAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacks structureVUID-vkCreateXcbSurfaceKHR-pSurface-parameter
pSurfacemust be a valid pointer to aVkSurfaceKHR handle
Document Notes
For more information, see theVulkan Specification.
This page is extracted from the Vulkan Specification.Fixes and changes should be made to the Specification, not directly.