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] and Dan Wilhelm
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
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] and Igor Shaposhnik
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] and Connor Fitzgerald
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] and Gordon-F
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
bors[bot] and Gordon-F
b7ba481a91
Merge #1282
...
1282: Update naga to gfx-18 r=kvark a=Gordon-F
Same as https://github.com/gfx-rs/gfx/pull/3695 . Just waiting for new naga relese.
Co-authored-by: Gordon-F <ishaposhnik@icloud.com >
2021-03-25 14:01:12 +00:00
Gordon-F
c1f8203f3c
Update naga to gfx-18
2021-03-25 16:59:16 +03:00
Dzmitry Malyshau
e87f57d82c
Fix expression validation check
2021-03-25 09:32:55 -04:00
Dzmitry Malyshau
4fb4133298
[spv-in] fix image array index type to be signed
2021-03-25 09:21:58 -04:00
Dzmitry Malyshau
26f629ccb4
[spv-in] fix image operand iteration, add support for constant offsets
2021-03-25 09:21:58 -04:00
Dzmitry Malyshau
c8bac4b618
[spv-in] convert the shift to unsigned
2021-03-25 09:21:58 -04:00
bors[bot] and Dzmitry Malyshau
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
Dzmitry Malyshau
06d777b609
Make layout validation optional, disable the struct size check
2021-03-24 21:03:00 -04:00
Dzmitry Malyshau
a0b5717fed
Validate image stores
2021-03-24 12:32:32 -04:00
Dzmitry Malyshau
69a0fbd00e
Validate image sampling and value casting
2021-03-24 12:32:32 -04:00
Dzmitry Malyshau
8c73c0c5df
Validate derivatives and image loads
2021-03-24 12:32:32 -04:00
Dzmitry Malyshau
7a246f6a14
Validate image queries and valid shader stages for derivatives
2021-03-24 12:32:32 -04:00
bors[bot] and Joshua Groves
e5dfafb3cc
Merge #1281
...
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 >
2021-03-24 14:56:00 +00:00
Joshua Groves
9885bdf320
Rename level_count to mip_level_count
...
This follows the naming in the specification, located at
https://gpuweb.github.io/gpuweb/#texture-view-creation
2021-03-24 09:14:30 -02:30
bors[bot] and Joshua Groves
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
Gordon-F
ee43776c08
[glsl-out] Add samplers to reflection info
2021-03-23 22:14:22 -04:00