diff tests/test_vulkan_wrapper.nim @ 596:a89cd90af3cc

did: simplify code
author Sam <sam@basx.dev>
date Thu, 20 Apr 2023 23:45:57 +0700
parents cda5874a8454
children 62bc83b8a8c7
line wrap: on
line diff
--- a/tests/test_vulkan_wrapper.nim	Thu Apr 20 23:45:36 2023 +0700
+++ b/tests/test_vulkan_wrapper.nim	Thu Apr 20 23:45:57 2023 +0700
@@ -132,9 +132,7 @@
       outputs=fragOutput,
       main="color = vec4(outcolor, 1);"
     )
-  var
-    surfaceFormat = engine.gpuDevice.physicalDevice.getSurfaceFormats().filterSurfaceFormat()
-    renderPass = engine.gpuDevice.simpleForwardRenderPass(surfaceFormat.format, vertexCode, fragmentCode, 2)
+  var renderPass = engine.gpuDevice.simpleForwardRenderPass(vertexCode, fragmentCode)
   engine.setRenderer(renderPass)
 
   # INIT SCENES