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

@ -608,4 +608,12 @@ bool wlr_render_texture_pass_is_vk(const struct wlr_render_texture_pass *texture
struct wlr_vk_render_texture_pass *wlr_vk_render_texture_pass_from_pass(
const struct wlr_render_texture_pass *texture_pass);
struct wlr_vk_render_submit_pass {
struct wlr_render_submit_pass base;
};
bool wlr_render_submit_pass_is_vk(const struct wlr_render_submit_pass *submit_pass);
struct wlr_vk_render_submit_pass *wlr_vk_render_submit_pass_from_pass(
struct wlr_render_submit_pass *submit_pass);
#endif // RENDER_VULKAN_H