You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The EnumString is working fine as in, clap is parsing it correctly.
I do not have time right now to investigate why -- perhaps the compilation logic in each of the individual shader crates' is wrong?
System Info
Rust: rustc 1.84.0-nightly (b19329a37 2024-11-21) (Why do you ask for this if there's a version specified in the rust-toolchain.toml ?
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.29s
Running `D:\rust-gpu\target\debug\example-runner-wgpu.exe --shader compute-shader`
error: invalid value 'compute-shader' for '--shader <SHADER>': Matching variant not found
Substitute the computer-shader string for any value of:
turns out you need to use exactly the variants
i.e -> cargo run --bin example-runner-wgpu -- -s Compute not cargo run --bin example-runner-wgpu -- -s compute-shader
Expected Behaviour
Expect the examples to work per the instrcutions in the docs + the
clap
help i.eExample & Steps To Reproduce
Here's a table summarizing which examples work and which don't:
cargo run --bin example-runner-wgpu
cargo run --bin example-runner-wgpu -- -s Sky
cargo run --bin example-runner-wgpu -- -s simplest-shader
cargo run --bin example-runner-wgpu -- -s mouse-shader
cargo run --bin example-runner-wgpu -- -s compute-shader
cd ./examples/shaders/compute-shader && cargo run
If you throw a
dbg!
print on thecrate_name
defined here:The
EnumString
is working fine as in,clap
is parsing it correctly.I do not have time right now to investigate why -- perhaps the compilation logic in each of the individual shader crates' is wrong?
System Info
rust-toolchain.toml
?rust-lld.exe
see Fix windows builds #252)///////////////// ///////////////// jer@winbox ///////////////// ///////////////// ---------- ///////////////// ///////////////// OS: Windows 11 Pro x86_64 ///////////////// ///////////////// Host: X570 AORUS ELITE WIFI (-CF) ///////////////// ///////////////// Kernel: WIN32_NT 10.0.22631.5189 (23H2) ///////////////// ///////////////// Uptime: 3 hours, 29 mins ///////////////// ///////////////// Packages: 5 (scoop), 32 (choco) ///////////////// ///////////////// Shell: PowerShell 7.5.1 Display (DELA17F): 3840x1600 @ 144 Hz in 38" [External] * ///////////////// ///////////////// Display (BenQ PD2700U): 2560x1440 @ 60 Hz in 27" [External] ///////////////// ///////////////// DE: Fluent ///////////////// ///////////////// WM: Desktop Window Manager 10.0.22621.5124 ///////////////// ///////////////// WM Theme: Custom - #1B3D5A (System: Dark, Apps: Dark) ///////////////// ///////////////// Icons: Recycle Bin ///////////////// ///////////////// Font: Segoe UI (12pt) [Caption / Menu / Message / Status] ///////////////// ///////////////// Cursor: Windows Default (32px) ///////////////// ///////////////// Terminal: Visual Studio Code 1.100.2 CPU: AMD Ryzen 9 5950X (32) @ 5.05 GHz GPU 1: NVIDIA Parsec Virtual Display Adapter (23.69 GiB) [Discrete] GPU 2: NVIDIA TITAN RTX (23.69 GiB) [Discrete] Memory: 16.17 GiB / 31.94 GiB (51%)
Backtrace
Backtrace
Substitute the
computer-shader
string for any value of:for the same errors.
The text was updated successfully, but these errors were encountered: