comparison semicongine/platform/windows/surface.nim @ 1139:114f395b9144

did: finish refactoring and updated all tests accordingly
author sam <sam@basx.dev>
date Sat, 08 Jun 2024 14:58:25 +0700
parents 02e1d2658ff5
children
comparison
equal deleted inserted replaced
1138:02e1d2658ff5 1139:114f395b9144
1 import ../../core 1 import ../../core
2 import ../../platform/window 2 import ../../platform/window
3 3
4 proc CreateNativeSurface*(instance: VkInstance, window: NativeWindow): VkSurfaceKHR = 4 proc CreateNativeSurface*(instance: VkInstance, window: NativeWindow): VkSurfaceKHR =
5 assert instance.valid 5 assert instance.Valid
6 var surfaceCreateInfo = VkWin32SurfaceCreateInfoKHR( 6 var surfaceCreateInfo = VkWin32SurfaceCreateInfoKHR(
7 sType: VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR, 7 sType: VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR,
8 hinstance: cast[HINSTANCE](window.hinstance), 8 hinstance: cast[HINSTANCE](window.hinstance),
9 hwnd: cast[HWND](window.hwnd), 9 hwnd: cast[HWND](window.hwnd),
10 ) 10 )