comparison tests/test_text.nim @ 1241:a0ed1a918fda

fix: letters sometimes overlapping other letters quad
author sam <sam@basx.dev>
date Mon, 22 Jul 2024 12:51:50 +0700
parents 42eeb59f3a43
children 4cf9872f7bb6
comparison
equal deleted inserted replaced
1240:42eeb59f3a43 1241:a0ed1a918fda
193 checkVkResult vkDeviceWaitIdle(vulkan.device) 193 checkVkResult vkDeviceWaitIdle(vulkan.device)
194 DestroyPipeline(pipeline) 194 DestroyPipeline(pipeline)
195 DestroyRenderData(renderdata) 195 DestroyRenderData(renderdata)
196 196
197 when isMainModule: 197 when isMainModule:
198 var time = 1000'f32 198 var time = 1'f32
199 InitVulkan() 199 InitVulkan()
200 200
201 var renderpass = CreateDirectPresentationRenderPass(depthBuffer = true) 201 for depthBuffer in [true, false]:
202 SetupSwapchain(renderpass = renderpass) 202 var renderpass = CreateDirectPresentationRenderPass(depthBuffer = depthBuffer)
203 203 SetupSwapchain(renderpass = renderpass)
204 # tests a simple triangle with minimalistic shader and vertex format 204
205 # test_01_static_label(time, swapchain) 205 # tests a simple triangle with minimalistic shader and vertex format
206 # test_02_multiple_animated(time) 206 test_01_static_label(time)
207 # test_03_layouting(time) 207 test_02_multiple_animated(time)
208 test_04_lots_of_texts(time) 208 test_03_layouting(time)
209 209 test_04_lots_of_texts(time)
210 210
211 checkVkResult vkDeviceWaitIdle(vulkan.device) 211 checkVkResult vkDeviceWaitIdle(vulkan.device)
212 vkDestroyRenderPass(vulkan.device, renderpass.vk, nil) 212 vkDestroyRenderPass(vulkan.device, renderpass.vk, nil)
213 ClearSwapchain()
213 214
214 DestroyVulkan() 215 DestroyVulkan()