(mode)
| 363 | describe('features: setFunctions from array on kernel'); |
| 364 | |
| 365 | function testSetFunctionsFromArrayOnKernel(mode) { |
| 366 | const gpu = new GPU({ mode }); |
| 367 | function custom() { |
| 368 | return 1; |
| 369 | } |
| 370 | const kernel = gpu.createKernel(function() { |
| 371 | return custom(); |
| 372 | }, { output: [1] }); |
| 373 | kernel.setFunctions([custom]); |
| 374 | assert.equal(kernel()[0], 1); |
| 375 | gpu.destroy(); |
| 376 | } |
| 377 | |
| 378 | test('auto', () => { |
| 379 | testSetFunctionsFromArrayOnKernel(); |
no test coverage detected
searching dependent graphs…