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

Function inputInt32ArrayX

test/features/input.js:282–294  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

280});
281
282function inputInt32ArrayX(mode) {
283 const gpu = new GPU({ mode });
284 const kernel = gpu.createKernel(function(a) {
285 return a[this.thread.x];
286 })
287 .setPrecision('unsigned')
288 .setOutput([9]);
289
290 const a = new Int32Array([1,2,3,4,5,6,7,8,9]);
291 const result = kernel(input(a, [3, 3]));
292 assert.deepEqual(result, new Float32Array([1,2,3,4,5,6,7,8,9]));
293 gpu.destroy();
294}
295
296test("inputInt32ArrayX auto", () => {
297 inputInt32ArrayX();

Callers 1

input.jsFile · 0.85

Calls 6

createKernelMethod · 0.95
destroyMethod · 0.95
kernelFunction · 0.85
inputFunction · 0.85
setOutputMethod · 0.45
setPrecisionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…