MCPcopy Create free account
hub / github.com/gpujs/gpu.js / _graphicalKernel2DLoop

Method _graphicalKernel2DLoop

src/backend/cpu/kernel.js:539–550  ·  view source on GitHub ↗
(kernelString)

Source from the content-addressed store, hash-verified

537 }
538
539 _graphicalKernel2DLoop(kernelString) {
540 return ` const outputX = _this.output[0];
541 const outputY = _this.output[1];
542 for (let y = 0; y < outputY; y++) {
543 this.thread.z = 0;
544 this.thread.y = y;
545 for (let x = 0; x < outputX; x++) {
546 this.thread.x = x;
547 ${ kernelString }
548 }
549 }`;
550 }
551
552 _resultImmutableKernel3DLoop(kernelString) {
553 const constructorString = this._getKernelResultTypeConstructorString();

Callers 1

_graphicalKernelBodyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected