(mode)
| 4 | describe('features: legacy encoder'); |
| 5 | |
| 6 | function testLegacyEncoderOff(mode) { |
| 7 | const gpu = new GPU({ mode }); |
| 8 | const kernel = gpu.createKernel(function() { |
| 9 | return 1; |
| 10 | }, { output: [1], precision: 'unsigned' }); |
| 11 | assert.equal(kernel()[0], 1); |
| 12 | gpu.destroy(); |
| 13 | } |
| 14 | |
| 15 | test('off auto', () => { |
| 16 | testLegacyEncoderOff(); |
no test coverage detected
searching dependent graphs…