Mercurial > games > semicongine
diff tests/test_vulkan_wrapper.nim @ 135:250e1dcbfec9
did: simplify code
author | Sam <sam@basx.dev> |
---|---|
date | Thu, 20 Apr 2023 23:45:57 +0700 |
parents | 11666d28e04d |
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