changeset 687:c0f59246af55

del: unused diagnostic function
author Sam <sam@basx.dev>
date Mon, 15 May 2023 18:25:24 +0700
parents c671452564cd
children a448a32f1b24
files tests/test_vulkan_wrapper.nim
diffstat 1 files changed, 1 insertions(+), 33 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_vulkan_wrapper.nim	Mon May 15 18:24:32 2023 +0700
+++ b/tests/test_vulkan_wrapper.nim	Mon May 15 18:25:24 2023 +0700
@@ -1,38 +1,5 @@
-import std/options
-
 import semicongine
 
-proc diagnostics(instance: Instance) =
-  # diagnostic output
-  # print basic driver infos
-  echo "Layers"
-  for layer in getLayers():
-    echo "  " & layer
-  echo "Instance extensions"
-  for extension in getInstanceExtensions():
-    echo "  " & extension
-
-  echo "Devices"
-  for device in instance.getPhysicalDevices():
-    echo "  " & $device
-    echo "  Rating: " & $device.rateGraphics()
-    echo "  Extensions"
-    for extension in device.getExtensions():
-      echo "    " & $extension
-    echo "  Properties"
-    echo "  " & $device.properties
-    echo "  Features"
-    echo "  " & $device.features
-    echo "  Queue families"
-    for queueFamily in device.getQueueFamilies():
-      echo "    " & $queueFamily
-    echo "  Surface present modes"
-    for mode in device.getSurfacePresentModes():
-      echo "    " & $mode
-    echo "  Surface formats"
-    for format in device.getSurfaceFormats():
-      echo "    " & $format
-
 proc scene_different_mesh_types(): Entity =
   result = newEntity("root",
     newEntity("triangle1", newMesh(
@@ -100,6 +67,7 @@
   var r = rect(color="ff0000")
   var t = tri(color="0000ff")
   var c = circle(color="00ff00")
+
   r.setInstanceData("translate", @[newVec3f(0.5, -0.3)])
   t.setInstanceData("translate", @[newVec3f(0.3,  0.3)])
   c.setInstanceData("translate", @[newVec3f(-0.3,  0.1)])