aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/render/vulkan.h1
-rw-r--r--include/wlr/render/vulkan.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/render/vulkan.h b/include/render/vulkan.h
index 716c5ace..5dfc3d37 100644
--- a/include/render/vulkan.h
+++ b/include/render/vulkan.h
@@ -253,6 +253,7 @@ struct wlr_vk_texture {
bool dmabuf_imported;
bool owned; // if dmabuf_imported: whether we have ownership of the image
bool transitioned; // if dma_imported: whether we transitioned it away from preinit
+ bool has_alpha; // whether the image is has alpha channel
struct wl_list foreign_link; // wlr_vk_renderer.foreign_textures
struct wl_list destroy_link; // wlr_vk_renderer.destroy_textures
struct wl_list link; // wlr_vk_renderer.textures
diff --git a/include/wlr/render/vulkan.h b/include/wlr/render/vulkan.h
index aec3a3c2..04c877e4 100644
--- a/include/wlr/render/vulkan.h
+++ b/include/wlr/render/vulkan.h
@@ -32,6 +32,7 @@ bool wlr_texture_is_vk(struct wlr_texture *texture);
void wlr_vk_texture_get_image_attribs(struct wlr_texture *texture,
struct wlr_vk_image_attribs *attribs);
+bool wlr_vk_texture_has_alpha(struct wlr_texture *texture);
#endif