Commit Graph

9013 Commits

Author SHA1 Message Date
Dzmitry Malyshau
7a17da195c [msl] use uint behind metal namespace only 2021-03-31 23:01:19 -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
bors[bot]
be16c7f2f2 Merge #1294
1294: Update naga to gfx-19 r=kvark a=Gordon-F

Just a naga update. Also fix https://github.com/gfx-rs/wgpu/issues/1293.

Co-authored-by: Gordon-F <ishaposhnik@icloud.com>
2021-03-30 23:34:59 +00:00
Gordon-F
7fc70bf349 Force-enable EXPERIMENTAL_TRANSLATION flag when running without cross feature 2021-03-31 02:01:43 +03:00
Gordon-F
124d5e3a7c Update naga to gfx-19 2021-03-31 02:00:48 +03:00
Gordon-F
80a8243953 Fix Uint/Sint type conversion 2021-03-30 18:13:57 -04:00
Dzmitry Malyshau
7be524592a [msl] fix mutability of function parameters 2021-03-30 15:43:53 -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
bors[bot]
569f87ebda Merge #1291
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>
2021-03-30 17:39:26 +00:00
Connor Fitzgerald
0616a08c65 Add color blend modes 2021-03-30 13:37:43 -04: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
Dzmitry Malyshau
fc7b79ddff [msl-out] make EntryPointError cloneable 2021-03-30 10:08:36 -04:00
Dzmitry Malyshau
c41f050312 [wgsl-in] ability to take a pointer to something 2021-03-30 01:01:28 -04:00
Dzmitry Malyshau
baccfc68f5 [msl] fix constant array initialization 2021-03-30 00:38:00 -04: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
Dzmitry Malyshau
057fa336a8 [spv-in] derivative ops 2021-03-29 11:07:33 -04:00
Dzmitry Malyshau
f06583ca7d [spv-in] change const indexes to signed int 2021-03-29 11:07:33 -04:00
Dzmitry Malyshau
ca6876b7a0 Validate math functions 2021-03-29 11:06:41 -04:00
bors[bot]
456525d9c7 Merge #1290
1290: Update to latest gpu-alloc r=kvark a=Gordon-F



Co-authored-by: Igor Shaposhnik <Gordon-F@users.noreply.github.com>
2021-03-29 13:38:13 +00:00
Igor Shaposhnik
6097421647 Update to latest gpu-alloc 2021-03-29 09:33:40 +00:00
Dzmitry Malyshau
50059740f7 [msl] prefix lod options with metal namespace 2021-03-27 10:58:01 -04:00
Dzmitry Malyshau
f2155d49d1 [msl] fix initialization of arrayed members, enable METAL snapshot of quad-vert 2021-03-27 10:58:01 -04:00
Dzmitry Malyshau
e47ff2dc26 [spv-in] support output interface block 2021-03-27 10:52:00 -04:00
Dzmitry Malyshau
c55bdf57bf [wgsl] don't clone statements 2021-03-27 00:31:21 -04:00
Dzmitry Malyshau
ba055bfbad Fix validation of constant offset expression 2021-03-27 00:29:48 -04:00
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
Dzmitry Malyshau
00f4c07609 [msl] fix Select on vectors 2021-03-26 09:56:29 -04:00
Dzmitry Malyshau
a090afa3f5 [msl] write scalar constants before the types 2021-03-26 09:56:29 -04:00
Dzmitry Malyshau
bf193bb535 [msl] don't put expressions in double scopes 2021-03-26 09:56:29 -04:00
Dzmitry Malyshau
2b163dc2a1 [msl] fix pointer address spaces, private forwarding and initialization 2021-03-26 09:56:29 -04: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
Dzmitry Malyshau
372b2d314e Adjust lints for Rust clippy 1.51 2021-03-25 12:34:25 -04:00
Dzmitry Malyshau
7d042337e2 Align the block decoration with SPIR-V, require storage buffers 2021-03-25 12:34:25 -04:00