Mercurial > games > semicongine
comparison tests/test_rendering.nim @ 1208:8cf9a05b03eb compiletime-tests
did: uncomment tests
author | sam <sam@basx.dev> |
---|---|
date | Tue, 16 Jul 2024 15:57:38 +0700 |
parents | f7530247a21f |
children | e177336cac3f |
comparison
equal
deleted
inserted
replaced
1207:804ff842d377 | 1208:8cf9a05b03eb |
---|---|
189 block: | 189 block: |
190 mainRenderpass = CreatePresentationRenderPass() | 190 mainRenderpass = CreatePresentationRenderPass() |
191 swapchain = InitSwapchain(renderpass = mainRenderpass).get() | 191 swapchain = InitSwapchain(renderpass = mainRenderpass).get() |
192 | 192 |
193 # tests a simple triangle with minimalistic shader and vertex format | 193 # tests a simple triangle with minimalistic shader and vertex format |
194 # test_01_triangle(nFrames) | 194 test_01_triangle(nFrames) |
195 | 195 |
196 # tests instanced triangles and quads, mixing meshes and instances | 196 # tests instanced triangles and quads, mixing meshes and instances |
197 # test_02_triangle_quad_instanced(nFrames) | 197 test_02_triangle_quad_instanced(nFrames) |
198 | 198 |
199 # tests | 199 # tests |
200 test_03_global_descriptorset(nFrames) | 200 test_03_global_descriptorset(nFrames) |
201 | 201 |
202 checkVkResult vkDeviceWaitIdle(vulkan.device) | 202 checkVkResult vkDeviceWaitIdle(vulkan.device) |
206 # test MSAA | 206 # test MSAA |
207 block: | 207 block: |
208 mainRenderpass = CreatePresentationRenderPass(samples = VK_SAMPLE_COUNT_4_BIT) | 208 mainRenderpass = CreatePresentationRenderPass(samples = VK_SAMPLE_COUNT_4_BIT) |
209 swapchain = InitSwapchain(renderpass = mainRenderpass, samples = VK_SAMPLE_COUNT_4_BIT).get() | 209 swapchain = InitSwapchain(renderpass = mainRenderpass, samples = VK_SAMPLE_COUNT_4_BIT).get() |
210 | 210 |
211 # test_01_triangle(nFrames) | 211 test_01_triangle(99999999) |
212 | 212 |
213 checkVkResult vkDeviceWaitIdle(vulkan.device) | 213 checkVkResult vkDeviceWaitIdle(vulkan.device) |
214 vkDestroyRenderPass(vulkan.device, mainRenderpass, nil) | 214 vkDestroyRenderPass(vulkan.device, mainRenderpass, nil) |
215 DestroySwapchain(swapchain) | 215 DestroySwapchain(swapchain) |
216 | 216 |