1import{o as b}from"./BufferObject-DyJjMVkP.js";import{m as _,s as g}from"./FramebufferObject-8AQPHDL6.js";import{s as c}from"./ProgramTemplate-DAuJwMBE.js";import{e as F,a as O}from"./ProgramTemplate-DAuJwMBE.js";import{fJ as P}from"./index-BU4yKbJX.js";import{h as A}from"./VertexArrayObject-BYPqDvcz.js";import"./memoryEstimations-B3oAKH_o.js";import"./VertexAttributeLocations-BfZbt_DV.js";class d{constructor(e){this._rctx=e,this._store=new Map}dispose(){this._store.forEach(e=>e.dispose()),this._store.clear()}acquire(e,r,t,s){const n=e+r+JSON.stringify(Array.from(t.entries())),o=this._store.get(n);if(o!=null)return o.ref(),o;const i=new c(this._rctx,e,r,t,s);return i.ref(),this._store.set(n,i),i}get test(){}}function p(f){const{options:e,value:r}=f;return typeof e[r]=="number"}function x(f){let e="";for(const r in f){const t=f[r];if(typeof t=="boolean")t&&(e+=`#define ${r} 2`);else if(typeof t=="number")e+=`#define ${r} ${t.toFixed()} 3`;else if(typeof t=="object")if(p(t)){const{value:s,options:n,namespace:o}=t,i=o?`${o}_`:"";for(const a in n)e+=`#define ${i}${a} ${n[a].toFixed()} 4`;e+=`#define ${r} ${i}${s} 5`}else{const s=t.options;let n=0;for(const o in s)e+=`#define ${s[o]} ${(n++).toFixed()} 6`;e+=`#define ${r} ${s[t.value]} 7`}}return e}export{b as BufferObject,_ as FramebufferObject,c as Program,d as ProgramCache,g as Renderbuffer,F as ShaderCompiler,P as Texture,A as VertexArrayObject,O as createProgram,x as glslifyDefineMap};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.