Mercurial > games > semicongine
diff semicongine/rendering/vulkan_wrappers.nim @ 1196:82feceae80b1 compiletime-tests
sync from bedroom to office
author | sam <sam@basx.dev> |
---|---|
date | Tue, 09 Jul 2024 22:53:38 +0700 |
parents | cfba2b7e00d0 |
children | 96a094cd0c78 |
line wrap: on
line diff
--- a/semicongine/rendering/vulkan_wrappers.nim Mon Jul 08 23:47:33 2024 +0700 +++ b/semicongine/rendering/vulkan_wrappers.nim Tue Jul 09 22:53:38 2024 +0700 @@ -25,9 +25,8 @@ assert score > 0, "Unable to find integrated or discrete GPU" proc svkGetPhysicalDeviceSurfaceSupportKHR*(queueFamily: uint32): bool = - assert surface.Valid var presentation = VkBool32(false) - checkVkResult vkGetPhysicalDeviceSurfaceSupportKHR(vulkan.device, queueFamily, vulkan.surface, addr(presentation)) + checkVkResult vkGetPhysicalDeviceSurfaceSupportKHR(vulkan.physicalDevice, queueFamily, vulkan.surface, addr(presentation)) return bool(presentation) proc GetQueueFamily(pDevice: VkPhysicalDevice, qType: VkQueueFlagBits): uint32 = @@ -202,7 +201,7 @@ proc svkCreateSemaphore*(): VkSemaphore = var semaphoreInfo = VkSemaphoreCreateInfo(sType: VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO) - checkVkResult vkCreateSemaphore(vulkan.deivce, addr(semaphoreInfo), nil, addr(result)) + checkVkResult vkCreateSemaphore(vulkan.device, addr(semaphoreInfo), nil, addr(result)) proc Await*(fence: VkFence, timeout = high(uint64)) = checkVkResult vkWaitForFences(vulkan.device, 1, addr(fence), false, timeout)