Mercurial > games > semicongine
diff tests/test_vulkan_wrapper.nim @ 131:11666d28e04d
add: recreation of swapchain (at least on linux, windows will likely fail, needs testing
author | Sam <sam@basx.dev> |
---|---|
date | Wed, 19 Apr 2023 01:45:16 +0700 |
parents | 15d37022625c |
children | 250e1dcbfec9 |
line wrap: on
line diff
--- a/tests/test_vulkan_wrapper.nim Tue Apr 18 03:06:14 2023 +0700 +++ b/tests/test_vulkan_wrapper.nim Wed Apr 19 01:45:16 2023 +0700 @@ -135,7 +135,7 @@ var surfaceFormat = engine.gpuDevice.physicalDevice.getSurfaceFormats().filterSurfaceFormat() renderPass = engine.gpuDevice.simpleForwardRenderPass(surfaceFormat.format, vertexCode, fragmentCode, 2) - engine.setRenderer([renderPass]) + engine.setRenderer(renderPass) # INIT SCENES var scenes = [scene_simple(), scene_different_mesh_types(), scene_primitives()] @@ -154,7 +154,7 @@ if not engine.running or engine.keyIsDown(Escape): engine.destroy() return - discard engine.renderScene(scene) + engine.renderScene(scene) echo "Rendered ", engine.framesRendered, " frames" echo "Processed ", engine.eventsProcessed, " events"