(mode)
| 244 | }); |
| 245 | |
| 246 | function circlicalLogic(mode) { |
| 247 | const gpu = new GPU({ mode }); |
| 248 | function child1Function(child1FunctionArgument1) { |
| 249 | return child1Function(child1FunctionArgument1); |
| 250 | } |
| 251 | gpu |
| 252 | .addFunction(child1Function); |
| 253 | const kernel = gpu.createKernel(function(kernelArgument1) { |
| 254 | return child1Function(kernelArgument1); |
| 255 | }, { output: [1] }); |
| 256 | assert.throws(() => { |
| 257 | kernel(1.5); |
| 258 | }); |
| 259 | } |
| 260 | |
| 261 | (GPU.isWebGLSupported ? test : skip)('circlical logic webgl', () => { |
| 262 | circlicalLogic('webgl'); |
no test coverage detected
searching dependent graphs…