cube: demonstrate how to select other VkPresentModeKHR's
authorIan Elliott <ianelliott@google.com>
Mon, 3 Oct 2016 18:11:12 +0000 (12:11 -0600)
committerIan Elliott <ianelliott@google.com>
Tue, 4 Oct 2016 18:57:00 +0000 (12:57 -0600)
commit6455efbcfbea3117d3eaded354318126a1252927
treea29a168339d273e9d2378aa8afa541137ca2ab9d
parentda5450dacd563d329c945a9fa8450d5f06f7316d
cube: demonstrate how to select other VkPresentModeKHR's

This comes from the Khronos-internal discussion of
https://github.com/LunarG/VulkanSamples/issues/98.  Cube will, by default,
choose VK_PRESENT_FIFO_KHR mode.  However, when that change was made, the old
(example) code was lost that showed how to search for the other present modes.
It was also discussed that there isn't good guidance on why an application
might want to use a mode other than FIFO.  This change adds both of those, but
only selects FIFO by default.  #ifdef's can be used to select other modes.
With that code is a reason why an application might wish to use that present
mode.
demos/cube.c