From 982498fab3c4d0aee9b29312559cbdd317c563a1 Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Fri, 23 Apr 2021 13:51:05 -0400 Subject: render: introduce renderer_get_render_buffer_caps --- include/render/wlr_renderer.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/render') diff --git a/include/render/wlr_renderer.h b/include/render/wlr_renderer.h index 8298bab7..d09c20b3 100644 --- a/include/render/wlr_renderer.h +++ b/include/render/wlr_renderer.h @@ -21,5 +21,11 @@ bool wlr_renderer_bind_buffer(struct wlr_renderer *r, struct wlr_buffer *buffer) */ const struct wlr_drm_format_set *wlr_renderer_get_render_formats( struct wlr_renderer *renderer); +/** + * Get the supported buffer capabilities. + * + * This functions returns a bitfield of supported wlr_buffer_cap. + */ +uint32_t renderer_get_render_buffer_caps(struct wlr_renderer *renderer); #endif -- cgit v1.2.3