.pCommandBuffers(pCommandBuffers)
.pSignalSemaphores(pRenderCompleteSemaphore);
VkPresentInfoKHR presentInfo = VkPresentInfoKHR.calloc()
.sType(VK_STRUCTURE_TYPE_PRESENT_INFO_KHR)
.pNext(NULL)
<BUG>.pWaitSemaphores(pRenderCompleteSemaphore)
.pSwapchains(pSwapchains)</BUG>
.pImageIndices(pImageIndex)
.pResults(null);
while (glfwWindowShouldClose(window) == GLFW_FALSE) {

.pCommandBuffers(pCommandBuffers)
.pSignalSemaphores(pRenderCompleteSemaphore);
VkPresentInfoKHR presentInfo = VkPresentInfoKHR.calloc()
.sType(VK_STRUCTURE_TYPE_PRESENT_INFO_KHR)
.pNext(NULL)
.pWaitSemaphores(pRenderCompleteSemaphore)
.swapchainCount(pSwapchains.remaining())
.pSwapchains(pSwapchains)
.pImageIndices(pImageIndex)
.pResults(null);
while (glfwWindowShouldClose(window) == GLFW_FALSE) {
