gpujs / gpu.js

GPU Accelerated JavaScript
https://gpu.rocks
MIT License
15.04k stars 646 forks source link

setGraphical falling back to GPU #758

Open colorao opened 2 years ago

colorao commented 2 years ago

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