pass settings to the runner instance

This commit is contained in:
Abhishek Soni 2017-07-01 09:41:42 +05:30
parent 4f342db7bf
commit 5cd438707d

5
src/gpu.js vendored
View File

@ -140,10 +140,7 @@ module.exports = class GPU {
}
if (!utils.isWebGlDrawBuffersSupported) {
this._runner = new CPURunner({
canvas: this._canvas,
webGl: this._webGl
});
this._runner = new CPURunner(settings);
}
const kernel = this.createKernel(fn, settings);