view semicongine/rendering/vulkan/platform/ios.nim @ 1199:ba1af13233ee compiletime-tests

add: working main-renderloop
author sam <sam@basx.dev>
date Sat, 13 Jul 2024 23:27:12 +0700
parents
children
line wrap: on
line source

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"))