MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / Fg

Function Fg

assets/js/space-wrap.js:50–51  ·  view source on GitHub ↗
(a,b)

Source from the content-addressed store, hash-verified

48d))}function vg(a,b){var c=this.cache,d=b.elements;void 0===d?X(c,b)||(a.uniformMatrix4fv(this.addr,!1,b),sa(c,b)):X(c,d)||(bf.set(d),a.uniformMatrix4fv(this.addr,!1,bf),sa(c,d))}function wg(a,b,c){var d=this.cache,e=c.allocateTextureUnit();d[0]!==e&&(a.uniform1i(this.addr,e),d[0]=e);c.safeSetTexture2D(b||cf,e)}function xg(a,b,c){var d=this.cache,e=c.allocateTextureUnit();d[0]!==e&&(a.uniform1i(this.addr,e),d[0]=e);c.setTexture2DArray(b||yg,e)}function zg(a,b,c){var d=this.cache,e=c.allocateTextureUnit();
49d[0]!==e&&(a.uniform1i(this.addr,e),d[0]=e);c.setTexture3D(b||Ag,e)}function Bg(a,b,c){var d=this.cache,e=c.allocateTextureUnit();d[0]!==e&&(a.uniform1i(this.addr,e),d[0]=e);c.safeSetTextureCube(b||df,e)}function ef(a,b){var c=this.cache;X(c,b)||(a.uniform2iv(this.addr,b),sa(c,b))}function ff(a,b){var c=this.cache;X(c,b)||(a.uniform3iv(this.addr,b),sa(c,b))}function gf(a,b){var c=this.cache;X(c,b)||(a.uniform4iv(this.addr,b),sa(c,b))}function Cg(a){switch(a){case 5126:return og;case 35664:return qg;
50case 35665:return rg;case 35666:return sg;case 35674:return tg;case 35675:return ug;case 35676:return vg;case 35678:case 36198:return wg;case 35679:return zg;case 35680:return Bg;case 36289:return xg;case 5124:case 35670:return pg;case 35667:case 35671:return ef;case 35668:case 35672:return ff;case 35669:case 35673:return gf}}function Dg(a,b){var c=this.cache;X(c,b)||(a.uniform1fv(this.addr,b),sa(c,b))}function Eg(a,b){var c=this.cache;X(c,b)||(a.uniform1iv(this.addr,b),sa(c,b))}function Fg(a,b){var c=
51this.cache;b=Wb(b,this.size,2);X(c,b)||(a.uniform2fv(this.addr,b),this.updateCache(b))}function Gg(a,b){var c=this.cache;b=Wb(b,this.size,3);X(c,b)||(a.uniform3fv(this.addr,b),this.updateCache(b))}function Hg(a,b){var c=this.cache;b=Wb(b,this.size,4);X(c,b)||(a.uniform4fv(this.addr,b),this.updateCache(b))}function Ig(a,b){var c=this.cache;b=Wb(b,this.size,4);X(c,b)||(a.uniformMatrix2fv(this.addr,!1,b),this.updateCache(b))}function Jg(a,b){var c=this.cache;b=Wb(b,this.size,9);X(c,b)||(a.uniformMatrix3fv(this.addr,
52!1,b),this.updateCache(b))}function Kg(a,b){var c=this.cache;b=Wb(b,this.size,16);X(c,b)||(a.uniformMatrix4fv(this.addr,!1,b),this.updateCache(b))}function Lg(a,b,c){var d=this.cache,e=b.length,f=Ye(c,e);!1===X(d,f)&&(a.uniform1iv(this.addr,f),sa(d,f));for(a=0;a!==e;++a)c.safeSetTexture2D(b[a]||cf,f[a])}function Mg(a,b,c){var d=this.cache,e=b.length,f=Ye(c,e);!1===X(d,f)&&(a.uniform1iv(this.addr,f),sa(d,f));for(a=0;a!==e;++a)c.safeSetTextureCube(b[a]||df,f[a])}function Ng(a){switch(a){case 5126:return Dg;
53case 35664:return Fg;case 35665:return Gg;case 35666:return Hg;case 35674:return Ig;case 35675:return Jg;case 35676:return Kg;case 35678:return Lg;case 35680:return Mg;case 5124:case 35670:return Eg;case 35667:case 35671:return ef;case 35668:case 35672:return ff;case 35669:case 35673:return gf}}function Og(a,b,c){this.id=a;this.addr=c;this.cache=[];this.setValue=Cg(b.type)}function hf(a,b,c){this.id=a;this.addr=c;this.cache=[];this.size=b.size;this.setValue=Ng(b.type)}function jf(a){this.id=a;this.seq=
54[];this.map={}}function ib(a,b){this.seq=[];this.map={};for(var c=a.getProgramParameter(b,35718),d=0;d<c;++d){var e=a.getActiveUniform(b,d),f=a.getUniformLocation(b,e.name),g=this,h=e.name,l=h.length;for(he.lastIndex=0;;){var m=he.exec(h),q=he.lastIndex,p=m[1],v=m[3];"]"===m[2]&&(p|=0);if(void 0===v||"["===v&&q+2===l){h=g;e=void 0===v?new Og(p,e,f):new hf(p,e,f);h.seq.push(e);h.map[e.id]=e;break}else v=g.map[p],void 0===v&&(v=new jf(p),p=g,g=v,p.seq.push(g),p.map[g.id]=g),g=v}}}function Pg(a){a=a.split("\n");

Callers

nothing calls this directly

Calls 2

WbFunction · 0.70
XFunction · 0.70

Tested by

no test coverage detected