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

Function testLegacyEncoderOff

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

Source from the content-addressed store, hash-verified

4describe('features: legacy encoder');
5
6function 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
15test('off auto', () => {
16 testLegacyEncoderOff();

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…