From 7a42392da2957e9c1ef0395d7a52da25c170fbbf Mon Sep 17 00:00:00 2001 From: David96 Date: Thu, 13 Oct 2022 10:48:05 +0200 Subject: render/vulkan: add caching to vulkan_read_pixels --- include/render/vulkan.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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. -- cgit v1.2.3