Mercurial > games > semicongine
changeset 596:a89cd90af3cc
did: simplify code
author | Sam <sam@basx.dev> |
---|---|
date | Thu, 20 Apr 2023 23:45:57 +0700 |
parents | 7f7e797335ed |
children | fdae5f50fa00 |
files | tests/test_vulkan_wrapper.nim |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
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