From 5642b880c39a71666d9f76d4606e2e227e2030a2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 14 Jan 2021 12:16:51 +0100 Subject: [PATCH] render: document wlr_renderer_bind_buffer --- include/render/wlr_renderer.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/render/wlr_renderer.h b/include/render/wlr_renderer.h index 8e113ac8..9e41f86f 100644 --- a/include/render/wlr_renderer.h +++ b/include/render/wlr_renderer.h @@ -3,6 +3,13 @@ #include +/** + * Bind a buffer to the renderer. + * + * All subsequent rendering operations will operate on the supplied buffer. + * After rendering operations are done, the caller must unbind a buffer by + * calling wlr_renderer_bind_buffer with a NULL buffer. + */ bool wlr_renderer_bind_buffer(struct wlr_renderer *r, struct wlr_buffer *buffer); /** * Get the DMA-BUF formats supporting rendering usage. Buffers allocated with