From 09f16b2a9c43cd4901dfbfe3853c266d32fc44ba Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Thu, 30 Nov 2023 19:56:54 -0500 Subject: render/vulkan: Implement texture_read_pixels --- include/render/vulkan.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/render') diff --git a/include/render/vulkan.h b/include/render/vulkan.h index fe29fd5b..90a9c4e7 100644 --- a/include/render/vulkan.h +++ b/include/render/vulkan.h @@ -374,6 +374,12 @@ bool vulkan_sync_render_buffer(struct wlr_vk_renderer *renderer, struct wlr_vk_render_buffer *render_buffer, struct wlr_vk_command_buffer *cb); bool vulkan_sync_foreign_texture(struct wlr_vk_texture *texture); +bool vulkan_read_pixels(struct wlr_vk_renderer *vk_renderer, + VkFormat src_format, VkImage src_image, + uint32_t drm_format, uint32_t stride, + uint32_t width, uint32_t height, uint32_t src_x, uint32_t src_y, + uint32_t dst_x, uint32_t dst_y, void *data); + // State (e.g. image texture) associated with a surface. struct wlr_vk_texture { struct wlr_texture wlr_texture; -- cgit v1.2.3