Mercurial > games > semicongine
comparison semiconginev2/old/platform/linux/surface.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/platform/linux/surface.nim@a3eb305bcac2 |
children |
comparison
equal
deleted
inserted
replaced
1217:f819a874058f | 1218:56781cc0fc7c |
---|---|
1 import ../../core | |
2 import ../../platform/window | |
3 | |
4 proc CreateNativeSurface*(instance: VkInstance, window: NativeWindow): VkSurfaceKHR = | |
5 assert instance.Valid | |
6 var surfaceCreateInfo = VkXlibSurfaceCreateInfoKHR( | |
7 sType: VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR, | |
8 dpy: cast[ptr vulkanapi.Display](window.display), | |
9 window: cast[vulkanapi.Window](window.window), | |
10 ) | |
11 checkVkResult vkCreateXlibSurfaceKHR(instance, addr(surfaceCreateInfo), nil, addr(result)) |