Commit Graph

2761 Commits

Author SHA1 Message Date
Aaron Housh
c820cc8e73 Add Map Alignment type (#1322)
* Add Map Alignment type

* Fix clippy warnings

* Make buffer_map_async compare range start to MAP_ALIGNMENT
2021-04-12 13:28:46 -04:00
bors[bot]
fc59ea4aba [rs] Merge #851
851: Update naga to gfx-21 r=kvark a=kvark

See https://github.com/gfx-rs/wgpu/pull/1320

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-04-11 05:26:26 +00:00
Dzmitry Malyshau
9bd4b34d5a [rs] Update naga to gfx-21 2021-04-11 01:25:42 -04:00
bors[bot]
27dbf076d5 Merge #1320
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>
2021-04-11 05:17:07 +00:00
Dzmitry Malyshau
1ba95585ba Update naga to gfx-21 2021-04-11 01:07:46 -04:00
bors[bot]
4c61a910fc Merge #1313
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>
2021-04-09 04:36:49 +00:00
bors[bot]
b47b77798b [rs] Merge #847
847: Don't pin web-sys and wasm-bindgen versions r=grovesNL a=RichoDemus

Pinning them forces all downstream dependencies to use exactly this version

The latest release of wgpu has pinned an old version of wasm-bindgen, forcing users to downgrade wasm-bindgen-cli in order to build

Co-authored-by: Richard Tjerngren <git@richodemus.com>
Co-authored-by: RichoDemus <git@richodemus.com>
2021-04-09 02:22:20 +00:00
Dzmitry Malyshau
191f33871b Don't panic on change_extend errors 2021-04-08 12:03:46 -04:00
RichoDemus
46d4492b54 [rs] Use latest version of wasm-bindgen-cli 2021-04-07 18:21:26 +02:00
Richard Tjerngren
244460ed87 [rs] Don't pin web-sys and wasm-bindgen versions
Pinning them forces all downstream dependencies to use exactly this version

The latest release of wgpu has pinned an old version of wasm-bindgen, forcing users to downgrade wasm-bindgen-cli in order to build
2021-04-07 16:06:03 +02:00
bors[bot]
ff5e626bfd Merge #1311
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>
2021-04-06 14:29:47 +00:00
Dzmitry Malyshau
02442bcb5e Update gfx with the cmd buf freeing fix 2021-04-06 10:28:51 -04:00
bors[bot]
a8fc4a3d84 [rs] Merge #845
845: Update wgpu with depth clamping API changes r=kvark a=kvark

Picks up https://github.com/gfx-rs/wgpu/pull/1309

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-04-06 13:40:10 +00:00
bors[bot]
111bb5bec6 Merge #1310
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>
2021-04-06 13:27:07 +00:00
Franz
7a37f07ea0 Updated gpu-alloc to rev 2cd1ad6 2021-04-06 11:16:49 +02:00
Dzmitry Malyshau
756ea0e51f [rs] Update wgpu with depth clamping API changes 2021-04-05 23:27:53 -04:00
bors[bot]
e430cf4bcc Merge #1309
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>
2021-04-05 20:02:40 +00:00
Dzmitry Malyshau
4d324bc38d Move depth clamping to primitive state 2021-04-05 16:01:23 -04:00
bors[bot]
2448307a25 [rs] Merge #844
844: Update wgpu to the cross feature fix r=kvark a=kvark



Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-04-05 05:13:48 +00:00
Dzmitry Malyshau
4c6bce87d8 [rs] Update wgpu to the cross feature fix 2021-04-05 01:13:13 -04:00
bors[bot]
eef478fc5d Merge #1307
1307: Update gfx with fixed Metal cross feature r=kvark a=kvark

Just another update

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-04-05 04:48:59 +00:00
Dzmitry Malyshau
2e9d9d8267 Update gfx with fixed Metal cross feature 2021-04-05 00:48:17 -04:00
bors[bot]
a474992b72 [rs] Merge #843
843: Update wgpu-core with SPIRV coordinate fix r=kvark a=kvark

See https://github.com/gfx-rs/wgpu/pull/1305
Fixes #842

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-04-04 23:08:31 +00:00
Dzmitry Malyshau
88524d2ff8 [rs] Update wgpu-core with SPIRV coordinate fix 2021-04-04 19:08:03 -04:00
bors[bot]
31f52202c5 Merge #1305
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>
2021-04-04 22:42:24 +00:00
Dzmitry Malyshau
1dddfa6234 Don't flip SPIR-V coordinate space on input 2021-04-04 18:38:56 -04:00
bors[bot]
bb9f3ad990 [rs] Merge #839
839: Update naga to gfx-20 r=kvark a=kvark

See https://github.com/gfx-rs/wgpu/pull/1304

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-04-04 15:36:50 +00:00
Dzmitry Malyshau
b1bbaf38a2 [rs] Update naga to gfx-20 2021-04-04 11:36:13 -04:00
bors[bot]
11666be077 Merge #1304
1304: Update naga to gfx-20 r=kvark a=kvark

See https://github.com/gfx-rs/gfx/pull/3714

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-04-04 15:26:57 +00:00
Dzmitry Malyshau
0bd8526239 Update naga to gfx-20 2021-04-04 11:25:10 -04:00
bors[bot]
8a0bb3327a Merge #1302
1302: removed autocapture from cargo.toml r=cwfitzgerald a=adamnemecek



Co-authored-by: adamnemecek <adamnemecek@gmail.com>
2021-04-02 19:46:35 +00:00
adamnemecek
af8b94c729 removed autocapture 2021-04-02 09:43:38 -07:00
bors[bot]
c45c56934f [rs] Merge #835
835: frame capture r=kvark a=adamnemecek



Co-authored-by: adamnemecek <adamnemecek@gmail.com>
2021-04-01 20:28:21 +00:00
adamnemecek
99eccdff3d [rs] frame capture 2021-04-01 13:25:59 -07:00
bors[bot]
1f9958a88f Merge #1301
1301: framecapture r=kvark a=adamnemecek



Co-authored-by: adamnemecek <adamnemecek@gmail.com>
2021-04-01 19:54:26 +00:00
adamnemecek
d91ad13482 framecapture 2021-04-01 12:51:50 -07:00
bors[bot]
3b8da5d6c2 [rs] Merge #829
829: Add Downlevel Infrastructure r=kvark a=cwfitzgerald

wgpu-rs frontend for https://github.com/gfx-rs/wgpu/pull/1297.

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2021-04-01 15:59:54 +00:00
Connor Fitzgerald
4161cbb893 [rs] Add downlevel infrastructure 2021-04-01 11:53:16 -04:00
bors[bot]
45f890c11c Merge #1297
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>
2021-04-01 15:50:23 +00:00
Connor Fitzgerald
3073a454ff Update to flag-based downlevel bools 2021-04-01 11:48:09 -04:00
bors[bot]
f997e8f9d3 [rs] Merge #826
826: Disable SPIRV-Cross by default r=cwfitzgerald a=kvark



Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-03-31 12:23:28 +00:00
Dzmitry Malyshau
84026d75ee [rs] Disable SPIRV-Cross by default 2021-03-31 08:22:42 -04:00
Connor Fitzgerald
fca72f54f9 Validate compute shader's presence 2021-03-31 01:08:53 -04:00
Connor Fitzgerald
4db9a4522e Add downlevel infrastructure 2021-03-31 01:08:48 -04:00
bors[bot]
4b7211a116 [rs] Merge #827
827: Fixed water example file section in the README.md r=cwfitzgerald a=Dy11on

Fixed the file section in the README.md for the water example, since it now uses wgsl

Co-authored-by: Dy11on <26803229+Dy11on@users.noreply.github.com>
2021-03-31 03:32:05 +00:00
Dy11on
79722cc395 [rs] Fixed water example file section in the README.md 2021-03-30 22:09:25 -04:00
bors[bot]
110efb8fe8 [rs] Merge #763
763: Port the water example shaders to WGSL r=cwfitzgerald a=kvark



Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-03-31 01:39:05 +00:00
Dzmitry Malyshau
49a741a0c6 [rs] Update to gfx-19, port the water example shaders to WGSL 2021-03-30 21:36:49 -04:00
bors[bot]
41f106d7fc Merge #1296
1296: Update gfx to the MSL entry point fix r=kvark a=kvark

See https://github.com/gfx-rs/gfx/pull/3705

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-03-31 01:26:36 +00:00
Dzmitry Malyshau
49c59ec063 Update gfx to the MSL entry point fix 2021-03-30 21:25:40 -04:00