Mercurial > games > semicongine
comparison test1.nim @ 1200:5c6491f28dcd compiletime-tests
did: simplify some swapchain stuff, add many destructor calls
author | sam <sam@basx.dev> |
---|---|
date | Sun, 14 Jul 2024 19:15:43 +0700 |
parents | ba1af13233ee |
children | d4a206b5e5b0 |
comparison
equal
deleted
inserted
replaced
1199:ba1af13233ee | 1200:5c6491f28dcd |
---|---|
114 # start command buffer | 114 # start command buffer |
115 var t = getMonoTime() | 115 var t = getMonoTime() |
116 while UpdateInputs(): | 116 while UpdateInputs(): |
117 WithNextFrame(swapchain, framebuffer, commandbuffer): | 117 WithNextFrame(swapchain, framebuffer, commandbuffer): |
118 WithRenderPass(mainRenderpass, framebuffer, commandbuffer, swapchain.width, swapchain.height, NewVec4f(1, 0, 0, 0)): | 118 WithRenderPass(mainRenderpass, framebuffer, commandbuffer, swapchain.width, swapchain.height, NewVec4f(1, 0, 0, 0)): |
119 # echo (getMonoTime() - t).inMicroseconds.float / 1000.0 | 119 vkCmdBindPipeline(commandbuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline1.vk) |
120 echo (getMonoTime() - t).inMicroseconds.float / 1000.0 | |
120 t = getMonoTime() | 121 t = getMonoTime() |
122 | |
123 DestroyPipeline(pipeline1) | |
124 | |
125 DestroyRenderData(renderdata) | |
126 checkVkResult vkDeviceWaitIdle(vulkan.device) | |
127 DestroySwapchain(swapchain) | |
128 DestroyVulkan() |