ndsol / volcano

Get started with Vulkan. Keep it simple, short and sweet. See https://github.com/ndsol/VolcanoSamples
GNU General Public License v3.0
5 stars 1 forks source link

Add a way to prefer present modes #4

Closed volcanoauthors closed 7 years ago

volcanoauthors commented 7 years ago

Similar to #3. The present mode selection code can be overridden, but the current way of doing this is messy:

  1. Rewrite the glue code.
  2. Derive Instance in the new glue code with an overridden function to select the present mode.
  3. Reassemble everything carefully.

A public member that allowed customization of the modes would be much cleaner. It's also more consistent with the rest of Volcano.

volcanoauthors commented 7 years ago

Refactored language::Device to give the user better control of the present mode.