commit | e2688a5f45a9a9638c5863c95a0521e00030db37 | [log] [tgz] |
---|---|---|
author | Ian Elliott <ian@lunarg.com> | Fri Oct 16 18:02:43 2015 -0600 |
committer | Ian Elliott <ian@lunarg.com> | Tue Oct 27 10:35:20 2015 -0600 |
tree | 265666a65b4d84e425083ff26f4e554ab21de3a3 | |
parent | b46be81bd6a74678eed9297f40a9e5a6bfe4a6d2 [diff] |
tri/cube: Handle window resizes (from WSI or XCB). If either vkAcquireNextImageKHR() or vkQueuePresentKHR() return VK_ERROR_OUT_OF_DATE, a new demo_resize() function is called, that replaces the current state, command buffers, swapchain, etc, with new ones that reflect the new size of the window. As part of this, the app picks up the window size from vkGetSurfacePropertiesKHR(). The same occurs if the application receives an XCB_CONFIGURE_NOTIFY event, with a changed window size.