Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

path-trace 1 cell did not pass its check

Aperta
#874 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
compilers, web-dev

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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 `)`
Image
Lingua principale
JavaScript
Stelle
15.5k
Fork
663
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di gpujs/gpu.js

Tutte le issue di gpujs/gpu.js

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.