(gpu, output)
| 3 | |
| 4 | describe('features: create kernel map'); |
| 5 | function createPropertyKernels(gpu, output) { |
| 6 | function divide(d1, d2) { |
| 7 | return d1 / d2; |
| 8 | } |
| 9 | const adder = alias('adder', function add(a1, a2) { |
| 10 | return a1 + a2; |
| 11 | }); |
| 12 | return gpu.createKernelMap({ |
| 13 | addResult: adder, |
| 14 | divideResult: divide |
| 15 | }, function (k1, k2, k3) { |
| 16 | return divide(adder(k1[this.thread.x], k2[this.thread.x]), k3[this.thread.x]); |
| 17 | }).setOutput(output); |
| 18 | } |
| 19 | |
| 20 | function createArrayKernels(gpu, output) { |
| 21 | function add(a1, a2) { |
no test coverage detected
searching dependent graphs…