Movatterモバイル変換


[0]ホーム

URL:


Vulkan API Reference Pageslatest

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

  • instance is the instance to associate the surface with.

  • pCreateInfo is a pointer to aVkXcbSurfaceCreateInfoKHRstructure containing parameters affecting the creation of the surfaceobject.

  • pAllocator is the allocator used for host memory allocated for thesurface object when there is no more specific allocator available (seeMemory Allocation).

  • pSurface is a pointer to aVkSurfaceKHR handle in which thecreated surface object is returned.

Description

Valid Usage (Implicit)
  • VUID-vkCreateXcbSurfaceKHR-instance-parameter
    instancemust be a validVkInstance handle

  • VUID-vkCreateXcbSurfaceKHR-pCreateInfo-parameter
    pCreateInfomust be a valid pointer to a validVkXcbSurfaceCreateInfoKHR structure

  • VUID-vkCreateXcbSurfaceKHR-pAllocator-parameter
    IfpAllocator is notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacks structure

  • VUID-vkCreateXcbSurfaceKHR-pSurface-parameter
    pSurfacemust be a valid pointer to aVkSurfaceKHR handle

See Also

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.


[8]ページ先頭

©2009-2026 Movatter.jp