diff src/vulkan_api/vulkan_api_generator.nim @ 222:ddfc54036e00

add: basic loading of glTF files (*.glb), no materials yet
author Sam <sam@basx.dev>
date Mon, 15 May 2023 00:34:00 +0700
parents 7f921d7d0a2b
children
line wrap: on
line diff
--- a/src/vulkan_api/vulkan_api_generator.nim	Sat May 13 19:32:28 2023 +0700
+++ b/src/vulkan_api/vulkan_api_generator.nim	Mon May 15 00:34:00 2023 +0700
@@ -422,7 +422,6 @@
       "import std/logging",
       "import std/typetraits",
       "import std/macros",
-      "import std/private/digitsutils",
       "type",
       "  VkHandle* = distinct uint",
       "  VkNonDispatchableHandle* = distinct uint",
@@ -661,9 +660,9 @@
   for l in GLOBAL_COMMANDS:
     mainout.add procLoads[l]
   mainout.add ""
-  mainout.add "converter VkBool2NimBool*(a: VkBool32): bool = a > 0"
+  # produces error if enable both implicit converters
+  # mainout.add "converter VkBool2NimBool*(a: VkBool32): bool = a > 0"
   mainout.add "converter NimBool2VkBool*(a: bool): VkBool32 = VkBool32(a)"
-  mainout.add "proc `$`*(x: uint32): string {.raises: [].} = addInt(result, x)"
 
   writeFile outdir / &"api.nim", mainout.join("\n")