aboutsummaryrefslogtreecommitdiff
path: root/include/render
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-06-16 19:20:03 -0400
committerAlexander Orzechowski <alex@ozal.ski>2023-06-16 19:20:03 -0400
commit9d31372930eb061e1a5f43fa7e0cb27e2ffa197a (patch)
tree01eccc97fc146025ec7a77e0b82f4282e3739d9d /include/render
parent97fdd57eb2ae4b9c076430fa5293c60a83f07447 (diff)
render/vulkan: Handle quad pipeline through generic pipeline path
Diffstat (limited to 'include/render')
-rw-r--r--include/render/vulkan.h11
1 files changed, 9 insertions, 2 deletions
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;