diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-11-30 19:56:54 -0500 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-11-30 19:56:54 -0500 |
commit | 09f16b2a9c43cd4901dfbfe3853c266d32fc44ba (patch) | |
tree | 7da532ea82c461575c6cd83a44496cea669ca842 /include | |
parent | e7055b484085765bb4872ffbe3ccce18d16a129b (diff) |
render/vulkan: Implement texture_read_pixels
Diffstat (limited to 'include')
-rw-r--r-- | include/render/vulkan.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; |