()
| 6 | function testMatrix2(mode) { |
| 7 | const gpu = new GPU({ mode }); |
| 8 | function getMatrix() { |
| 9 | const matrix = [ |
| 10 | [1,2], |
| 11 | [3,4] |
| 12 | ]; |
| 13 | return matrix; |
| 14 | } |
| 15 | gpu.addFunction(getMatrix); |
| 16 | const kernel = gpu.createKernel(function(y, x) { |
| 17 | return getMatrix()[y][x]; |
no outgoing calls
no test coverage detected
searching dependent graphs…