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)
commitb18fddee412ae3b6fe36913613bb3eed23a25c11
tree717809daa40d619daadb8607f5d919e19a492de4
parentf45686b9b504490eb94f8e4d5ac63bfa07f009fe
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