vulkan icon indicating copy to clipboard operation
vulkan copied to clipboard

vkAcquireNextImageKHR results in VkSuboptimalKhr

Open Qlii256 opened this issue 4 years ago • 1 comments

I cannot render anything on screen because vkAcquireNextImageKHR keeps raising the exception VkSuboptimalKhr. I've read online that when this happens I can "ignore" it and continue on with the drawing of the frame. However, later on when submitting the image-index returned by vkAcquireNextImageKHR is None because it raised an expection.

pCommandBuffers=[self._command_buffers[image_index], ],

What can I do about this and why do I keep getting this error?

Qlii256 avatar Oct 03 '21 17:10 Qlii256

Hello @Qlii256, Indeed if an exception is raised you can't get the image index (like you can see here: https://github.com/realitix/vulkan/blob/master/vulkan/_vulkan.py#L7170 ) Maybe adding a parameter to the function to bypass the exception raising.. Else you should fix this exception.

realitix avatar Oct 04 '21 07:10 realitix