diff options
author | Simon Ser <contact@emersion.fr> | 2023-05-05 11:54:57 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-05-24 08:58:59 +0000 |
commit | 5ea0eb3468a99a3c33c40c568bfb72b7ec184d21 (patch) | |
tree | 473502aa80e1516edc72e51d123b2be9ba8fc25a /include/render | |
parent | fd3876167659c254062df1cafb9303f0280bcd33 (diff) |
render/vulkan: add vulkan_get_pipeline_layout()
Will make it easier to add more pipeline layouts for other YCbCr
formats.
Diffstat (limited to 'include/render')
-rw-r--r-- | include/render/vulkan.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/render/vulkan.h b/include/render/vulkan.h index 34ca8ade..8eab7a9a 100644 --- a/include/render/vulkan.h +++ b/include/render/vulkan.h @@ -297,6 +297,9 @@ struct wlr_vk_format_props *vulkan_format_props_from_drm( struct wlr_vk_device *dev, uint32_t drm_format); struct wlr_vk_renderer *vulkan_get_renderer(struct wlr_renderer *r); +struct wlr_vk_pipeline_layout *vulkan_get_pipeline_layout(struct wlr_vk_renderer *renderer, + const struct wlr_vk_format *format); + // State (e.g. image texture) associated with a surface. struct wlr_vk_texture { struct wlr_texture wlr_texture; @@ -306,6 +309,7 @@ struct wlr_vk_texture { VkImage image; VkImageView image_view; const struct wlr_vk_format *format; + struct wlr_vk_pipeline_layout *pipeline_layout; VkDescriptorSet ds; struct wlr_vk_descriptor_pool *ds_pool; struct wlr_vk_command_buffer *last_used_cb; // to track when it can be destroyed |