MCPcopy Index your code
hub / github.com/gpujs/gpu.js / testLegacyEncoderOn

Function testLegacyEncoderOn

test/features/legacy-encoder.js:35–46  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

33});
34
35function 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
48test('on auto', () => {
49 testLegacyEncoderOn();

Callers 1

legacy-encoder.jsFile · 0.85

Calls 3

createKernelMethod · 0.95
destroyMethod · 0.95
kernelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…