kondrak / vkQuake2

id Software's Quake 2 v3.21 with mission packs and Vulkan support (Windows, Linux, macOS, FreeBSD, Raspberry Pi 4)
GNU General Public License v2.0
896 stars 91 forks source link

Lift VK_IMAGE_USAGE_TRANSFER_SRC_BIT requirement for the swapchain #90

Closed kvark closed 4 years ago

kvark commented 4 years ago

Vulkan swapchains only guarantee support for COLOR_ATTACHMENT usage. If I understand correctly, vkQuake2 only uses VK_IMAGE_USAGE_TRANSFER_SRC_BIT for screenshots, so it's not essential to the task. Could we make the screenshot support optional instead of aborting when this usage is not exposed?

kondrak commented 4 years ago

I now made that usage flag optional, so screenshots are disabled if it's not present.