Commit Graph

862 Commits

Author SHA1 Message Date
bors[bot]
6d08986874 [rs] Merge #859
859: Fix typos - it's -> its r=cwfitzgerald a=ashpil

As I was reading the documentation, I found an instance where "it's" should actually be "its", as it is used as a possessive, not a contraction. I fixed that and `grep`ed for other instances, of which I found one and fixed as well.

Co-authored-by: ashpil <shpilenok2001@gmail.com>
2021-04-15 16:49:12 +00:00
ashpil
c4fdcbc190 [rs] Fix typos it's -> its 2021-04-15 12:39:16 -04:00
bors[bot]
9f812f3884 [rs] Merge #858
858: Update blend APIs r=kvark a=kvark

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

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-04-15 15:49:11 +00:00
Dzmitry Malyshau
b14215f468 [rs] Update blend APIs 2021-04-15 11:48:42 -04:00
bors[bot]
9c5e0eb5b8 [rs] Merge #857
857: updated wgpu with more copyable types r=kvark a=adamnemecek



Co-authored-by: adamnemecek <adamnemecek@gmail.com>
2021-04-14 20:42:37 +00:00
adamnemecek
9f6bfb2bab [rs] Updated wgpu version 2021-04-14 13:26:26 -07:00
Aaron Housh
ef4b2dd079 [rs] Add map alignment from wgpu-types (#853)
* Add map alignment, and fix staging belt aligning to it instead for validations

* bump wgpu versions
2021-04-13 09:44:59 -04:00
bors[bot]
2d5647f6d5 [rs] Merge #855
855: Remove comment about `Vec::remove_item` r=kvark a=Pat-Lafon

Sadly, `Vec::remove_item` was an unstable method that was deprecated and has now been removed.

https://github.com/rust-lang/rust/pull/80972

This pr removes a comment suggesting to use `Vec::remove_item` when it stabilizes.

Co-authored-by: Patrick LaFontaine <32135464+Pat-Lafon@users.noreply.github.com>
2021-04-13 05:23:42 +00:00
Patrick LaFontaine
9b67955046 [rs] Remove comment about Vec::remove_item 2021-04-13 00:01:17 -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]
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
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]
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
Dzmitry Malyshau
756ea0e51f [rs] Update wgpu with depth clamping API changes 2021-04-05 23:27:53 -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]
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]
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]
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]
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]
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
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]
8d30098db8 [rs] Merge #824
824: make all labels use `wgpu::Label` r=kvark a=LU15W1R7H

This PR does a very minor change.

It replaces all occurences of `label: Option<'a str>` with `label: crate::Label`,
making the usage consistent all across the API.

This doesn't bring any benefit other than consistency.

I hope to have catched every occurance.


Co-authored-by: Luis Wirth <lwirth2000@gmail.com>
2021-03-30 18:48:24 +00:00
Luis Wirth
632f828eda [rs] make all labels use wgpu::Label
replace all occurences of `label: Option<'a str>` with `label: crate::Label`
2021-03-30 18:16:08 +02:00
bors[bot]
b0bf790a17 [rs] Merge #823
823: Fix crash-on-resize in skybox example r=kvark a=danwilhelm

Problem: Skybox example currently crashes on resize. 
- Solution: Now, recreates depth texture on resize event.
---
Problem: Shadow example currently duplicates texture creation code on resize. 
- Solution: Now, shadow is refactored identically to skybox & water examples -- minimizes code duplication, makes examples more similar.

Co-authored-by: Dan Wilhelm <dan@danwilhelm.com>
2021-03-30 03:55:48 +00:00
Dan Wilhelm
144bffb1a3 [rs] Refactor texture creation for shadow 2021-03-29 20:10:20 -07:00
bors[bot]
10dbb8746e [rs] Merge #819 #822
819: Boost texels alpha channel in cube example. r=kvark a=VincentFTS

Permits to have a good rendering for WebGL.

822: Update wasm-bindgen and web-sys to latest r=kvark a=grovesNL

#821 for `master`

On `master` it should be ok to update wasm-bindgen and web-sys, so we don't need to fix syn's version

Co-authored-by: VincentFTS <platforms@ftsoftware.fr>
Co-authored-by: Joshua Groves <josh@joshgroves.com>
2021-03-30 02:25:17 +00:00
Dan Wilhelm
96d9a87817 [rs] Recreate texture on resize for skybox 2021-03-29 19:24:00 -07:00
Joshua Groves
aa3792a68f [rs] Update wasm-bindgen and web-sys to latest 2021-03-29 22:24:32 -02:30
bors[bot]
ae880cbb93 [rs] Merge #815
815: Add missing re-exports r=kvark a=cwfitzgerald

Missed a couple wgt types.

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2021-03-26 20:21:13 +00:00
Connor Fitzgerald
2fd1047045 [rs] Add missing re-exports 2021-03-26 15:51:11 -04:00
VincentFTS
d81061eca8 [rs] Boost texels alpha channel in cube example.
Permits to have a good rendering for WebGL.
2021-03-26 18:43:45 +01:00
bors[bot]
e07a7cb539 [rs] Merge #814
814: Update to latest wgpu, naga, gfx. r=kvark a=Gordon-F

Update to latest wgpu, naga, gfx and enable `EXPERIMENTAL_TRANSLATION` with GL backend for `boids`, `cube` and `hello-compute`.

Co-authored-by: Gordon-F <ishaposhnik@icloud.com>
2021-03-25 23:54:46 +00:00
Gordon-F
6485e81f4b [rs] Enable EXPERIMENTAL_TRANSLATION with GL backend for some examples 2021-03-25 22:11:51 +03:00
Gordon-F
6d62cc5bc3 [rs] Update to latest wgpu, naga, gfx. 2021-03-25 21:46:35 +03:00
bors[bot]
d8cbb8615a [rs] Merge #813
813: Fix dropping for command encoders r=grovesNL a=kvark

We weren't dropping them properly, and since the ID is just an obfuscated `Box<RealStuff>` that made the contents leak.

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-03-25 03:29:02 +00:00
Dzmitry Malyshau
17e95abfe0 [rs] Fix dropping for command encoders 2021-03-24 22:34:00 -04:00
bors[bot]
95aa26dc60 [rs] Merge #811
811: Update to latest wgpu-{core,types} r=kvark a=grovesNL



Co-authored-by: Joshua Groves <josh@joshgroves.com>
2021-03-24 02:43:47 +00:00
Joshua Groves
e65ef710a5 [rs] Update to latest wgpu-{core,types} 2021-03-24 00:00:16 -02:30
Pâris DOUADY
39e1835f72 [rs] Passthrough cross feature to wgpu-core (#810)
* Passthrough cross feature to wgpu-core

Hopefully it can even be removed when `naga` is more mature. :-)

* remove unconditional cross for wgc
2021-03-23 13:01:01 -04:00