MCPcopy Create free account
hub / github.com/Twinklebear/webgpu-gltf / constructor

Method constructor

src/glb_shader_cache.js:2–5  ·  view source on GitHub ↗
(device)

Source from the content-addressed store, hash-verified

1export class GLBShaderCache {
2 constructor(device) {
3 this.device = device;
4 this.shaderCache = {};
5 }
6
7 getShader(hasNormals, hasUVs, hasColorTexture) {
8 var shaderID = "glb";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected