684: First step for WebGL support. r=grovesNL a=VincentFTS
This permits to test WebGL backend in Wgpu-rs.
Next step is to test examples to make them work with WebGL backend !
Co-authored-by: Vincent Jousse <contact@ftsoftware.fr>
688: Use only 1 and 4 samples for msaa-line example r=kvark a=cwfitzgerald
As 1 and 4 samples are the only universally supported values, switch the msaa-line example to only using them. In the future where users can determine the supported sample counts. See https://github.com/gfx-rs/wgpu/issues/804
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
680: Update wgpu with Naga fixes and OpenGL backend r=cwfitzgerald a=kvark
This PR makes it easier to build wgpu-rs on Linux, since it doesn't require pkg-config into EGL.
Fixes#607
Fixes https://github.com/gfx-rs/wgpu/issues/1063
Co-authored-by: Dzmitry Malyshau <kvark@fastmail.com>
672: Add write_whole_texture_mips Helper r=kvark a=cwfitzgerald
Adds a helper in QueueExt for uploading an entire texture with all of its mips. Name very bikeshedable.
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
664: Integrate ETC and ASTC textures in Skybox example r=kvark a=cwfitzgerald
Depends on https://github.com/gfx-rs/wgpu/pull/1074
Converts skybox example to mip-mapped files in:
- Bgra8
- Bc1
- ETC2
- ASTC4x4
Looks quite good now with mipmapping and trilinear filtering even at small resolutions.
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
659: Temporarily skip debug labels for web backend r=kvark a=grovesNL
Debug labels aren't currently supported by gecko. We can re-enable these later.
Co-authored-by: Joshua Groves <josh@joshgroves.com>
655: Update to gfx from master r=kvark a=kvark
Depends on https://github.com/gfx-rs/wgpu/pull/1057
Expect the unexpected wrt the gpu-descriptor, which hasn't been tested much!
Also refactors the CI a bit to reduce the number of jobs by moving out `wasm` into a separate job.
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
654: Use web-sys release instead of patch r=kvark a=grovesNL
`patch` isn't necessary anymore because there's a new release of web-sys and wasm-bindgen
Fixes#637
Co-authored-by: Joshua Groves <josh@joshgroves.com>
639: Make BindingResource::TextureViewArray more flexible (addresses #588) r=grovesNL a=98devin
Fixes#588
Rather than having a field of `&[TextureView]`, which requires either keeping all TextureViews in a vector in the first place or moving them into a temporary vector or array and back, use `&[&TextureView]` instead. Obviates the need for hacky workarounds if you keep your TextureViews in non-contiguous structs, maps, or can't move them, etc.
For those using a vector previously, the required transformation is merely `.iter().collect()`.
Co-authored-by: Devin Hill <98devin@gmail.com>