(mode)
| 33 | }); |
| 34 | |
| 35 | function testLegacyEncoderOn(mode) { |
| 36 | const gpu = new GPU({ mode }); |
| 37 | const kernel = gpu.createKernel(function() { |
| 38 | return 1; |
| 39 | }, { |
| 40 | output: [1], |
| 41 | precision: 'unsigned', |
| 42 | useLegacyEncoder: true, |
| 43 | }); |
| 44 | assert.equal(kernel()[0], 1); |
| 45 | gpu.destroy(); |
| 46 | } |
| 47 | |
| 48 | test('on auto', () => { |
| 49 | testLegacyEncoderOn(); |
no test coverage detected
searching dependent graphs…