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>
678: Require labels for ComputePass and RenderPass r=kvark a=infinitesnow
Blocked on https://github.com/gfx-rs/wgpu/pull/1088/https://github.com/gfx-rs/wgpu/pull/1088/ improved labelling, update `wgpu-rs` and examples to match.
Change-Id: I1acc45a3023dfc78b6694bd4a28a0131f07b7ba7
Co-authored-by: Emanuele Dalla Longa <3xplosive.g@gmail.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>
662: API and examples update for index_format r=kvark a=kejor
__Connections__
#608https://github.com/gfx-rs/wgpu/issues/978https://github.com/gfx-rs/wgpu/pull/1019
__Description__
Use new API from 4513fb2b83 where `wgpu_render_pass_set_index_buffer` and `wgpu_render_bundle_set_index_buffer` receive an `index_format` and `VertexStateDescriptor`'s `index_format` is an `Option`. The examples were updated accordingly.
Co-authored-by: kejor <kevinoviedorueda@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>
657: Add EGL to docs action r=kvark a=grovesNL
Looks like we need to install EGL for the docs action to match the regular CI action, see https://github.com/gfx-rs/wgpu-rs/runs/1478040907
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>
649: Adopt the updated bind group entry API r=kvark a=kvark
Depends on https://github.com/gfx-rs/wgpu/pull/1047
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>
635: Staging belt: do not panic by unwrapping send result in recall (fixes#634) r=kvark a=myfreeweb
Co-authored-by: Greg V <greg@unrelenting.technology>