comparison semiconginev2/old/vulkan/platform/xcb.nim @ 1218:56781cc0fc7c compiletime-tests

did: renamge main package
author sam <sam@basx.dev>
date Wed, 17 Jul 2024 21:01:37 +0700
parents semicongine/old/vulkan/platform/xcb.nim@a3eb305bcac2
children
comparison
equal deleted inserted replaced
1217:f819a874058f 1218:56781cc0fc7c
1 type
2 VkXcbSurfaceCreateInfoKHR* = object
3 sType*: VkStructureType
4 pNext*: pointer
5 flags*: VkXcbSurfaceCreateFlagsKHR
6 connection*: ptr xcb_connection_t
7 window*: xcb_window_t
8 xcb_connection_t *{.header: "xcb/xcb.h".} = object
9 xcb_visualid_t *{.header: "xcb/xcb.h".} = object
10 xcb_window_t *{.header: "xcb/xcb.h".} = object
11 # extension VK_KHR_xcb_surface
12 var
13 vkCreateXcbSurfaceKHR*: proc(instance: VkInstance, pCreateInfo: ptr VkXcbSurfaceCreateInfoKHR, pAllocator: ptr VkAllocationCallbacks, pSurface: ptr VkSurfaceKHR): VkResult {.stdcall.}
14 vkGetPhysicalDeviceXcbPresentationSupportKHR*: proc(physicalDevice: VkPhysicalDevice, queueFamilyIndex: uint32, connection: ptr xcb_connection_t, visual_id: xcb_visualid_t): VkBool32 {.stdcall.}
15 proc loadVK_KHR_xcb_surface*(instance: VkInstance) =
16 loadVK_KHR_surface(instance)
17 vkCreateXcbSurfaceKHR = cast[proc(instance: VkInstance, pCreateInfo: ptr VkXcbSurfaceCreateInfoKHR, pAllocator: ptr VkAllocationCallbacks, pSurface: ptr VkSurfaceKHR): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkCreateXcbSurfaceKHR"))
18 vkGetPhysicalDeviceXcbPresentationSupportKHR = cast[proc(physicalDevice: VkPhysicalDevice, queueFamilyIndex: uint32, connection: ptr xcb_connection_t, visual_id: xcb_visualid_t): VkBool32 {.stdcall.}](vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceXcbPresentationSupportKHR"))