MCPcopy Index your code
hub / github.com/gpujs/gpu.js / constructor

Method constructor

src/backend/cpu/kernel.js:50–64  ·  view source on GitHub ↗
(source, settings)

Source from the content-addressed store, hash-verified

48 }
49
50 constructor(source, settings) {
51 super(source, settings);
52 this.mergeSettings(source.settings || settings);
53
54 this._imageData = null;
55 this._colorData = null;
56 this._kernelString = null;
57 this._prependedString = [];
58 this.thread = {
59 x: 0,
60 y: 0,
61 z: 0
62 };
63 this.translatedSources = null;
64 }
65
66 initCanvas() {
67 if (typeof document !== 'undefined') {

Callers

nothing calls this directly

Calls 1

mergeSettingsMethod · 0.80

Tested by

no test coverage detected