Heavily dependent functions throw Error: no matching overloaded function found
- Lingua principale
- JavaScript
- Stelle
- 15.5k
- Fork
- 663
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
## *What* is wrong?
I have a problem with the added functions while running the kernel. Added some simple vector functions (dotProduct, scale, magnitude, normalize) and when I call them in a specific order, I get the error: `Error compiling fragment shader: ERROR: 0:457: 'vecDotProduct' : no matching overloaded function found`. The problem only occurs when I try to run/execute the kernel, not when I create it. (Note: the function, which was refered in the error, does exist with the proper types)
The mentioned functions rely on each other (calls each other), and I belive the problem might be related to this, because with independent functions I get no error.
## *Where* does it happen?
A webpage using GPU.js running on my computer (Win10, Chrome)
## *How* do we replicate the issue?
I created a Stackblitz to replitcate the issue:
https://stackblitz.com/edit/js-ztmz1t?devToolsHeight=33&file=index.js
(If the previous link doesn't work: https://js-ztmz1t.stackblitz.io )
## *How* important is this (1-5)?
4
## Expected behavior (i.e. solution)
The kernel runs without any error.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con la riproduzione StackBlitz collegata e ispeziona il fragment shader generato intorno alla riga 457 segnalata, concentrandoti su come vengono emessi vecDotProduct e le funzioni vettoriali dipendenti. Traccia la dipendenza tra le funzioni e la risoluzione degli overload durante l’esecuzione del kernel; il lavoro è completato quando il kernel riprodotto viene eseguito senza l’errore no-matching-overloaded-function.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- computer-graphics
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100