Mercurial > games > semicongine
changeset 135:250e1dcbfec9
did: simplify code
author | Sam <sam@basx.dev> |
---|---|
date | Thu, 20 Apr 2023 23:45:57 +0700 |
parents | e6c7973d8525 |
children | fc5db4f1f94e |
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