(mode)
| 280 | }); |
| 281 | |
| 282 | function inputInt32ArrayX(mode) { |
| 283 | const gpu = new GPU({ mode }); |
| 284 | const kernel = gpu.createKernel(function(a) { |
| 285 | return a[this.thread.x]; |
| 286 | }) |
| 287 | .setPrecision('unsigned') |
| 288 | .setOutput([9]); |
| 289 | |
| 290 | const a = new Int32Array([1,2,3,4,5,6,7,8,9]); |
| 291 | const result = kernel(input(a, [3, 3])); |
| 292 | assert.deepEqual(result, new Float32Array([1,2,3,4,5,6,7,8,9])); |
| 293 | gpu.destroy(); |
| 294 | } |
| 295 | |
| 296 | test("inputInt32ArrayX auto", () => { |
| 297 | inputInt32ArrayX(); |
no test coverage detected
searching dependent graphs…