From 8af00d5534998dbb53a60c2b0a1ab59a51d5cdf5 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Sun, 28 May 2023 14:53:26 -0400 Subject: renderer/gles2: Implement render pass interface --- include/render/gles2.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/render/gles2.h b/include/render/gles2.h index e4befc88..619566fb 100644 --- a/include/render/gles2.h +++ b/include/render/gles2.h @@ -112,6 +112,11 @@ struct wlr_gles2_texture { struct wlr_addon buffer_addon; }; +struct wlr_gles2_render_pass { + struct wlr_render_pass base; + struct wlr_gles2_buffer *buffer; + float projection_matrix[9]; +}; bool is_gles2_pixel_format_supported(const struct wlr_gles2_renderer *renderer, const struct wlr_gles2_pixel_format *format); @@ -135,4 +140,6 @@ void push_gles2_debug_(struct wlr_gles2_renderer *renderer, #define push_gles2_debug(renderer) push_gles2_debug_(renderer, _WLR_FILENAME, __func__) void pop_gles2_debug(struct wlr_gles2_renderer *renderer); +struct wlr_gles2_render_pass *begin_gles2_buffer_pass(struct wlr_gles2_buffer *buffer); + #endif -- cgit v1.2.3