Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gpujs/gpu.js
/ onRequestTexture
Method
onRequestTexture
src/backend/web-gl/kernel.js:370–372 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
368
let
textureIndexes = 0;
369
370
const
onRequestTexture = () => {
371
return
this.createTexture();
372
};
373
const
onRequestIndex = () => {
374
return
this.constantTextureCount + textureIndexes++;
375
};
Callers
1
requestTexture
Method · 0.80
Calls
1
createTexture
Method · 0.95
Tested by
no test coverage detected