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

Method _resultKernelBody

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

Source from the content-addressed store, hash-verified

409 }
410
411 _resultKernelBody(kernelString) {
412 switch (this.output.length) {
413 case 1:
414 return (!this.immutable && this.pipeline ? this._resultMutableKernel1DLoop(kernelString) : this._resultImmutableKernel1DLoop(kernelString)) + this._kernelOutput();
415 case 2:
416 return (!this.immutable && this.pipeline ? this._resultMutableKernel2DLoop(kernelString) : this._resultImmutableKernel2DLoop(kernelString)) + this._kernelOutput();
417 case 3:
418 return (!this.immutable && this.pipeline ? this._resultMutableKernel3DLoop(kernelString) : this._resultImmutableKernel3DLoop(kernelString)) + this._kernelOutput();
419 default:
420 throw new Error('unsupported size kernel');
421 }
422 }
423
424 _graphicalKernelBody(kernelThreadString) {
425 switch (this.output.length) {

Callers 1

getKernelStringMethod · 0.95

Tested by

no test coverage detected