aboutsummaryrefslogtreecommitdiff
path: root/include/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-12-07 11:33:45 +0100
committerSimon Ser <contact@emersion.fr>2023-04-25 17:25:10 +0200
commit471249ae4f84f3f34877a1dbf20b94ba0cb0a9f0 (patch)
treea7b3f4f0ffb9ef9a0fe66c41850ac7666a8f67c1 /include/render
parent4a1ad32534e1a5f53a066d0b546f5f979a9c5b5e (diff)
render/pass: add legacy render pass implementation
Add a render pass implementation which leverages the legacy rendering API. This is helpful during the migration.
Diffstat (limited to 'include/render')
-rw-r--r--include/render/pass.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/render/pass.h b/include/render/pass.h
new file mode 100644
index 00000000..2cbd6db7
--- /dev/null
+++ b/include/render/pass.h
@@ -0,0 +1,9 @@
+#ifndef RENDER_PASS_H
+#define RENDER_PASS_H
+
+#include <wlr/render/interface.h>
+
+struct wlr_render_pass *begin_legacy_buffer_render_pass(struct wlr_renderer *renderer,
+ struct wlr_buffer *buffer);
+
+#endif