render/vulkan: add support for YUV formats
Need to use e.g. VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_CREATE_INFO
together with VK_FORMAT_G8_B8R8_2PLANE_420_UNORM
for NV12.
Ref:
- https://github.com/Plagman/gamescope/pull/195
- https://github.com/nyorain/wlroots/tree/vulkan3-ycbcr/render/vulkan
TODO:
-
NV12 -
Generalize for other YUV formats (see https://github.com/nyorain/wlroots/blob/vulkan3-ycbcr/render/vulkan/pixel_format.c#L57) -
Add support for shm buffers