From 65bbbbbf0c3d6844cee3c4e294d0ba07e1f82211 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 19 Jul 2023 09:19:29 +0200 Subject: render/vulkan: de-duplicate VkImageUsageFlags The flags passed to vkCreateImage() must match the flags used when querying formats. Make this clearer by using the same variable. --- include/render/vulkan.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/render') diff --git a/include/render/vulkan.h b/include/render/vulkan.h index c4766e73..9f9f7b2a 100644 --- a/include/render/vulkan.h +++ b/include/render/vulkan.h @@ -90,6 +90,8 @@ struct wlr_vk_format { bool is_ycbcr; }; +extern const VkImageUsageFlags vulkan_render_usage, vulkan_shm_tex_usage, vulkan_dma_tex_usage; + // Returns all known format mappings. // Might not be supported for gpu/usecase. const struct wlr_vk_format *vulkan_get_format_list(size_t *len); -- cgit v1.2.3