1320: Update naga to gfx-21 r=kvark a=kvark
**Connections**
See https://github.com/gfx-rs/gfx/pull/3720
**Description**
Brings a number of Naga fixes.
**Testing**
wgpu-rs examples
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
1313: Don't panic on change_extend errors r=cwfitzgerald a=kvark
**Connections**
???
**Description**
We used to have leftover `unwrap()` for extending the usages of render targets.
Now these are all routed via `UsageConflicts` into actual errors.
**Testing**
Untested
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
1311: Update gfx with the cmd buf freeing fix r=kvark a=kvark
**Connections**
Includes https://github.com/gfx-rs/gfx/pull/3717
**Description**
just an update
**Testing**
nopes
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
1310: Updated `gpu-alloc` to rev 2cd1ad6 r=kvark a=francesco-cattoglio
**Connections**
Updated gpu-alloc to include the commit that fixed https://github.com/zakarumych/gpu-alloc/issues/41
**Description**
It is a simple update of a dependency.
**Testing**
I have not tested this change, I just made sure that everything was still compiling correctly.
<!--
Non-trivial functional changes would need to be tested through:
- [wgpu-rs](https://github.com/gfx-rs/wgpu-rs) - test the examples.
- [wgpu-native](https://github.com/gfx-rs/wgpu-native/) - check the generated C header for sanity.
Ideally, a PR needs to link to the draft PRs in these projects with relevant modifications.
See https://github.com/gfx-rs/wgpu/pull/666 for an example.
If you can add a unit/integration test here in `wgpu`, that would be best.
-->
Co-authored-by: Franz <francesco.cattoglio@gmail.com>
1309: Move depth clamping to primitive state r=kvark a=kvark
**Connections**
Matches https://github.com/gpuweb/gpuweb/pull/1583
**Description**
There are valid cases where we'd want the depth clamping happening without any depth/stencil attachment or state.
**Testing**
Untested
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
1305: Don't flip SPIR-V coordinate space on input r=kvark a=kvark
**Connections**
fixes https://github.com/gfx-rs/wgpu-rs/issues/842
**Description**
The SPV-in by default changes the coordinate space, but for WebGPU we don't want it.
**Testing**
Untested...
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
1297: Downlevel Infrastructure and Validate Compute Shader Presence r=kvark a=cwfitzgerald
**Connections**
Provides the core infrastructure for #1244.
**Description**
Nothing too crazy in here. Includes the infrastructure and the beginnings of validation. Some of the properties can't easily be verified, but I will follow up with the rest of the low-hanging fruit in another PR.
**Testing**
Testing on https://github.com/gfx-rs/wgpu-rs/pull/829.
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
1291: Add color blend modes r=kvark a=cwfitzgerald
Continuation of #1289, because apparently you can't re-open an accidentally closed pull request if you force pushed...
Should be GTG.
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
1281: Rename `level_count` to `mip_level_count` r=kvark a=grovesNL
**Description**
This PR renames `level_count` to `mip_level_count` on `TextureViewDescriptor`. This follows the naming in the specification, located at https://gpuweb.github.io/gpuweb/#texture-view-creation
**Testing**
`cargo build` and `cargo test` only, naming changes will be made downstream in wgpu-rs too.
Co-authored-by: Joshua Groves <josh@joshgroves.com>
1276: Align create_swap_chain function signature r=cwfitzgerald a=kvark
**Connections**
Follow-up to #1034
**Description**
Swapchains are a bit special. Browsers don't use wgpu-core's swapchains, so we never bothered to convert them into the error model. But we still need this for Deno and webgpu-headers.
**Testing**
Untested, but also harmless
Co-authored-by: Dzmitry Malyshau <kvark@fastmail.com>
1280: Rename color/depth attachments to match spec r=kvark a=grovesNL
**Description**
- Rename `ColorAttachmentDescriptor` to `RenderPassColorAttachment` (https://gpuweb.github.io/gpuweb/#color-attachments)
- Rename `DepthStencilAttachmentDescriptor` to `RenderPassDepthStencilAttachment` (https://gpuweb.github.io/gpuweb/#depth-stencil-attachments)
- Rename `attachment` fields on both attachments to `view`
**Testing**
None (just `cargo build`) because the renaming downstream should be trivial.
Co-authored-by: Joshua Groves <josh@joshgroves.com>
- Rename `ColorAttachmentDescriptor` to `RenderPassColorAttachment`
- Rename `DepthStencilAttachmentDescriptor` to `RenderPassDepthStencilAttachment`
- Rename `attachment` fields on both attachments to `view`
1279: Fix some typos r=kvark a=grovesNL
**Description**
Fix a few small typos in doc comments
**Testing**
None
Co-authored-by: Joshua Groves <josh@joshgroves.com>
1278: Rename copy views and layout to match spec r=kvark a=grovesNL
**Description**
Match the specification naming changes from https://github.com/gpuweb/gpuweb/pull/1375
**Testing**
None because the changes downstream to wgpu-rs and wgpu-native should be trivial (renaming only)
Co-authored-by: Joshua Groves <josh@joshgroves.com>
1275: rows_per_image & rows_per_image are now optional r=kvark a=Wumpf
Fixes#988
Was surprisingly hard, hope it's correct; testing could be more extensive...
Ideas for more elegant handling very welcome.
**Testing**
Tested against wgpu-rs samples
Co-authored-by: Andreas Reich <r_andreas2@web.de>