Closed MDZhB closed 1 year ago
Not a bug, see this reply.
However I admit that, based on the number of issues raised about this, the decision we made back then was probably wrong. I promise to reexamine the available options when the times come to design LWJGL 4. Surprising behavior should not exist, even if the default is convenient for most use-cases.
Thanks for clarifying.
I'm still learning the Vulkan API. When I saw that the semaphores I passed to VkSubmitInfo
had no effect, my first guess was that I had misunderstood Vulkan's synchronization mechanisms in some way. I therefore spent quite a bit of time exhausting other possibilities before I realized that my code wasn't working due to a subtlety in how the struct works.
My vote would be for consistency over convenience. Given how verbose Vulkan is already, it's not a big deal to require that we set the appropriate count
field in every circumstance. It's easier to wrap one's head around, and it mirrors the C API more closely (which is what most learning materials on Vulkan are using).
Thank you for responding so quickly, and for all your work on the library.
Version
3.3.0
Platform
Windows x64
JDK
OpenJDK 19.0.1
Module
Vulkan
Bug description
VkSubmitInfo.pWaitSemaphores
does not also setwaitSemaphoreCount
to the length of the given buffer. This is surprising, as it is inconsistent with the behaviour ofpSignalSemaphores
andpCommandBuffers
.Stacktrace or crash log output
No response