aboutsummaryrefslogtreecommitdiff
path: root/include/render
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-05-28 14:53:26 -0400
committerAlexander Orzechowski <alex@ozal.ski>2023-05-28 14:53:34 -0400
commit8af00d5534998dbb53a60c2b0a1ab59a51d5cdf5 (patch)
tree5ee4a196351614f25960b0ca33d04c22fa7c80f7 /include/render
parentb1d26ed47bfd3725100bde10c20b6ee9b1045e65 (diff)
renderer/gles2: Implement render pass interface
Diffstat (limited to 'include/render')
-rw-r--r--include/render/gles2.h7
1 files changed, 7 insertions, 0 deletions
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