WillPower3309 / swayfx

SwayFX: Sway, but with eye candy!
MIT License
1.18k stars 48 forks source link

Move to wlr_buffer and wlr_texture #248

Closed ErikReider closed 2 months ago

ErikReider commented 7 months ago

This will make it easier for us to rebase on top of the upcoming sway 1.9 release

WillPower3309 commented 6 months ago

might be a bit confused - I thought the goal here was to move to wlr_texture and wlr_buffer but it looks like we still use the fx counterparts?

ErikReider commented 6 months ago

might be a bit confused - I thought the goal here was to move to wlr_texture and wlr_buffer but it looks like we still use the fx counterparts?

My understanding is that those structs are generic so that others can implement their own buffers/textures. Wlroots creates wlr_gles2_texture and wlr_gles2_buffer and use those internally for their gles2 backend.

We can get a wlrbuffer/texture from these new fx structs just like the wlr counterparts

ErikReider commented 6 months ago

But I just realized that it doesn't build at the moment due to wlroots not providing the swaychain.h header unless it's a submodule -_-