Commit Graph

63 Commits

Author SHA1 Message Date
Firestar99
3b60bf9982 print possible values only once 2025-05-21 17:32:02 +00:00
Firestar99
f4a4ffb303 cargo fmt 2025-05-21 17:32:02 +00:00
jer
0b7db6432c fix: remove unused import 2025-05-21 17:32:02 +00:00
jer
cfa458e277 fix: buff the help menu for the wgpu-runner 2025-05-21 17:32:02 +00:00
Firestar99
e6933e7a91 compile_codegen: allow SpirvBuilder watch to return something on first completion 2025-05-06 08:57:34 +00:00
Eduard-Mihai Burtescu
0750b3059a examples/runners/wgpu: update wgpu to 23. 2024-12-18 20:09:36 +00:00
Eduard-Mihai Burtescu
332b38dbf1 examples/runners/{ash,wgpu}: update winit to 0.30 (but using deprecated APIs). 2024-12-18 20:09:36 +00:00
Eduard-Mihai Burtescu
f069c58c0c examples/runners/wgpu: avoid holding onto to multiple surfaces at the same time. 2024-12-18 15:34:21 +00:00
Eduard-Mihai Burtescu
596512884a Update formatting for nightly-2024-10-12 (~1.83). 2024-12-18 10:46:51 +00:00
Eduard-Mihai Burtescu
3e56c3deda rustup: update to nightly-2024-07-20 (~1.81). 2024-12-18 10:46:51 +00:00
Rowan Jones
d2eb777510 Make timestamping dependent on support (#38) 2024-10-15 13:02:37 -04:00
Eduard-Mihai Burtescu
cc752312c3 rustup: update to nightly-2024-03-01. 2024-09-21 08:20:05 -04:00
Christian Legnitto
4c633aec18 Fix cfg-check lint errors, update glam to 0.29, wgpu to 22.1 (#1157) (#9)
* bump glam to 0.29

* fix cargo deny

* upgrade wgpu

* fix cfg-check lints

Co-authored-by: Gray Olson <gray@grayolson.com>
2024-09-16 17:24:21 -04:00
Fredrik Fornwall
1a9c8b8ba1 Update the wgpu example runner to 0.19 2024-01-25 12:18:45 +02:00
Fredrik Fornwall
d0e374968a Update clap (replacing structopt) (#1114)
Fixes the remaining security warning at
https://github.com/EmbarkStudios/rust-gpu/security/dependabot
2024-01-10 23:49:34 +02:00
Fredrik Fornwall
738974aa17 Update wgpu and winit in the wgpu&ash example runners (#1112) 2024-01-03 10:12:48 +01:00
Fredrik Fornwall
ed697bc192 Rename bin/wgpu_runner.rs to main.rs (#1111)
* Rename bin/wgpu_runner.rs to main.rs

Fixes running `cargo run --bin example-runner-wgpu` as documented at
https://embarkstudios.github.io/rust-gpu/book/building-rust-gpu.html

* Add --lib to sample commands in android.nix
2024-01-02 14:20:01 +00: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
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
Sylvester Hesp
33c2f80835 Clippy fixes 2023-01-05 14:50:13 +02:00
Sylvester Hesp
823a5c3e8c Fixed linter (again) 2022-08-25 16:10:05 +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
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
Ashley Hauck
b99fc516e6 Update deps (#833) 2022-01-04 08:02:14 +00:00
Ashley Hauck
9673f39967 A whole host of minor tweaks and clippy fixes (#824) 2021-12-14 07:45:45 +00: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
Ashley Hauck
e2db97f899 Update dependencies (#765) 2021-10-14 14:38:15 +00:00
Daniel McNab
7974817539 Upgrade wgpu (#676)
* Use the workaround from

https://github.com/gfx-rs/wgpu/issues/1374#issuecomment-839359307

* Upgrade to wgpu 0.9

We can't remove MPL from the deny.toml yes, as wgpu-subscriber
is still MPL

* swap to env-logger and log in all example paths

This also does let us remove MPL-2.0

As of https://github.com/EmbarkStudios/rust-gpu/pull/674, the crate of the
advisory is no longer in our tree

* Add a workaround for our *erm* strange codegen
2021-06-23 12:28:20 +02:00
Ashley Hauck
1cef56bcf3 Cargo update (#674) 2021-06-17 17:06:26 +02:00
Ashley Hauck
db5e5fd336 rustup update and embark standard lints v0.4 (#672)
* rustup update

* update to embark standard lints v0.4
2021-06-17 13:10:19 +02:00
Daniel McNab
e66e72b049 Fix the output filename collision warning (#669)
This works simply by naming the binary crate
anything other than the name of the lib, which is example-runner-wgpu
As far as I know, the warning started in
https://github.com/EmbarkStudios/rust-gpu/pull/215

Since there is only one binary crate in the package, the command
(`cargo run -p example-runner-wgpu --release`)
maintains the same behaviour

The cargo issue is https://github.com/rust-lang/cargo/issues/6313

This warning caused problems for me in testing
https://github.com/Lokathor/bytemuck/pull/67
since I didn't notice the warning that my patch was not applied
2021-06-14 09:22:29 +02:00
Daniel McNab
364590e05f Use bytemuck for the push constants (#668)
* Use bytemuck for the push constants

* Use the released version of bytemuck

https://github.com/Lokathor/bytemuck/pull/69 landed

That version also works 🎉
2021-06-14 09:20:55 +02:00
Daniel McNab
4b2011476b Clean up the interface of the watching support (#663)
* Clean up the interface of the watching support

This allows us to avoid the seperate thread just for looping through
the graphics rx to the eventloop, for example
In almost all cases, intial results are blocked on the first result, and
then needs notifications for later changes

* Fix test failures

* fmt

* Remove the comment again
2021-06-14 09:19:41 +02:00
Daniel McNab
3bbe963998 👀 hot shader reloading (#655)
* Update builder to use a shared validation method

* Add the error for using print_metadata and watching

We cannot use print_metadata with watching
because print_metadata only makes sense
in build scripts, but watching does not
and would instead stall the script

* Add the initial implementation of watching

* Make hot reloading work in the wgpu example

* Attempt to address CI failures

* Add exception for notify CC0-1.0 license

* Address review comments

Co-authored-by: khyperia <github@khyperia.com>
2021-06-09 10:30:44 +02:00
Markus Siglreithmaier
486a3cee2e Always emit cargo dependency information (#618)
* spirv-builder: Add more control over cargo metadata printout

* lint fix
2021-06-03 22:03:03 +02:00
Daniel McNab
cb952562dd Collatz Computation (#623)
Build the compute shader for vulkan1.1 as required
2021-06-03 14:20:42 +02:00
Ashley Hauck
ba689b5603 Don't require Int* capabilities for mouse-shader (#636)
* Don't require Int* capabilities for mouse-shader

* Make Int*/Float64 errors be zombie_even_in_user_code

* Demote glam back to a non-system crate
2021-05-31 11:56:15 +02:00
Alex Es
62f375f148 Fix simplest and sky shaders being switched in example-runner-wgpu's rebuild code. (#639) 2021-05-31 09:50:50 +00:00
Ashley Hauck
6019f391ec Add API to enable ext/capabilities, and remove default capabilities (#630)
* Do not set some capabilities by default

* Fix nondeterminism

* Add required caps to mouse shader
2021-05-26 11:57:16 +02:00
Ashley Hauck
47d1e75327 Always emit json metadata, and emit entry point names (#622)
* Always emit json metadata

* Codegen shader entry point names

* Fix tests
2021-05-24 09:45:58 +02:00
Ashley Hauck
6bff395680 Build the wgpu shader at runtime (#627)
* Build the wgpu shader at runtime
2021-05-21 12:09:56 +00:00
Ashley Hauck
4bd0dcaf3f Update wgpu 0.6->0.7 (#509)
* Update wgpu 0.6->0.7

* Allow zlib license in dependencies
2021-03-19 13:59:29 +00:00