path-trace 1 cell did not pass its check
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
Research direction
The error is a WGSL parsing error in a generated shader, specifically an unexpected '--' operator. Look at the path-trace workload in the test suite, likely under test/ or benchmarks/. Examine the GPU.js kernel generation code that produces WGSL, focusing on how unary minus or subtraction is emitted. Run the specific test to reproduce, then debug the code generation to avoid producing '--' in the output.
Written by the indexing model from the issue text.
Description
A cell reading WRONG or error is a gpu.js bug, not a property of your machine — the same kernel produced the right answer on the other backends. These are worth reporting, and a report with the workload name and your adapter in it is worth several without:
path-trace · webgpu · error
Shader '' parsing error: expected `)`, found "--"
┌─ wgsl:57:31
│
57 │ var user_u_ut : f32 = (user_Ve--0.949999988079071);var user_dt : f32 = (user_et-0.8999999761581421);var user_Qe : f32 = (user_st--0.15000000596046448);var user_Xe : f32 = (((user_u_ut*user_Re)+(user_dt*user_Ie))+(user_Qe*user_Fe));var user_It : f32 = ((((user_u_ut*user_u_ut)+(user_dt*user_dt))+(user_Qe*user_Qe))-0.809999942779541);var user_ot : f32 = ((user_Xe*user_Xe)-user_It);if ((user_ot>0.0)){
│ ^^ expected `)`
- Dominant language
- JavaScript
- Stars
- 15.5k
- Forks
- 663
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from gpujs/gpu.js
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
WebGL backend silently returns all zeros for long-running kernels (no GL error, no context loss) Open
Difficulty 5/5 Over a week Newbie friendliness 42/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Similar issues
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
georgestephanis/p2026#40 ·
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Margaret-Petersen/food-delivery-app-clone-react-native#1981 ·