render: document wlr_renderer_bind_buffer

This commit is contained in:
Simon Ser 2021-01-14 12:16:51 +01:00
parent 02a086599c
commit 5642b880c3
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,13 @@
#include <wlr/render/wlr_renderer.h>
/**
* 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