Commit Graph

178 Commits

Author SHA1 Message Date
Eduard-Mihai Burtescu
4c6cf0d737 example-runner-ash: use NumPad +/- to control sky-shader's "sun intensity" through a specialization constant. 2023-07-21 12:27:17 +03:00
Eduard-Mihai Burtescu
55edc4e6b4 example-runner-wgpu: fix "offline" (wasm/Android) compilation. 2023-07-20 20:26:15 +03:00
Eduard-Mihai Burtescu
24f42f2b42 example-runner-wgpu: enable debugPrintf panic support via --force-spirv-passthru. 2023-07-20 20:26:15 +03:00
Eduard-Mihai Burtescu
9808cd0309 example-runner-wgpu: fix compute example. 2023-07-20 20:26:15 +03:00
Eduard-Mihai Burtescu
2ed23d0013 example-runner-wgpu: add --force-spirv-passthru for testing. 2023-07-20 20:26:15 +03:00
Eduard-Mihai Burtescu
4252427f89 Add debugPrintf-based panic reporting, controlled via spirv_builder::ShaderPanicStrategy. 2023-07-18 22:40:57 +03:00
Eduard-Mihai Burtescu
4a987f3eb0 Add rustfmt.toml with version = "Two" to enable formatting array patterns. 2023-06-03 10:46:57 +03:00
Eduard-Mihai Burtescu
174692bd8d Update wgpu to 0.16.0 and naga to 0.12.1. 2023-05-19 03:17:38 +03:00
Eduard-Mihai Burtescu
2db2fd6bcf Switch to wgpu 0.15.0 from crates.io. 2023-05-19 03:17:38 +03:00
Eduard-Mihai Burtescu
c4c736c127 example-runner-wgpu: bump android_logger to unbreak Android logging. 2023-04-17 10:35:05 +03:00
Eduard-Mihai Burtescu
9cd0b2759f example-runner-wgpu: transition from ndk-glue to android-activity. 2023-03-22 20:51:18 +02:00
Eduard-Mihai Burtescu
a9472a0743 Update wgpu (and ash, to avoid duplicate deps). 2023-03-22 20:51:18 +02:00
Eduard-Mihai Burtescu
d35fa4219b Update minifb dependency. 2023-03-21 10:57:08 +02:00
Sylvester Hesp
ae66c7cc1a Removed glam feature toggle altogether 2023-03-15 04:59:33 -07:00
Eduard-Mihai Burtescu
2ccdb4651d Apply clippy::uninlined_format_args suggestions for Rust 2021 (panic/assert). 2023-01-30 23:00:43 +02:00
Sylvester Hesp
33c2f80835 Clippy fixes 2023-01-05 14:50:13 +02:00
Sylvester Hesp
f0aace570b Linter fixes 2022-12-02 01:58:11 -08:00
Sylvester Hesp
6f325acec0 More linter fixes 2022-11-30 09:38:54 -08:00
Sylvester Hesp
25cb7bf7e4 Linter fix 2022-11-30 09:38:54 -08:00
Eduard-Mihai Burtescu
f78b23b926 examples/runner/cpu: switch to workspace inheritance. 2022-11-30 16:59:49 +02:00
Sylvester Hesp
5e7a0755c2 Also applied default-features=false to spirv-builder 2022-11-22 07:43:06 -08:00
Sylvester Hesp
e7df2feb27 Applied workspace inheritance 2022-11-22 07:43:06 -08:00
Eduard-Mihai Burtescu
69cb69d28f Replace const_{vec,mat}! usage in tests and examples. 2022-11-03 17:03:54 +02:00
Sylvester Hesp
c3a9b9fd3e
Migration from register_attr to register_tool (#926)
* Accept `#[rust_gpu::spirv()]` attributes rather than `#[spirv()]` in backend
* Implemented `#[spirv(..)]` proc macro attribute for all platforms that conditionally translates to `#[rust_gpu::spirv()]` based on platform
* Changed `SpirvBuilder` to always apply `register_tool(rust_gpu)` attribute to shader crates
* Updated docs
* Added changelog
2022-10-19 09:50:24 +00:00
Eduard-Mihai Burtescu
90db8e22d5 example-runner-ash: make sure spirv-builder uses a dedicated target dir. 2022-10-13 17:01:52 +03:00
Eduard-Mihai Burtescu
5c8e65279f mouse-shader: remove sharp cutoff in drag distortion. 2022-09-28 17:36:33 +03:00
Sylvester Hesp
823a5c3e8c Fixed linter (again) 2022-08-25 16:10:05 +03:00
Sylvester Hesp
805297146b
Update to 0.4.0-alpha.14 (#905)
* Changed version of all unpublished crates to 0.0.0

* New version: v0.4.0-alpha.14

* Fixed versions in deny.toml
2022-08-12 12:38:45 +02:00
Sylvester Hesp
fde567ed2d
Updated versions to 0.4.0-alpha.13 (#899)
* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* (cargo-release) version 0.4.0-alpha.13

* Updated versions in local dependencies as well
2022-08-11 12:34:07 +02:00
Ashley Ruglys
a9ae4d235b Revert to just the spirv-std Cargo.toml range increase 2022-08-09 04:05:07 +03:00
Ashley Ruglys
3e569c527c Replace const_vec3 with Vec3::from_array 2022-08-09 04:05:07 +03:00
Eduard-Mihai Burtescu
105cbcc618 Clear CARGO_ENCODED_RUSTFLAGS in example-runner-wgpu's build script. 2022-08-06 13:09:43 +03:00
Markus Siglreithmaier
0cd30c2ad6
examples: fix pipeline layout in compute runner (#868)
* examples: fix pipeline layout in compute runner

* fix CI lint failure
2022-04-19 09:48:06 +02:00
Johan Andersson
132b960e83
Upgrade from our standard lints v4 -> v6 (#861) 2022-04-17 12:16:59 +02:00
Eduard-Mihai Burtescu
116bf9c4d4 rustup: address (new) clippy errors. 2022-04-12 09:01:18 +03:00
Eduard-Mihai Burtescu
5ac500d5b9
Split out a new -types crate so spirv-builder stops loading LLVM via dylibs. (#856)
* Split out a new `-types` crate so `spirv-builder` stops loading LLVM via dylibs.

* example-wgpu-runner: halve `max_push_constant_size` so it works on RADV/Fiji.
2022-03-30 09:07:14 +02:00
Yuya Kanai
595f8e7a9c
Remove SPIRV_SHADER_PASSTHROUGH for wgpu example on Mac (#854) 2022-03-29 22:27:23 +02:00
andrusha
94ad8a5f6b
Enable Vulkan for WGPU runner (#852)
* Enable Vulkan for WGPU runner

Metal doesn't support SPIR-V shader passthrough, so on macOS using WGPU runner you get following error with any example:

```
Features SPIRV_SHADER_PASSTHROUGH are required but not enabled on the device
```

Vulkan supports shader passthrough, but requires compatibility layer of MoltenVK to work, which needs to be installed on the host machine. Currently this feature is only available on master.

* Update examples Cargo lockfile
2022-03-10 15:59:46 +01:00
David Craven
31a0be3c0a Add reduce example. 2022-02-09 18:10:22 +02:00
Ashley Hauck
b99fc516e6
Update deps (#833) 2022-01-04 08:02:14 +00:00
Ashley Hauck
1afa05960b
Update deps (#829)
* Update deps

* Temp downgrade glam until fix in glam is in
2021-12-17 14:55:27 +00:00
Ashley Hauck
9673f39967
A whole host of minor tweaks and clippy fixes (#824) 2021-12-14 07:45:45 +00:00
Harald Reingruber
67a21bfe38
Unit Testing Shader Code Experiment/Example (#813) 2021-12-06 13:21:51 +01:00
Ashley Hauck
2ca5826e55
rustup update (#816)
* rustup update

* Test fixes
2021-12-06 11:31:43 +01:00
Daniel McNab
0652153f1d
No longer require the workaround for the collatz example (#778)
* No longer require the workaround for the collatz example

* and remove the `Int8` cap
2021-12-02 09:46:34 +00:00
Benjamin Bouvier
c1dd14d863
Remove unused dependencies in rust-gpu (#800) 2021-11-22 13:12:43 +00:00
Ashley Hauck
f0fd471218
Add examples readme (#785) 2021-10-28 15:29:12 +02:00
Ashley Hauck
e2db97f899
Update dependencies (#765) 2021-10-14 14:38:15 +00:00
Ashley Hauck
44c9fdd8c5
Release v0.4.0-alpha.12 (#719) 2021-08-12 10:46:32 +00:00
Eduard-Mihai Burtescu
908499744f spirv-builder: switch to \x1f-separated CARGO_ENCODED_RUSTFLAGS. 2021-08-10 16:53:28 +03:00