(kernelString)
| 457 | } |
| 458 | |
| 459 | _resultImmutableKernel1DLoop(kernelString) { |
| 460 | const constructorString = this._getKernelResultTypeConstructorString(); |
| 461 | return ` const outputX = _this.output[0]; |
| 462 | const result = new ${constructorString}(outputX); |
| 463 | ${ this._mapSubKernels(subKernel => `const result_${ subKernel.name } = new ${constructorString}(outputX);\n`).join(' ') } |
| 464 | ${ this._mapSubKernels(subKernel => `let subKernelResult_${ subKernel.name };\n`).join(' ') } |
| 465 | for (let x = 0; x < outputX; x++) { |
| 466 | this.thread.x = x; |
| 467 | this.thread.y = 0; |
| 468 | this.thread.z = 0; |
| 469 | ${ kernelString } |
| 470 | }`; |
| 471 | } |
| 472 | |
| 473 | _mutableKernel1DResults() { |
| 474 | const constructorString = this._getKernelResultTypeConstructorString(); |
no test coverage detected