grvk icon indicating copy to clipboard operation
grvk copied to clipboard

Implement present from compute

Open libcg opened this issue 4 years ago • 1 comments
trafficstars

BF4 wants to use this.

libcg avatar Nov 04 '21 04:11 libcg

We use vkCmdBlitImage in the present path to convert the presentable image format to the swapchain format: games use R8G8B8A8 presentable images and X11 only allows B8G8R8A8 swapchains. Blits require a graphics queue.

Three ways forward:

  • Assume Wayland (not realistic today)
  • Use a compute shader to copy presentable image -> swapchain with swizzle
  • Skip present copy entirely

libcg avatar Apr 20 '25 05:04 libcg