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

Method updateMaxTexSize

src/backend/web-gl/kernel.js:330–347  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

328 }
329
330 updateMaxTexSize() {
331 const { texSize, canvas } = this;
332 if (this.maxTexSize === null) {
333 let canvasIndex = canvases.indexOf(canvas);
334 if (canvasIndex === -1) {
335 canvasIndex = canvases.length;
336 canvases.push(canvas);
337 maxTexSizes[canvasIndex] = [texSize[0], texSize[1]];
338 }
339 this.maxTexSize = maxTexSizes[canvasIndex];
340 }
341 if (this.maxTexSize[0] < texSize[0]) {
342 this.maxTexSize[0] = texSize[0];
343 }
344 if (this.maxTexSize[1] < texSize[1]) {
345 this.maxTexSize[1] = texSize[1];
346 }
347 }
348
349 setupArguments(args) {
350 this.kernelArguments = [];

Callers 2

buildMethod · 0.95
setOutputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected