Mercurial > games > semicongine
comparison test1.nim @ 1201:d4a206b5e5b0 compiletime-tests
add: rest of the cleanup stuff
| author | sam <sam@basx.dev> |
|---|---|
| date | Sun, 14 Jul 2024 21:30:52 +0700 |
| parents | 5c6491f28dcd |
| children | a8864fe6fe6e |
comparison
equal
deleted
inserted
replaced
| 1200:5c6491f28dcd | 1201:d4a206b5e5b0 |
|---|---|
| 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 vkCmdBindPipeline(commandbuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline1.vk) | 119 vkCmdBindPipeline(commandbuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline1.vk) |
| 120 | |
| 121 Render( | |
| 122 commandbuffer = commandbuffer, | |
| 123 pipeline = pipeline1, | |
| 124 globalSet = myGlobals, | |
| 125 materialSet = uniforms1, | |
| 126 mesh = myMesh1, | |
| 127 instances = instances1, | |
| 128 ) | |
| 120 echo (getMonoTime() - t).inMicroseconds.float / 1000.0 | 129 echo (getMonoTime() - t).inMicroseconds.float / 1000.0 |
| 121 t = getMonoTime() | 130 t = getMonoTime() |
| 122 | 131 |
| 132 checkVkResult vkDeviceWaitIdle(vulkan.device) | |
| 123 DestroyPipeline(pipeline1) | 133 DestroyPipeline(pipeline1) |
| 124 | 134 vkDestroyRenderPass(vulkan.device, mainRenderpass, nil) |
| 125 DestroyRenderData(renderdata) | 135 DestroyRenderData(renderdata) |
| 126 checkVkResult vkDeviceWaitIdle(vulkan.device) | |
| 127 DestroySwapchain(swapchain) | 136 DestroySwapchain(swapchain) |
| 128 DestroyVulkan() | 137 DestroyVulkan() |
