MCPcopy Create free account
hub / github.com/gpujs/gpu.js / setupTexture

Method setupTexture

src/backend/web-gl/kernel-value/array.js:47–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 }
46
47 setupTexture() {
48 this.contextHandle = this.onRequestContextHandle();
49 this.index = this.onRequestIndex();
50 this.dimensionsId = this.id + 'Dim';
51 this.sizeId = this.id + 'Size';
52 }
53
54 /**
55 * bit storage ratio of source to target 'buffer', i.e. if 8bit array -> 32bit tex = 4

Callers 3

setupMethod · 0.95
setupMethod · 0.80
setupMethod · 0.80

Calls 2

onRequestIndexMethod · 0.80

Tested by

no test coverage detected