parasyte / pixels

A tiny hardware-accelerated pixel frame buffer. 🦀
https://docs.rs/pixels
MIT License
1.82k stars 123 forks source link

feat: upgrade wgpu to 22.0 #402

Open clearlysid opened 1 month ago

clearlysid commented 1 month ago

wgpu versions now use the x.0 rather than the 0.x scheme ie.. 22.0 is the new 0.22.

Unfortunately, Cargo treats these as very different dependencies and versions. This causes the pixels crate to become incompatible with projects that are using a newer version of wgpu for something else.

In this PR, I've upgraded the wgpu version to latest and fixed the relevant API calls with newer args that the compiler mandated (just defaults for now).

Feel free to merge this if you feel this is relevant. Thanks for the great project! 🙌

parasyte commented 1 month ago

Yeah, wgpu still needs to be updated. This is a pretty good start, thank you!

I'm holding off any other updates to wgpu until the next release (pixels 0.15) with support for wgpu 0.19. Which still needs some work as discussed in #400.

But I'm glad this has already been started!

clearlysid commented 1 month ago

Makes total sense!