gpu.js icon indicating copy to clipboard operation
gpu.js copied to clipboard

setGraphical falling back to GPU

Open colorao opened this issue 2 years ago • 0 comments

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

Other Comments

colorao avatar May 22 '22 22:05 colorao