gpu.js
gpu.js copied to clipboard
setGraphical falling back to GPU
What is wrong?
If using .setGraphical(false) , a warning appears ("Falling back to GPU") It is odd because false is the default value.... Is this behavior normal?
Where does it happen?
Everytime I use setGraphical
How do we replicate the issue?
` const gpu = new GPU({ mode: 'gpu' });
const imageKernel = gpu.createKernel(function(img) {
return [0,0,0];
}).setOutput([oImage.width , oImage.height]);
// Uncomment this line to trigger the warning.
// imageKernel.setGraphical(false);
let out = imageKernel(oImage);
console.log(out);
`
How important is this (1-5)?
Really don't know
Expected behavior (i.e. solution)
No warning displayed