mirror of
https://github.com/gpujs/gpu.js.git
synced 2026-01-18 16:04:10 +00:00
pass settings to the runner instance
This commit is contained in:
parent
4f342db7bf
commit
5cd438707d
5
src/gpu.js
vendored
5
src/gpu.js
vendored
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user