my code still works but it says Validation Error: [ VUID-vkQueueSubmit-pWaitSemaphores-00069 ] Object 0: handle = 0x3a6cbb0000000025, type = VK_OBJECT_TYPE_SEMAPHORE; Object 1: handle = 0x21ab067e780, type = VK_OBJECT_TYPE_QUEUE; | MessageID = 0xef858864 | vkQueueSubmit(): pSubmits[0].pWaitSemaphores[0] Queue VkQueue 0x21ab067e780[] is waiting on semaphore (VkSemaphore 0x3a6cbb0000000025[]) that has no way to be signaled. The Vulkan spec states: All elements of the pWaitSemaphores member of all elements of pSubmits must be semaphores that are signaled, or have semaphore signal operations previously submitted for execution (https://vulkan.lunarg.com/doc/view/1.3.211.0/windows/1.3-extensions/vkspec.html#VUID-vkQueueSubmit-pWaitSemaphores-00069) [ERROR: Validation] Validation Error: [ VUID_Undefined ] Object 0: handle = 0x21ab07e4d30, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x79de34d4 | vkQueuePresentKHR: parameter pPresentInfo->swapchainCount must be greater than 0. [ERROR: Validation] Validation Error: [ VUID-VkPresentInfoKHR-swapchainCount-arraylength ] Object 0: handle = 0x21ab07e4d30, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xc87a44e2 | vkQueuePresentKHR: parameter pPresentInfo->swapchainCount must be greater than 0. The Vulkan spec states: swapchainCount must be greater than 0 (https://vulkan.lunarg.com/doc/view/1.3.211.0/windows/1.3-extensions/vkspec.html#VUID-VkPresentInfoKHR-swapchainCount-arraylength)
#vulkan errors
33 messages · Page 1 of 1 (latest)
"presentInfo.swapchainCount = 0;"
It is what the message is saying
"swapchainCount must be greater than 0"
but i don't have a swapchain
it is offscreen rendering
it worked before but when i re-launched visual studio it gave this error
so what do i do?
oh wait do i not need the present?
if you don't draw to the window then yes don't present and don't create a surface
oh ok
Validation Error: [ UNASSIGNED-CoreValidation-DrawState-QueueForwardProgress ] Object 0: handle = 0xa2eb680000000026, type = VK_OBJECT_TYPE_SEMAPHORE; Object 1: handle = 0x1ca6e196220, type = VK_OBJECT_TYPE_QUEUE; Object 2: handle = 0x1ca6e196220, type = VK_OBJECT_TYPE_QUEUE; | MessageID = 0xe825f293 | vkQueueSubmit(): pSubmits[0].pSignalSemaphores[0] is signaling VkQueue 0x1ca6e196220[] (VkSemaphore 0xa2eb680000000026[]) that was previously signaled by VkQueue 0x1ca6e196220[] but has not since been waited on by any queue.
oh
do i even need semaphores for offscreen rendering?
oh yeah it works now
no errors
depends on what you need to sync
the only thing i do have is loader errors for medal
medal or metal?