render/pass: add legacy render pass implementation

Add a render pass implementation which leverages the legacy
rendering API. This is helpful during the migration.
This commit is contained in:
Simon Ser 2022-12-07 11:33:45 +01:00
parent 4a1ad32534
commit 471249ae4f
3 changed files with 143 additions and 1 deletions

9
include/render/pass.h Normal file
View file

@ -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