diff options
author | Simon Ser <contact@emersion.fr> | 2023-05-05 12:51:13 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-05-24 08:58:59 +0000 |
commit | c7ae9dfaf8642119e363d1719facdfdd7c510044 (patch) | |
tree | 32ee247f0c3b51574a8287a9bb98cb45ecf48309 /include/render | |
parent | 50b494d0f9d8eb69c00c7791a56864d0dd063143 (diff) |
render/vulkan: generalize YCbCr format support
Diffstat (limited to 'include/render')
-rw-r--r-- | include/render/vulkan.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/render/vulkan.h b/include/render/vulkan.h index 8eab7a9a..c50aefb2 100644 --- a/include/render/vulkan.h +++ b/include/render/vulkan.h @@ -150,9 +150,10 @@ struct wlr_vk_render_format_setup { VkPipeline tex_identity_pipe; VkPipeline tex_srgb_pipe; - VkPipeline tex_nv12_pipe; VkPipeline quad_pipe; VkPipeline output_pipe; + + VkPipeline *tex_ycbcr_pipelines; // same length as wlr_vk_renderer.ycbcr_pipeline_layouts }; // Renderer-internal represenation of an wlr_buffer imported for rendering. @@ -207,7 +208,8 @@ struct wlr_vk_renderer { VkShaderModule output_module; struct wlr_vk_pipeline_layout default_pipeline_layout; - struct wlr_vk_pipeline_layout nv12_pipeline_layout; + size_t ycbcr_pipeline_layouts_len; + struct wlr_vk_pipeline_layout *ycbcr_pipeline_layouts; // for blend->output subpass VkPipelineLayout output_pipe_layout; |