# HG changeset patch # User Sam # Date 1682009157 -25200 # Node ID a89cd90af3cc1d0c4a1311d7e600e3cdf12c7cb4 # Parent 7f7e797335edfec6549c9728e806dde7f6f806e7 did: simplify code diff -r 7f7e797335ed -r a89cd90af3cc tests/test_vulkan_wrapper.nim --- 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