comparison tests/test_gltf.nim @ 1256:bfb75c934f4e

add: window focus handling, improve window api a bit
author sam <sam@basx.dev>
date Sun, 28 Jul 2024 17:33:41 +0700
parents 2b5ca798f6d6
children e9b8d87b9883
comparison
equal deleted inserted replaced
1255:2b5ca798f6d6 1256:bfb75c934f4e
169 InitVulkan() 169 InitVulkan()
170 170
171 var renderpass = CreateDirectPresentationRenderPass(depthBuffer = true, samples = VK_SAMPLE_COUNT_4_BIT) 171 var renderpass = CreateDirectPresentationRenderPass(depthBuffer = true, samples = VK_SAMPLE_COUNT_4_BIT)
172 SetupSwapchain(renderpass = renderpass) 172 SetupSwapchain(renderpass = renderpass)
173 LockMouse(true) 173 LockMouse(true)
174 ShowSystemCursor(false)
174 175
175 # tests a simple triangle with minimalistic shader and vertex format 176 # tests a simple triangle with minimalistic shader and vertex format
176 test_gltf(time) 177 test_gltf(time)
177 178
178 checkVkResult vkDeviceWaitIdle(vulkan.device) 179 checkVkResult vkDeviceWaitIdle(vulkan.device)