diff semicongine/core/vulkan/platform/ios.nim @ 1190:a3eb305bcac2 compiletime-tests

start of complete and total refactoring: the ULTIMATE
author sam <sam@basx.dev>
date Sun, 07 Jul 2024 23:36:16 +0700
parents semicongine/vulkan/platform/ios.nim@c66503386e8b
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/semicongine/core/vulkan/platform/ios.nim	Sun Jul 07 23:36:16 2024 +0700
@@ -0,0 +1,12 @@
+type
+  VkIOSSurfaceCreateInfoMVK* = object
+    sType*: VkStructureType
+    pNext*: pointer
+    flags*: VkIOSSurfaceCreateFlagsMVK
+    pView*: pointer
+# extension VK_MVK_ios_surface
+var
+  vkCreateIOSSurfaceMVK*: proc(instance: VkInstance, pCreateInfo: ptr VkIOSSurfaceCreateInfoMVK, pAllocator: ptr VkAllocationCallbacks, pSurface: ptr VkSurfaceKHR): VkResult {.stdcall.}
+proc loadVK_MVK_ios_surface*(instance: VkInstance) =
+  loadVK_KHR_surface(instance)
+  vkCreateIOSSurfaceMVK = cast[proc(instance: VkInstance, pCreateInfo: ptr VkIOSSurfaceCreateInfoMVK, pAllocator: ptr VkAllocationCallbacks, pSurface: ptr VkSurfaceKHR): VkResult {.stdcall.}](vkGetInstanceProcAddr(instance, "vkCreateIOSSurfaceMVK"))