(gpu, output)
| 18 | } |
| 19 | |
| 20 | function createArrayKernels(gpu, output) { |
| 21 | function add(a1, a2) { |
| 22 | return a1 + a2; |
| 23 | } |
| 24 | function divide(d1, d2) { |
| 25 | return d1 / d2; |
| 26 | } |
| 27 | return gpu.createKernelMap([ |
| 28 | add, divide |
| 29 | ], function (k1, k2, k3) { |
| 30 | return divide(add(k1[this.thread.x], k2[this.thread.x]), k3[this.thread.x]); |
| 31 | }).setOutput(output) |
| 32 | } |
| 33 | |
| 34 | |
| 35 | function createKernel(gpu, output) { |
no test coverage detected
searching dependent graphs…