render: introduce wlr_render_submit_pass

Move pass submission out of wlr_render_pass_impl and introduce
wlr_render_submit_pass, mirroring the existing rect/texture pass
abstractions.
This commit is contained in:
YaoBing Xiao 2026-03-13 13:50:09 +08:00
parent fee962af36
commit fb6cfcf809
11 changed files with 299 additions and 17 deletions

View file

@ -189,4 +189,12 @@ bool wlr_render_texture_pass_is_gles2(const struct wlr_render_texture_pass *text
struct wlr_gles2_render_texture_pass *wlr_gles2_render_texture_pass_from_pass(
struct wlr_render_texture_pass *texture_pass);
struct wlr_gles2_render_submit_pass {
struct wlr_render_submit_pass base;
};
bool wlr_render_submit_pass_is_gles2(const struct wlr_render_submit_pass *submit_pass);
struct wlr_gles2_render_submit_pass *wlr_gles2_render_submit_pass_from_pass(
struct wlr_render_submit_pass *submit_pass);
#endif