aboutsummaryrefslogtreecommitdiff
path: root/include/render
diff options
context:
space:
mode:
Diffstat (limited to 'include/render')
-rw-r--r--include/render/vulkan.h8
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.