From 9d31372930eb061e1a5f43fa7e0cb27e2ffa197a Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Fri, 16 Jun 2023 19:20:03 -0400 Subject: render/vulkan: Handle quad pipeline through generic pipeline path --- include/render/vulkan.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'include/render') diff --git a/include/render/vulkan.h b/include/render/vulkan.h index a6b72292..76397aae 100644 --- a/include/render/vulkan.h +++ b/include/render/vulkan.h @@ -142,9 +142,17 @@ enum wlr_vk_texture_transform { WLR_VK_TEXTURE_TRANSFORM_SRGB = 1, }; +enum wlr_vk_shader_source { + WLR_VK_SHADER_SOURCE_TEXTURE, + WLR_VK_SHADER_SOURCE_SINGLE_COLOR, +}; + struct wlr_vk_pipeline_key { - enum wlr_vk_texture_transform texture_transform; + enum wlr_vk_shader_source source; struct wlr_vk_pipeline_layout *layout; + + // only used if source is texture + enum wlr_vk_texture_transform texture_transform; }; struct wlr_vk_pipeline { @@ -162,7 +170,6 @@ struct wlr_vk_render_format_setup { VkFormat render_format; // used in renderpass VkRenderPass render_pass; - VkPipeline quad_pipe; VkPipeline output_pipe; struct wlr_vk_renderer *renderer; -- cgit v1.2.3