Mercurial > games > semicongine
diff svk/test.nim @ 1489:e6bd1f553c1b default tip main
add: quite a bit more wrapper
author | sam <sam@basx.dev> |
---|---|
date | Sun, 18 May 2025 23:47:16 +0700 |
parents | 6e062a84c157 |
children |
line wrap: on
line diff
--- a/svk/test.nim Sun May 18 16:36:52 2025 +0700 +++ b/svk/test.nim Sun May 18 23:47:16 2025 +0700 @@ -1,4 +1,12 @@ import ./api -let vk = svkCreateInstance("test") +var vk = svkCreateInstance("test") echo vk +for d in vk.getUsablePhysicalDevices(): + echo d.name, " queue familye: ", d.queueFamily + echo "memory types:" + for mt in d.memoryTypes: + echo " ", mt + echo "" + +vk.destroy()