diff src/vulkan_api/vulkan_api_generator.nim @ 97:110ed3ee5df8

add: swapchain, images, fix some destroctors
author Sam <sam@basx.dev>
date Thu, 02 Mar 2023 23:16:45 +0700
parents f036546f5ea2
children 7f921d7d0a2b
line wrap: on
line diff
--- a/src/vulkan_api/vulkan_api_generator.nim	Wed Mar 01 23:58:39 2023 +0700
+++ b/src/vulkan_api/vulkan_api_generator.nim	Thu Mar 02 23:16:45 2023 +0700
@@ -454,7 +454,7 @@
 macro enumFullRange(a: typed): untyped =
   newNimNode(nnkBracket).add(a.getType[1][1..^1])
 
-iterator items[T: HoleyEnum](E: typedesc[T]): T =
+iterator items*[T: HoleyEnum](E: typedesc[T]): T =
   for a in enumFullRange(E): yield a""",
     ],
     "structs": @["type"],