diff options
author | David96 <david@hameipe.de> | 2022-10-13 10:48:05 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-11-04 09:13:48 +0000 |
commit | 7a42392da2957e9c1ef0395d7a52da25c170fbbf (patch) | |
tree | e79d420468bce584f82878b53943ef16e27baae8 /include | |
parent | 05454618cd2d49fb3a5f0c560b0d2c455cf32467 (diff) |
render/vulkan: add caching to vulkan_read_pixels
Diffstat (limited to 'include')
-rw-r--r-- | include/render/vulkan.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/render/vulkan.h b/include/render/vulkan.h index 5157e918..e87c564c 100644 --- a/include/render/vulkan.h +++ b/include/render/vulkan.h @@ -189,6 +189,14 @@ struct wlr_vk_renderer { bool recording; struct wl_list buffers; // type wlr_vk_shared_buffer } stage; + + struct { + bool initialized; + uint32_t drm_format; + uint32_t width, height; + VkImage dst_image; + VkDeviceMemory dst_img_memory; + } read_pixels_cache; }; // Creates a vulkan renderer for the given device. |