diff options
author | Simon Ser <contact@emersion.fr> | 2023-04-17 15:33:27 +0200 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-05-30 16:18:19 +0000 |
commit | 93a6acae9f1522c08fb0fa1b73de7404ed4016d8 (patch) | |
tree | c0358bbcb12366698c37519f8b2bc4c4ea881d1e /include | |
parent | 95062904c7acc38d2175744ceda399c5b5a12adf (diff) |
output: add wlr_output_begin_render_pass()
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_output.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index f56bd1eb..267e51ef 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -582,6 +582,13 @@ void wlr_output_state_set_buffer(struct wlr_output_state *state, */ bool wlr_output_configure_primary_swapchain(struct wlr_output *output, const struct wlr_output_state *state, struct wlr_swapchain **swapchain); +/** + * Begin a render pass on this output. + * + * Same as wlr_output_attach_render(), but returns a struct wlr_render_pass. + */ +struct wlr_render_pass *wlr_output_begin_render_pass(struct wlr_output *output, + struct wlr_output_state *state, int *buffer_age); /** |