aboutsummaryrefslogtreecommitdiff
path: root/include/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-07-19 09:19:29 +0200
committerSimon Ser <contact@emersion.fr>2023-09-09 23:32:28 +0000
commit65bbbbbf0c3d6844cee3c4e294d0ba07e1f82211 (patch)
treeb97e457c56df26b83a1cb652a337b6d4cf3920f9 /include/render
parentb18a849fc3659e6eaf9c414564b9f733bfe99194 (diff)
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.
Diffstat (limited to 'include/render')
-rw-r--r--include/render/vulkan.h2
1 files changed, 2 insertions, 0 deletions
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);