render: introduce wlr_render_texture_pass

Split texture rendering out of wlr_render_pass and introduce a
dedicated wlr_render_texture_pass interface.

Remove the add_texture hook from wlr_render_pass_impl and route
texture rendering through renderer->texture_pass instead.
This commit is contained in:
YaoBing Xiao 2026-03-13 12:36:51 +08:00
parent 33a27b055c
commit fee962af36
11 changed files with 222 additions and 8 deletions

View file

@ -54,6 +54,7 @@ void wlr_renderer_destroy(struct wlr_renderer *r) {
assert(wl_list_empty(&r->events.lost.listener_list));
wlr_render_rect_pass_destroy(r->rect_pass);
wlr_render_texture_pass_destroy(r->texture_pass);
if (r->impl && r->impl->destroy) {
r->impl->destroy(r);
} else {