# HG changeset patch # User Sam # Date 1684149924 -25200 # Node ID 3cbbf50e9e4cf0082f4f744bb606571882afed75 # Parent d078b19bf53160e59b762f1d264a935dc410d2c7 del: unused diagnostic function diff -r d078b19bf531 -r 3cbbf50e9e4c tests/test_vulkan_wrapper.nim --- a/tests/test_vulkan_wrapper.nim Mon May 15 18:24:52 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)])