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

Function makeTexture

test/features/clone-textures.js:8–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6function copy1DTexture(precision, mode) {
7 const gpu = new GPU({ mode });
8 function makeTexture() {
9 return (gpu.createKernel(function() {
10 return this.thread.x;
11 }, {
12 output: [5],
13 pipeline: true,
14 precision
15 }))();
16 }
17 const texture = makeTexture();
18 const clone = texture.clone();
19 assert.notEqual(texture, clone);

Callers 3

copy1DTextureFunction · 0.70
copy2DTextureFunction · 0.70
copy3DTextureFunction · 0.70

Calls 1

createKernelMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…