(kernelString)
| 521 | } |
| 522 | |
| 523 | _resultMutableKernel2DLoop(kernelString) { |
| 524 | const constructorString = this._getKernelResultTypeConstructorString(); |
| 525 | return ` const outputX = _this.output[0]; |
| 526 | const outputY = _this.output[1]; |
| 527 | for (let y = 0; y < outputY; y++) { |
| 528 | this.thread.z = 0; |
| 529 | this.thread.y = y; |
| 530 | const resultX = result[y]; |
| 531 | ${ this._mapSubKernels(subKernel => `const resultX_${ subKernel.name } = result_${subKernel.name}[y] = new ${constructorString}(outputX);\n`).join('') } |
| 532 | for (let x = 0; x < outputX; x++) { |
| 533 | this.thread.x = x; |
| 534 | ${ kernelString } |
| 535 | } |
| 536 | }`; |
| 537 | } |
| 538 | |
| 539 | _graphicalKernel2DLoop(kernelString) { |
| 540 | return ` const outputX = _this.output[0]; |
no test coverage detected