diff src/semicongine/vulkan/physicaldevice.nim @ 189:df92519d4d68

add: initial code for texture support, not finished, had to completely refactor how to handle material-data (ie scene-wide data, sorry if you ever read this
author Sam <sam@basx.dev>
date Fri, 05 May 2023 23:45:50 +0700
parents de9dff24c422
children 7f921d7d0a2b
line wrap: on
line diff
--- a/src/semicongine/vulkan/physicaldevice.nim	Thu May 04 23:44:15 2023 +0700
+++ b/src/semicongine/vulkan/physicaldevice.nim	Fri May 05 23:45:50 2023 +0700
@@ -20,6 +20,9 @@
     index*: uint32
     flags*: seq[VkQueueFlagBits]
 
+func `$`*(device: PhysicalDevice): string =
+  "Physical device: vk=" & $device.vk & ", name=" & $device.name & ", devicetype=" & $device.devicetype
+
 proc getPhysicalDevices*(instance: Instance): seq[PhysicalDevice] =
   assert instance.vk.valid
   assert instance.surface.valid