Mercurial > games > semicongine
comparison semiconginev2/rendering/vulkan/platform/xlib.nim @ 1227:4d97cfc4888b
merge
author | sam <sam@basx.dev> |
---|---|
date | Wed, 17 Jul 2024 23:45:43 +0700 |
parents | 56781cc0fc7c |
children |
comparison
equal
deleted
inserted
replaced
1170:2addc5f6804f | 1227:4d97cfc4888b |
---|---|
1 type | |
2 VkXlibSurfaceCreateInfoKHR* = object | |
3 sType*: VkStructureType | |
4 pNext*: pointer | |
5 flags*: VkXlibSurfaceCreateFlagsKHR | |
6 dpy*: ptr Display | |
7 window*: Window | |
8 Display *{.header: "X11/Xlib.h".} = object | |
9 VisualID *{.header: "X11/Xlib.h".} = object | |
10 Window *{.header: "X11/Xlib.h".} = object | |
11 # extension VK_KHR_xlib_surface | |
12 var | |
13 vkCreateXlibSurfaceKHR*: proc(instance: VkInstance, pCreateInfo: ptr VkXlibSurfaceCreateInfoKHR, pAllocator: ptr VkAllocationCallbacks, pSurface: ptr VkSurfaceKHR): VkResult {.stdcall.} | |
14 vkGetPhysicalDeviceXlibPresentationSupportKHR*: proc(physicalDevice: VkPhysicalDevice, queueFamilyIndex: uint32, dpy: ptr Display, visualID: VisualID): VkBool32 {.stdcall.} | |
15 proc loadVK_KHR_xlib_surface*(instance: VkInstance) = | |
16 loadVK_KHR_surface(instance) | |
17 vkCreateXlibSurfaceKHR = cast[proc(instance: VkInstance, pCreateInfo: ptr VkXlibSurfaceCreateInfoKHR, pAllocator: ptr VkAllocationCallbacks, pSurface: ptr VkSurfaceKHR): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkCreateXlibSurfaceKHR")) | |
18 vkGetPhysicalDeviceXlibPresentationSupportKHR = cast[proc(physicalDevice: VkPhysicalDevice, queueFamilyIndex: uint32, dpy: ptr Display, visualID: VisualID): VkBool32 {.stdcall.}](vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceXlibPresentationSupportKHR")) |