typegpu 0.5.6 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/LICENSE.md +11 -12
  2. package/README.md +13 -5
  3. package/chunk-7ACLI4JY.cjs +2 -0
  4. package/chunk-7ACLI4JY.cjs.map +1 -0
  5. package/chunk-L7HIBZAX.js +4 -0
  6. package/chunk-L7HIBZAX.js.map +1 -0
  7. package/chunk-SFECI7OX.js +2 -0
  8. package/chunk-SFECI7OX.js.map +1 -0
  9. package/chunk-SLWTVY6K.js +2 -0
  10. package/chunk-SLWTVY6K.js.map +1 -0
  11. package/chunk-TF6YPHJS.cjs +2 -0
  12. package/chunk-TF6YPHJS.cjs.map +1 -0
  13. package/chunk-V4CSEIB2.cjs +4 -0
  14. package/chunk-V4CSEIB2.cjs.map +1 -0
  15. package/data/index.cjs +1 -1
  16. package/data/index.cjs.map +1 -1
  17. package/data/index.d.cts +5 -23
  18. package/data/index.d.ts +5 -23
  19. package/data/index.js +1 -1
  20. package/index.cjs +23 -19
  21. package/index.cjs.map +1 -1
  22. package/index.d.cts +4 -1045
  23. package/index.d.ts +4 -1045
  24. package/index.js +23 -19
  25. package/index.js.map +1 -1
  26. package/package.json +2 -2
  27. package/std/index.cjs +1 -1
  28. package/std/index.cjs.map +1 -1
  29. package/std/index.d.cts +87 -18
  30. package/std/index.d.ts +87 -18
  31. package/std/index.js +1 -1
  32. package/std/index.js.map +1 -1
  33. package/tgpuComputeFn-S61HxwW-.d.cts +3063 -0
  34. package/tgpuComputeFn-S61HxwW-.d.ts +3063 -0
  35. package/attributes-B90UjSYb.d.ts +0 -159
  36. package/attributes-zljQ-iA7.d.cts +0 -159
  37. package/chunk-KJHEEZQT.js +0 -4
  38. package/chunk-KJHEEZQT.js.map +0 -1
  39. package/chunk-LB4TSIPN.cjs +0 -2
  40. package/chunk-LB4TSIPN.cjs.map +0 -1
  41. package/chunk-VTUUXD6H.cjs +0 -4
  42. package/chunk-VTUUXD6H.cjs.map +0 -1
  43. package/chunk-YVK55BVR.js +0 -2
  44. package/chunk-YVK55BVR.js.map +0 -1
  45. package/dataTypes-6k4EJeol.d.cts +0 -1405
  46. package/dataTypes-6k4EJeol.d.ts +0 -1405
  47. package/sampler-ByLNpSxj.d.ts +0 -369
  48. package/sampler-NRTAYTIW.d.cts +0 -369
package/LICENSE.md CHANGED
@@ -2,20 +2,19 @@ MIT License
2
2
 
3
3
  Copyright (c) 2025 Software Mansion <swmansion.com>
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
11
 
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -3,11 +3,13 @@
3
3
  ![TypeGPU (light mode)](/apps/typegpu-docs/public/typegpu-logo-light.svg#gh-light-mode-only)
4
4
 
5
5
 
6
- [Website](https://docs.swmansion.com/TypeGPU) — [Documentation](https://docs.swmansion.com/TypeGPU/getting-started)
6
+ [Website](https://docs.swmansion.com/TypeGPU) —
7
+ [Documentation](https://docs.swmansion.com/TypeGPU/getting-started)
7
8
 
8
9
  </div>
9
10
 
10
- **TypeGPU** is a TypeScript library that enhances the WebGPU API, allowing resource management in a type-safe, declarative way.
11
+ **TypeGPU** is a TypeScript library that enhances the WebGPU API, allowing
12
+ resource management in a type-safe, declarative way.
11
13
 
12
14
  <div align="center">
13
15
  <video autoplay muted loop playsinline src="https://github.com/user-attachments/assets/5bca716d-477d-44a1-a839-5df0c8d9044c"></video>
@@ -15,14 +17,20 @@
15
17
 
16
18
  ## Documentation
17
19
 
18
- We created a set of guides and tutorials to get you up and running fast. Check out our [Official Docs](https://docs.swmansion.com/TypeGPU/getting-started)!
20
+ We created a set of guides and tutorials to get you up and running fast. Check
21
+ out our [Official Docs](https://docs.swmansion.com/TypeGPU/getting-started)!
19
22
 
20
23
  ## What's next?
21
24
 
22
- - [Join the Software Mansion Community Discord](https://discord.gg/8jpfgDqPcM) to chat about TypeGPU or other Software Mansion libraries.
25
+ - [Join the Software Mansion Community Discord](https://discord.gg/8jpfgDqPcM)
26
+ to chat about TypeGPU or other Software Mansion libraries.
23
27
 
24
28
  ## TypeGPU is created by Software Mansion
25
29
 
26
30
  [![swm](https://logo.swmansion.com/logo?color=white&variant=desktop&width=150&tag=typegpu-github 'Software Mansion')](https://swmansion.com)
27
31
 
28
- Since 2012 [Software Mansion](https://swmansion.com) is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product – [Hire us](https://swmansion.com/contact/projects?utm_source=typegpu&utm_medium=readme).
32
+ Since 2012 [Software Mansion](https://swmansion.com) is a software agency with
33
+ experience in building web and mobile apps. We are Core React Native
34
+ Contributors and experts in dealing with all kinds of React Native issues. We
35
+ can help you build your next dream product –
36
+ [Hire us](https://swmansion.com/contact/projects?utm_source=typegpu&utm_medium=readme).
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7;var _chunkV4CSEIB2cjs = require('./chunk-V4CSEIB2.cjs');function X(t){let e=r=>r;return Object.setPrototypeOf(e,Y),e.propTypes=t,e}var Y={[_chunkV4CSEIB2cjs.a]:!0,type:"struct",$name(t){return _chunkV4CSEIB2cjs.f.call(void 0, this,t),this},toString(){return`struct:${_nullishCoalesce(_chunkV4CSEIB2cjs.e.call(void 0, this), () => ("<unnamed>"))}`}};var b=(t,e)=>{let r=e-1,i=~r;return(t&r)===0?t:(t&i)+e};var n= (_class =class{constructor(e){;_class.prototype.__init.call(this);this.type=e}__init() {this[_chunkV4CSEIB2cjs.a]=!0}}, _class),Z= exports.b ={uint8:_chunkV4CSEIB2cjs.ia,uint8x2:_chunkV4CSEIB2cjs.pa,uint8x4:_chunkV4CSEIB2cjs.za,sint8:_chunkV4CSEIB2cjs.ja,sint8x2:_chunkV4CSEIB2cjs.oa,sint8x4:_chunkV4CSEIB2cjs.ya,unorm8:_chunkV4CSEIB2cjs.ka,unorm8x2:_chunkV4CSEIB2cjs.ma,unorm8x4:_chunkV4CSEIB2cjs.wa,snorm8:_chunkV4CSEIB2cjs.ka,snorm8x2:_chunkV4CSEIB2cjs.ma,snorm8x4:_chunkV4CSEIB2cjs.wa,uint16:_chunkV4CSEIB2cjs.ia,uint16x2:_chunkV4CSEIB2cjs.pa,uint16x4:_chunkV4CSEIB2cjs.za,sint16:_chunkV4CSEIB2cjs.ja,sint16x2:_chunkV4CSEIB2cjs.oa,sint16x4:_chunkV4CSEIB2cjs.ya,unorm16:_chunkV4CSEIB2cjs.ka,unorm16x2:_chunkV4CSEIB2cjs.ma,unorm16x4:_chunkV4CSEIB2cjs.wa,snorm16:_chunkV4CSEIB2cjs.ka,snorm16x2:_chunkV4CSEIB2cjs.ma,snorm16x4:_chunkV4CSEIB2cjs.wa,float16:_chunkV4CSEIB2cjs.ka,float16x2:_chunkV4CSEIB2cjs.ma,float16x4:_chunkV4CSEIB2cjs.wa,float32:_chunkV4CSEIB2cjs.ka,float32x2:_chunkV4CSEIB2cjs.ma,float32x3:_chunkV4CSEIB2cjs.ra,float32x4:_chunkV4CSEIB2cjs.wa,uint32:_chunkV4CSEIB2cjs.ia,uint32x2:_chunkV4CSEIB2cjs.pa,uint32x3:_chunkV4CSEIB2cjs.ua,uint32x4:_chunkV4CSEIB2cjs.za,sint32:_chunkV4CSEIB2cjs.ja,sint32x2:_chunkV4CSEIB2cjs.oa,sint32x3:_chunkV4CSEIB2cjs.ta,sint32x4:_chunkV4CSEIB2cjs.ya,"unorm10-10-10-2":_chunkV4CSEIB2cjs.wa,"unorm8x4-bgra":_chunkV4CSEIB2cjs.wa},H= exports.c =Object.keys(Z),Vt= exports.d =new n("uint8"),Ft= exports.e =new n("uint8x2"),St= exports.f =new n("uint8x4"),_t= exports.g =new n("sint8"),ht= exports.h =new n("sint8x2"),Lt= exports.i =new n("sint8x4"),Wt= exports.j =new n("unorm8"),kt= exports.k =new n("unorm8x2"),Pt= exports.l =new n("unorm8x4"),zt= exports.m =new n("snorm8"),Ut= exports.n =new n("snorm8x2"),Ot= exports.o =new n("snorm8x4"),$t= exports.p =new n("uint16"),Et= exports.q =new n("uint16x2"),Nt= exports.r =new n("uint16x4"),Mt= exports.s =new n("sint16"),Ct= exports.t =new n("sint16x2"),Gt= exports.u =new n("sint16x4"),jt= exports.v =new n("unorm16"),Rt= exports.w =new n("unorm16x2"),Kt= exports.x =new n("unorm16x4"),Ht= exports.y =new n("snorm16"),Jt= exports.z =new n("snorm16x2"),qt= exports.A =new n("snorm16x4"),Qt= exports.B =new n("float16"),Xt= exports.C =new n("float16x2"),Yt= exports.D =new n("float16x4"),Zt= exports.E =new n("float32"),te= exports.F =new n("float32x2"),ee= exports.G =new n("float32x3"),ne= exports.H =new n("float32x4"),re= exports.I =new n("uint32"),oe= exports.J =new n("uint32x2"),ie= exports.K =new n("uint32x3"),ae= exports.L =new n("uint32x4"),se= exports.M =new n("sint32"),ue= exports.N =new n("sint32x2"),pe= exports.O =new n("sint32x3"),xe= exports.P =new n("sint32x4"),le= exports.Q =new n("unorm10-10-10-2"),me= exports.R =new n("unorm8x4-bgra");var tt={f32:4,f16:2,i32:4,u32:4,vec2f:8,vec2h:4,vec2i:8,vec2u:8,vec3f:16,vec3h:8,vec3i:16,vec3u:16,vec4f:16,vec4h:8,vec4i:16,vec4u:16,mat2x2f:8,mat3x3f:16,mat4x4f:16,atomic:4};function et(t){let e=_optionalChain([t, 'optionalAccess', _2 => _2.type]),r=tt[e];if(r!==void 0)return r;if(_chunkV4CSEIB2cjs.K.call(void 0, t))return Object.values(t.propTypes).map(x).reduce((i,y)=>i>y?i:y);if(_chunkV4CSEIB2cjs.J.call(void 0, t))return x(t.elementType);if(_chunkV4CSEIB2cjs.W.call(void 0, t)){let i=Object.values(t.propTypes)[0];return i?_nullishCoalesce(_chunkV4CSEIB2cjs.Y.call(void 0, i), () => (1)):1}if(_chunkV4CSEIB2cjs.V.call(void 0, t))return _nullishCoalesce(_chunkV4CSEIB2cjs.Y.call(void 0, t.elementType), () => (1));if(_chunkV4CSEIB2cjs.S.call(void 0, t)||_chunkV4CSEIB2cjs.X.call(void 0, t))return _nullishCoalesce(_chunkV4CSEIB2cjs.Y.call(void 0, t), () => (x(t.inner)));if(H.includes(e))return 1;throw new Error(`Cannot determine alignment of data: ${JSON.stringify(t)}`)}function nt(t){if(_chunkV4CSEIB2cjs.W.call(void 0, t)){let e=Object.values(t.propTypes)[0];return e?I(e):1}return _chunkV4CSEIB2cjs.V.call(void 0, t)?I(t.elementType):_chunkV4CSEIB2cjs.X.call(void 0, t)?_nullishCoalesce(_chunkV4CSEIB2cjs.Y.call(void 0, t), () => (I(t.inner))):_nullishCoalesce(_chunkV4CSEIB2cjs.Y.call(void 0, t), () => (1))}var J=new WeakMap,q=new WeakMap;function x(t){let e=J.get(t);return e===void 0&&(e=et(t),J.set(t,e)),e}function I(t){let e=q.get(t);return e===void 0&&(e=nt(t),q.set(t,e)),e}function rt(t){return x(t)}var ot={f32:4,f16:2,i32:4,u32:4,vec2f:8,vec2h:4,vec2i:8,vec2u:8,vec3f:12,vec3h:6,vec3i:12,vec3u:12,vec4f:16,vec4h:8,vec4i:16,vec4u:16,mat2x2f:16,mat3x3f:48,mat4x4f:64,uint8:1,uint8x2:2,uint8x4:4,sint8:1,sint8x2:2,sint8x4:4,unorm8:1,unorm8x2:2,unorm8x4:4,snorm8:1,snorm8x2:2,snorm8x4:4,uint16:2,uint16x2:4,uint16x4:8,sint16:2,sint16x2:4,sint16x4:8,unorm16:2,unorm16x2:4,unorm16x4:8,snorm16:2,snorm16x2:4,snorm16x4:8,float16:2,float16x2:4,float16x4:8,float32:4,float32x2:8,float32x3:12,float32x4:16,uint32:4,uint32x2:8,uint32x3:12,uint32x4:16,sint32:4,sint32x2:8,sint32x3:12,sint32x4:16,"unorm10-10-10-2":4,"unorm8x4-bgra":4,atomic:4};function it(t){let e=0;for(let r of Object.values(t.propTypes)){if(Number.isNaN(e))throw new Error("Only the last property of a struct can be unbounded");if(e=b(e,x(r)),e+=l(r),Number.isNaN(e)&&r.type!=="array")throw new Error("Cannot nest unbounded struct within another struct")}return b(e,x(t))}function at(t){let e=0;for(let r of Object.values(t.propTypes)){let i=I(r);e=b(e,i),e+=l(r)}return e}function st(t){let e=ot[_optionalChain([t, 'optionalAccess', _3 => _3.type])];if(e!==void 0)return e;if(_chunkV4CSEIB2cjs.K.call(void 0, t))return it(t);if(_chunkV4CSEIB2cjs.W.call(void 0, t))return at(t);if(_chunkV4CSEIB2cjs.J.call(void 0, t)){if(t.elementCount===0)return Number.NaN;let r=x(t.elementType);return b(l(t.elementType),r)*t.elementCount}if(_chunkV4CSEIB2cjs.V.call(void 0, t)){let r=I(t.elementType);return b(l(t.elementType),r)*t.elementCount}if(_chunkV4CSEIB2cjs.S.call(void 0, t)||_chunkV4CSEIB2cjs.X.call(void 0, t))return _nullishCoalesce(_chunkV4CSEIB2cjs.Z.call(void 0, t), () => (l(t.inner)));throw new Error(`Cannot determine size of data: ${t}`)}var Q=new WeakMap;function l(t){let e=Q.get(t);return e===void 0&&(e=st(t),Q.set(t,e)),e}function ut(t){return l(t)}function G(t,e){return new C(t,e)}var C= (_class2 =class{constructor(e,r){;_class2.prototype.__init2.call(this);_class2.prototype.__init3.call(this);this.elementType=e;this.elementCount=r;if(Number.isNaN(l(e)))throw new Error("Cannot nest runtime sized arrays.");if(!Number.isInteger(r)||r<0)throw new Error(`Cannot create array schema with invalid element count: ${r}.`)}__init2() {this[_chunkV4CSEIB2cjs.a]=!0}__init3() {this.type="array"}toString(){return`arrayOf(${this.elementType})`}}, _class2);function pt(t,e){return new j(t,e)}var j= (_class3 =class{constructor(e,r){;_class3.prototype.__init4.call(this);_class3.prototype.__init5.call(this);this.elementType=e;this.elementCount=r;if(!Number.isInteger(r)||r<0)throw new Error(`Cannot create disarray schema with invalid element count: ${r}.`)}__init4() {this[_chunkV4CSEIB2cjs.a]=!0}__init5() {this.type="disarray"}}, _class3);function xt(t){let e=r=>r;return Object.setPrototypeOf(e,lt),e.propTypes=t,e}var lt={[_chunkV4CSEIB2cjs.a]:!0,type:"unstruct",$name(t){return _chunkV4CSEIB2cjs.f.call(void 0, this,t),this},toString(){return`unstruct:${_nullishCoalesce(_chunkV4CSEIB2cjs.e.call(void 0, this), () => ("<unnamed>"))}`}};function mt(t){return new R(t)}var R= (_class4 =class{constructor(e){;_class4.prototype.__init6.call(this);_class4.prototype.__init7.call(this);this.inner=e}__init6() {this[_chunkV4CSEIB2cjs.a]=!0}__init7() {this.type="atomic"}}, _class4);function B(t,e){return _chunkV4CSEIB2cjs.S.call(void 0, t)?new k(t.inner,[e,...t.attribs]):_chunkV4CSEIB2cjs.X.call(void 0, t)?new P(t.inner,[e,...t.attribs]):_chunkV4CSEIB2cjs.U.call(void 0, t)?new P(t,[e]):new k(t,[e])}function ct(t,e){return B(e,{[_chunkV4CSEIB2cjs.a]:!0,type:"@align",value:t})}function yt(t,e){return B(e,{[_chunkV4CSEIB2cjs.a]:!0,type:"@size",value:t})}function ft(t,e){return B(e,{[_chunkV4CSEIB2cjs.a]:!0,type:"@location",value:t})}function dt(t,e){return B(e,{[_chunkV4CSEIB2cjs.a]:!0,type:"@interpolate",value:t})}function Tt(t){return(_chunkV4CSEIB2cjs.S.call(void 0, t)||_chunkV4CSEIB2cjs.X.call(void 0, t))&&t.attribs.find(_chunkV4CSEIB2cjs.R)!==void 0}function $e(t){return!_chunkV4CSEIB2cjs.S.call(void 0, t)&&!_chunkV4CSEIB2cjs.X.call(void 0, t)?"":t.attribs.map(e=>`${e.type}(${e.value}) `).join("")}var W= (_class5 =class{constructor(e,r){;_class5.prototype.__init8.call(this);this.inner=e;this.attribs=r;let i=_optionalChain([r, 'access', _4 => _4.find, 'call', _5 => _5(_chunkV4CSEIB2cjs.N), 'optionalAccess', _6 => _6.value]),y=_optionalChain([r, 'access', _7 => _7.find, 'call', _8 => _8(_chunkV4CSEIB2cjs.O), 'optionalAccess', _9 => _9.value]);if(i!==void 0){if(i<=0)throw new Error(`Custom data alignment must be a positive number, got: ${i}.`);if(Math.log2(i)%1!==0)throw new Error(`Alignment has to be a power of 2, got: ${i}.`);if(_chunkV4CSEIB2cjs.I.call(void 0, this.inner)&&i%x(this.inner)!==0)throw new Error(`Custom alignment has to be a multiple of the standard data alignment. Got: ${i}, expected multiple of: ${x(this.inner)}.`)}if(y!==void 0){if(y<l(this.inner))throw new Error(`Custom data size cannot be smaller then the standard data size. Got: ${y}, expected at least: ${l(this.inner)}.`);if(y<=0)throw new Error(`Custom data size must be a positive number. Got: ${y}.`)}}__init8() {this[_chunkV4CSEIB2cjs.a]=!0}}, _class5),k= (_class6 =class extends W{constructor(...args) { super(...args); _class6.prototype.__init9.call(this);_class6.prototype.__init10.call(this); }__init9() {this[_chunkV4CSEIB2cjs.a]=!0}__init10() {this.type="decorated"}}, _class6),P= (_class7 =class extends W{constructor(...args2) { super(...args2); _class7.prototype.__init11.call(this);_class7.prototype.__init12.call(this); }__init11() {this[_chunkV4CSEIB2cjs.a]=!0}__init12() {this.type="loose-decorated"}}, _class7);function a(t,e){return B(t,{[_chunkV4CSEIB2cjs.a]:!0,type:"@builtin",value:e})}var gt={vertexIndex:a(_chunkV4CSEIB2cjs.ia,"vertex_index"),instanceIndex:a(_chunkV4CSEIB2cjs.ia,"instance_index"),position:a(_chunkV4CSEIB2cjs.wa,"position"),clipDistances:a(G(_chunkV4CSEIB2cjs.ia,8),"clip_distances"),frontFacing:a(_chunkV4CSEIB2cjs.ka,"front_facing"),fragDepth:a(_chunkV4CSEIB2cjs.ka,"frag_depth"),sampleIndex:a(_chunkV4CSEIB2cjs.ia,"sample_index"),sampleMask:a(_chunkV4CSEIB2cjs.ia,"sample_mask"),localInvocationId:a(_chunkV4CSEIB2cjs.ua,"local_invocation_id"),localInvocationIndex:a(_chunkV4CSEIB2cjs.ia,"local_invocation_index"),globalInvocationId:a(_chunkV4CSEIB2cjs.ua,"global_invocation_id"),workgroupId:a(_chunkV4CSEIB2cjs.ua,"workgroup_id"),numWorkgroups:a(_chunkV4CSEIB2cjs.ua,"num_workgroups"),subgroupInvocationId:a(_chunkV4CSEIB2cjs.ia,"subgroup_invocation_id"),subgroupSize:a(_chunkV4CSEIB2cjs.ia,"subgroup_size")};exports.a = b; exports.b = Z; exports.c = H; exports.d = Vt; exports.e = Ft; exports.f = St; exports.g = _t; exports.h = ht; exports.i = Lt; exports.j = Wt; exports.k = kt; exports.l = Pt; exports.m = zt; exports.n = Ut; exports.o = Ot; exports.p = $t; exports.q = Et; exports.r = Nt; exports.s = Mt; exports.t = Ct; exports.u = Gt; exports.v = jt; exports.w = Rt; exports.x = Kt; exports.y = Ht; exports.z = Jt; exports.A = qt; exports.B = Qt; exports.C = Xt; exports.D = Yt; exports.E = Zt; exports.F = te; exports.G = ee; exports.H = ne; exports.I = re; exports.J = oe; exports.K = ie; exports.L = ae; exports.M = se; exports.N = ue; exports.O = pe; exports.P = xe; exports.Q = le; exports.R = me; exports.S = x; exports.T = I; exports.U = rt; exports.V = l; exports.W = ut; exports.X = G; exports.Y = ct; exports.Z = yt; exports._ = ft; exports.$ = dt; exports.aa = Tt; exports.ba = $e; exports.ca = X; exports.da = pt; exports.ea = xt; exports.fa = mt; exports.ga = gt;
2
+ //# sourceMappingURL=chunk-7ACLI4JY.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/Users/iwo/Projects/wigsill/packages/typegpu/dist/chunk-7ACLI4JY.cjs","../src/data/struct.ts"],"names":["struct","props","WgslStructImpl","$internal","label","setName","getName"],"mappings":"AAAA,m0BAA4O,SCmB5NA,CAAAA,CACdC,CAAAA,CACoB,CACpB,IAAMD,CAAAA,CAAaC,CAAAA,EAAaA,CAAAA,CAChC,OAAA,MAAA,CAAO,cAAA,CAAeD,CAAAA,CAAQE,CAAc,CAAA,CAC5CF,CAAAA,CAAO,SAAA,CAAYC,CAAAA,CAEZD,CACT,CAMA,IAAME,CAAAA,CAAiB,CACrB,CAACC,mBAAS,CAAA,CAAG,CAAA,CAAA,CACb,IAAA,CAAM,QAAA,CAEN,KAAA,CAAMC,CAAAA,CAAe,CACnB,OAAAC,iCAAAA,IAAQ,CAAMD,CAAK,CAAA,CACZ,IACT,CAAA,CAEA,QAAA,CAAA,CAAmB,CACjB,MAAO,CAAA,OAAA,mBAAUE,iCAAAA,IAAY,CAAA,SAAK,aAAW,CAAA,CAAA","file":"/Users/iwo/Projects/wigsill/packages/typegpu/dist/chunk-7ACLI4JY.cjs","sourcesContent":[null,"import { getName, setName } from '../name.ts';\nimport { $internal } from '../shared/symbols.ts';\nimport type { AnyWgslData, WgslStruct } from './wgslTypes.ts';\n\n// ----------\n// Public API\n// ----------\n\n/**\n * Creates a struct schema that can be used to construct GPU buffers.\n * Ensures proper alignment and padding of properties (as opposed to a `d.unstruct` schema).\n * The order of members matches the passed in properties object.\n *\n * @example\n * const CircleStruct = d.struct({ radius: d.f32, pos: d.vec3f });\n *\n * @param props Record with `string` keys and `TgpuData` values,\n * each entry describing one struct member.\n */\nexport function struct<TProps extends Record<string, AnyWgslData>>(\n props: TProps,\n): WgslStruct<TProps> {\n const struct = <T>(props: T) => props;\n Object.setPrototypeOf(struct, WgslStructImpl);\n struct.propTypes = props;\n\n return struct as WgslStruct<TProps>;\n}\n\n// --------------\n// Implementation\n// --------------\n\nconst WgslStructImpl = {\n [$internal]: true,\n type: 'struct',\n\n $name(label: string) {\n setName(this, label);\n return this;\n },\n\n toString(): string {\n return `struct:${getName(this) ?? '<unnamed>'}`;\n },\n};\n"]}
@@ -0,0 +1,4 @@
1
+ var D="0.5.8";var r=Symbol(`typegpu:${D}:$internal`),se=Symbol(`typegpu:${D}:$wgslDataType`),tt=Symbol(`typegpu:${D}:$gpuValueOf`),O=Symbol(`typegpu:${D}:$getNameForward`);function fe(e){return!!e?.[O]}function P(e){return fe(e)?P(e[O]):globalThis.__TYPEGPU_META__?.get(e)?.name}function B(e,t){globalThis.__TYPEGPU_META__??=new WeakMap;let n=globalThis.__TYPEGPU_META__;n.set(e,{...n.get(e),name:t})}function st(e){return!!e?.$name}var K="Invariant failed";function H(e,t){if(e)return;throw new Error(K)}var ie=class e extends Error{constructor(n,i){let s=i.map(a=>`- ${a}`);s.length>20&&(s=[...s.slice(0,11),"...",...s.slice(-10)]);super(`Resolution of the following tree failed:
2
+ ${s.join(`
3
+ `)}: ${n&&typeof n=="object"&&"message"in n?n.message:n}`);this.cause=n;this.trace=i;Object.setPrototypeOf(this,e.prototype)}appendToTrace(n){let i=[n,...this.trace];return new e(this.cause,i)}},ae=class e extends Error{constructor(n){super(`Missing value for '${n}'`);this.slot=n;Object.setPrototypeOf(this,e.prototype)}},oe=class e extends Error{constructor(t){super(`Buffer '${P(t)??"<unnamed>"}' is not bindable as a uniform. Use .$usage('uniform') to allow it.`),Object.setPrototypeOf(this,e.prototype)}},he=class e extends Error{constructor(t,n){super(`The function '${t??"<unnamed>"}' is missing links to the following external values: ${n}.`),Object.setPrototypeOf(this,e.prototype)}},ue=class e extends Error{constructor(t){super(`Missing bind groups for layouts: '${[...t].map(n=>P(n)??"<unnamed>").join(", ")}'. Please provide it using pipeline.with(layout, bindGroup).(...)`),Object.setPrototypeOf(this,e.prototype)}},ye=class e extends Error{constructor(t){super(`Missing vertex buffers for layouts: '${[...t].map(n=>P(n)??"<unnamed>").join(", ")}'. Please provide it using pipeline.with(layout, buffer).(...)`),Object.setPrototypeOf(this,e.prototype)}};var w=Symbol("Type token for the inferred (CPU & GPU) representation of a resource");function ct(e){return!!e?.[se]}var lt={[r]:!0,type:"void",[w]:void 0},be=["bool","f32","f16","i32","u32","vec2f","vec2h","vec2i","vec2u","vec2<bool>","vec3f","vec3h","vec3i","vec3u","vec3<bool>","vec4f","vec4h","vec4i","vec4u","vec4<bool>","mat2x2f","mat3x3f","mat4x4f","struct","array","ptr","atomic","decorated","abstractInt","abstractFloat","void"];function ze(e){let t=e;return!!t?.[r]&&typeof t.kind?.startsWith=="function"&&t.kind.startsWith("vec")}function Ve(e){let t=e;return!!t?.[r]&&typeof t.type?.startsWith=="function"&&t.type.startsWith?.("vec2")}function ve(e){let t=e;return!!t?.[r]&&typeof t.type?.startsWith=="function"&&t.type.startsWith("vec3")}function _e(e){let t=e;return!!t?.[r]&&typeof t.type?.startsWith=="function"&&t.type.startsWith("vec4")}function ce(e){return Ve(e)||ve(e)||_e(e)}function xt(e){let t=e;return!!t?.[r]&&typeof t.kind?.startsWith=="function"&&t.kind.startsWith("mat")}function Ae(e){return e?.[r]&&e?.type==="mat2x2f"}function Ie(e){return e?.[r]&&e?.type==="mat3x3f"}function ke(e){return e?.[r]&&e?.type==="mat4x4f"}function wt(e){return Ae(e)||Ie(e)||ke(e)}function dt(e){return ze(e)&&["vec2f","vec3f","vec4f"].includes(e.kind)}function le(e){return e?.[r]&&be.includes(e?.type)}function pt(e){return e?.[r]&&e?.type==="array"}function mt(e){return e?.[r]&&e?.type==="struct"}function gt(e){return e?.[r]&&e?.type==="ptr"}function Tt(e){return e?.[r]&&e?.type==="atomic"}function xe(e){return e?.[r]&&e?.type==="@align"}function we(e){return e?.[r]&&e?.type==="@size"}function de(e){return e?.[r]&&e?.type==="@location"}function ft(e){return e?.[r]&&e?.type==="@interpolate"}function bt(e){return e?.[r]&&e?.type==="@builtin"}function pe(e){return e?.[r]&&e?.type==="decorated"}function zt(e){return e?.[r]&&e.type==="void"}var me=["uint8","uint8x2","uint8x4","sint8","sint8x2","sint8x4","unorm8","unorm8x2","unorm8x4","snorm8","snorm8x2","snorm8x4","uint16","uint16x2","uint16x4","sint16","sint16x2","sint16x4","unorm16","unorm16x2","unorm16x4","snorm16","snorm16x2","snorm16x4","float16","float16x2","float16x4","float32","float32x2","float32x3","float32x4","uint32","uint32x2","uint32x3","uint32x4","sint32","sint32x2","sint32x3","sint32x4","unorm10-10-10-2","unorm8x4-bgra"],Vt={f32:"float32",vec2f:"float32x2",vec3f:"float32x3",vec4f:"float32x4",f16:"float16",vec2h:"float16x2",vec4h:"float16x4",u32:"uint32",vec2u:"uint32x2",vec3u:"uint32x3",vec4u:"uint32x4",i32:"sint32",vec2i:"sint32x2",vec3i:"sint32x3",vec4i:"sint32x4"};var Se=["unstruct","disarray","loose-decorated",...me];function De(e){return e?.[r]&&Se.includes(e?.type)}function It(e){return e?.[r]&&e?.type==="disarray"}function kt(e){return e?.[r]&&e?.type==="unstruct"}function $t(e){return e?.[r]&&e?.type==="loose-decorated"}function St(e){return e.attribs?.find(xe)?.value}function Dt(e){return e.attribs?.find(we)?.value}function Pt(e){return e.attribs?.find(de)?.value}function Ct(e){return le(e)||De(e)}var Ft={type:"unknown",toString(){return"unknown"}},W=class{constructor(t,n){this.value=t;this.dataType=n}};function u(e,t){return new W(e,t.type==="decorated"||t.type==="loose-decorated"?t.inner:t)}function Mt(e){return e instanceof W}import j from"typed-binary";var L=null,Pe=Symbol("CPU"),Ce=Symbol("GPU"),Fe={CPU:Pe,GPU:Ce},C=[];function Rt(e,t){H(L===null,"Cannot nest context providers"),L=e;try{return t()}finally{L=null}}function Bt(){return L}function Wt(e){C.push(e)}function Lt(e){let t=C.pop();e!==void 0&&H(t===e,"Unexpected mode")}var ge=()=>C.length>0&&C[C.length-1]===Fe.GPU;function*Ot(e){let t=0;for(;;)e.has(t)||(yield t),t++}function y(e,t,n){let i=(...s)=>ge()?t(...s):e(...s);return i[r]={implementation:e,argTypes:n},i}var Qt={[r]:!0,type:"abstractInt"},Xt={[r]:!0,type:"abstractFloat"},G={[r]:!0,type:"bool"},Me=y(e=>typeof e=="boolean"?e?1:0:Number.isInteger(e)?((e<0||e>4294967295)&&console.warn(`u32 value ${e} overflowed`),(e&4294967295)>>>0):Math.max(0,Math.min(4294967295,Math.floor(e))),e=>u(`u32(${e.value})`,F)),F=Object.assign(Me,{type:"u32"}),Ne=y(e=>{if(typeof e=="boolean")return e?1:0;if(Number.isInteger(e))return(e<-2147483648||e>2147483647)&&console.warn(`i32 value ${e} overflowed`),(e|0)&4294967295;let t=e<0?Math.ceil(e):Math.floor(e);return Math.max(-2147483648,Math.min(2147483647,t))},e=>u(`i32(${e.value})`,M)),M=Object.assign(Ne,{type:"i32"}),Ue=y(e=>{if(typeof e=="boolean")return e?1:0;let t=new Float32Array(1);return t[0]=e,t[0]},e=>u(`f32(${e.value})`,N)),N=Object.assign(Ue,{type:"f32"}),Re=y(e=>{if(typeof e=="boolean")return e?1:0;let t=new ArrayBuffer(2);return j.f16.write(new j.BufferWriter(t),e),j.f16.read(new j.BufferReader(t))},e=>u(`f16(${e.value})`,U)),U=Object.assign(Re,{type:"f16"});var R=class extends Array{[r]=!0;"~resolve"(){return`${this.kind}(${this.join(", ")})`}toString(){return this["~resolve"]()}get xx(){return new this._Vec2(this[0],this[0])}get xy(){return new this._Vec2(this[0],this[1])}get xz(){return new this._Vec2(this[0],this[2])}get xw(){return new this._Vec2(this[0],this[3])}get yx(){return new this._Vec2(this[1],this[0])}get yy(){return new this._Vec2(this[1],this[1])}get yz(){return new this._Vec2(this[1],this[2])}get yw(){return new this._Vec2(this[1],this[3])}get zx(){return new this._Vec2(this[2],this[0])}get zy(){return new this._Vec2(this[2],this[1])}get zz(){return new this._Vec2(this[2],this[2])}get zw(){return new this._Vec2(this[2],this[3])}get wx(){return new this._Vec2(this[3],this[0])}get wy(){return new this._Vec2(this[3],this[1])}get wz(){return new this._Vec2(this[3],this[2])}get ww(){return new this._Vec2(this[3],this[3])}get xxx(){return new this._Vec3(this[0],this[0],this[0])}get xxy(){return new this._Vec3(this[0],this[0],this[1])}get xxz(){return new this._Vec3(this[0],this[0],this[2])}get xxw(){return new this._Vec3(this[0],this[0],this[3])}get xyx(){return new this._Vec3(this[0],this[1],this[0])}get xyy(){return new this._Vec3(this[0],this[1],this[1])}get xyz(){return new this._Vec3(this[0],this[1],this[2])}get xyw(){return new this._Vec3(this[0],this[1],this[3])}get xzx(){return new this._Vec3(this[0],this[2],this[0])}get xzy(){return new this._Vec3(this[0],this[2],this[1])}get xzz(){return new this._Vec3(this[0],this[2],this[2])}get xzw(){return new this._Vec3(this[0],this[2],this[3])}get xwx(){return new this._Vec3(this[0],this[3],this[0])}get xwy(){return new this._Vec3(this[0],this[3],this[1])}get xwz(){return new this._Vec3(this[0],this[3],this[2])}get xww(){return new this._Vec3(this[0],this[3],this[3])}get yxx(){return new this._Vec3(this[1],this[0],this[0])}get yxy(){return new this._Vec3(this[1],this[0],this[1])}get yxz(){return new this._Vec3(this[1],this[0],this[2])}get yxw(){return new this._Vec3(this[1],this[0],this[3])}get yyx(){return new this._Vec3(this[1],this[1],this[0])}get yyy(){return new this._Vec3(this[1],this[1],this[1])}get yyz(){return new this._Vec3(this[1],this[1],this[2])}get yyw(){return new this._Vec3(this[1],this[1],this[3])}get yzx(){return new this._Vec3(this[1],this[2],this[0])}get yzy(){return new this._Vec3(this[1],this[2],this[1])}get yzz(){return new this._Vec3(this[1],this[2],this[2])}get yzw(){return new this._Vec3(this[1],this[2],this[3])}get ywx(){return new this._Vec3(this[1],this[3],this[0])}get ywy(){return new this._Vec3(this[1],this[3],this[1])}get ywz(){return new this._Vec3(this[1],this[3],this[2])}get yww(){return new this._Vec3(this[1],this[3],this[3])}get zxx(){return new this._Vec3(this[2],this[0],this[0])}get zxy(){return new this._Vec3(this[2],this[0],this[1])}get zxz(){return new this._Vec3(this[2],this[0],this[2])}get zxw(){return new this._Vec3(this[2],this[0],this[3])}get zyx(){return new this._Vec3(this[2],this[1],this[0])}get zyy(){return new this._Vec3(this[2],this[1],this[1])}get zyz(){return new this._Vec3(this[2],this[1],this[2])}get zyw(){return new this._Vec3(this[2],this[1],this[3])}get zzx(){return new this._Vec3(this[2],this[2],this[0])}get zzy(){return new this._Vec3(this[2],this[2],this[1])}get zzz(){return new this._Vec3(this[2],this[2],this[2])}get zzw(){return new this._Vec3(this[2],this[2],this[3])}get zwx(){return new this._Vec3(this[2],this[3],this[0])}get zwy(){return new this._Vec3(this[2],this[3],this[1])}get zwz(){return new this._Vec3(this[2],this[3],this[2])}get zww(){return new this._Vec3(this[2],this[3],this[3])}get wxx(){return new this._Vec3(this[3],this[0],this[0])}get wxy(){return new this._Vec3(this[3],this[0],this[1])}get wxz(){return new this._Vec3(this[3],this[0],this[2])}get wxw(){return new this._Vec3(this[3],this[0],this[3])}get wyx(){return new this._Vec3(this[3],this[1],this[0])}get wyy(){return new this._Vec3(this[3],this[1],this[1])}get wyz(){return new this._Vec3(this[3],this[1],this[2])}get wyw(){return new this._Vec3(this[3],this[1],this[3])}get wzx(){return new this._Vec3(this[3],this[2],this[0])}get wzy(){return new this._Vec3(this[3],this[2],this[1])}get wzz(){return new this._Vec3(this[3],this[2],this[2])}get wzw(){return new this._Vec3(this[3],this[2],this[3])}get wwx(){return new this._Vec3(this[3],this[3],this[0])}get wwy(){return new this._Vec3(this[3],this[3],this[1])}get wwz(){return new this._Vec3(this[3],this[3],this[2])}get www(){return new this._Vec3(this[3],this[3],this[3])}get xxxx(){return new this._Vec4(this[0],this[0],this[0],this[0])}get xxxy(){return new this._Vec4(this[0],this[0],this[0],this[1])}get xxxz(){return new this._Vec4(this[0],this[0],this[0],this[2])}get xxxw(){return new this._Vec4(this[0],this[0],this[0],this[3])}get xxyx(){return new this._Vec4(this[0],this[0],this[1],this[0])}get xxyy(){return new this._Vec4(this[0],this[0],this[1],this[1])}get xxyz(){return new this._Vec4(this[0],this[0],this[1],this[2])}get xxyw(){return new this._Vec4(this[0],this[0],this[1],this[3])}get xxzx(){return new this._Vec4(this[0],this[0],this[2],this[0])}get xxzy(){return new this._Vec4(this[0],this[0],this[2],this[1])}get xxzz(){return new this._Vec4(this[0],this[0],this[2],this[2])}get xxzw(){return new this._Vec4(this[0],this[0],this[2],this[3])}get xxwx(){return new this._Vec4(this[0],this[0],this[3],this[0])}get xxwy(){return new this._Vec4(this[0],this[0],this[3],this[1])}get xxwz(){return new this._Vec4(this[0],this[0],this[3],this[2])}get xxww(){return new this._Vec4(this[0],this[0],this[3],this[3])}get xyxx(){return new this._Vec4(this[0],this[1],this[0],this[0])}get xyxy(){return new this._Vec4(this[0],this[1],this[0],this[1])}get xyxz(){return new this._Vec4(this[0],this[1],this[0],this[2])}get xyxw(){return new this._Vec4(this[0],this[1],this[0],this[3])}get xyyx(){return new this._Vec4(this[0],this[1],this[1],this[0])}get xyyy(){return new this._Vec4(this[0],this[1],this[1],this[1])}get xyyz(){return new this._Vec4(this[0],this[1],this[1],this[2])}get xyyw(){return new this._Vec4(this[0],this[1],this[1],this[3])}get xyzx(){return new this._Vec4(this[0],this[1],this[2],this[0])}get xyzy(){return new this._Vec4(this[0],this[1],this[2],this[1])}get xyzz(){return new this._Vec4(this[0],this[1],this[2],this[2])}get xyzw(){return new this._Vec4(this[0],this[1],this[2],this[3])}get xywx(){return new this._Vec4(this[0],this[1],this[3],this[0])}get xywy(){return new this._Vec4(this[0],this[1],this[3],this[1])}get xywz(){return new this._Vec4(this[0],this[1],this[3],this[2])}get xyww(){return new this._Vec4(this[0],this[1],this[3],this[3])}get xzxx(){return new this._Vec4(this[0],this[2],this[0],this[0])}get xzxy(){return new this._Vec4(this[0],this[2],this[0],this[1])}get xzxz(){return new this._Vec4(this[0],this[2],this[0],this[2])}get xzxw(){return new this._Vec4(this[0],this[2],this[0],this[3])}get xzyx(){return new this._Vec4(this[0],this[2],this[1],this[0])}get xzyy(){return new this._Vec4(this[0],this[2],this[1],this[1])}get xzyz(){return new this._Vec4(this[0],this[2],this[1],this[2])}get xzyw(){return new this._Vec4(this[0],this[2],this[1],this[3])}get xzzx(){return new this._Vec4(this[0],this[2],this[2],this[0])}get xzzy(){return new this._Vec4(this[0],this[2],this[2],this[1])}get xzzz(){return new this._Vec4(this[0],this[2],this[2],this[2])}get xzzw(){return new this._Vec4(this[0],this[2],this[2],this[3])}get xzwx(){return new this._Vec4(this[0],this[2],this[3],this[0])}get xzwy(){return new this._Vec4(this[0],this[2],this[3],this[1])}get xzwz(){return new this._Vec4(this[0],this[2],this[3],this[2])}get xzww(){return new this._Vec4(this[0],this[2],this[3],this[3])}get xwxx(){return new this._Vec4(this[0],this[3],this[0],this[0])}get xwxy(){return new this._Vec4(this[0],this[3],this[0],this[1])}get xwxz(){return new this._Vec4(this[0],this[3],this[0],this[2])}get xwxw(){return new this._Vec4(this[0],this[3],this[0],this[3])}get xwyx(){return new this._Vec4(this[0],this[3],this[1],this[0])}get xwyy(){return new this._Vec4(this[0],this[3],this[1],this[1])}get xwyz(){return new this._Vec4(this[0],this[3],this[1],this[2])}get xwyw(){return new this._Vec4(this[0],this[3],this[1],this[3])}get xwzx(){return new this._Vec4(this[0],this[3],this[2],this[0])}get xwzy(){return new this._Vec4(this[0],this[3],this[2],this[1])}get xwzz(){return new this._Vec4(this[0],this[3],this[2],this[2])}get xwzw(){return new this._Vec4(this[0],this[3],this[2],this[3])}get xwwx(){return new this._Vec4(this[0],this[3],this[3],this[0])}get xwwy(){return new this._Vec4(this[0],this[3],this[3],this[1])}get xwwz(){return new this._Vec4(this[0],this[3],this[3],this[2])}get xwww(){return new this._Vec4(this[0],this[3],this[3],this[3])}get yxxx(){return new this._Vec4(this[1],this[0],this[0],this[0])}get yxxy(){return new this._Vec4(this[1],this[0],this[0],this[1])}get yxxz(){return new this._Vec4(this[1],this[0],this[0],this[2])}get yxxw(){return new this._Vec4(this[1],this[0],this[0],this[3])}get yxyx(){return new this._Vec4(this[1],this[0],this[1],this[0])}get yxyy(){return new this._Vec4(this[1],this[0],this[1],this[1])}get yxyz(){return new this._Vec4(this[1],this[0],this[1],this[2])}get yxyw(){return new this._Vec4(this[1],this[0],this[1],this[3])}get yxzx(){return new this._Vec4(this[1],this[0],this[2],this[0])}get yxzy(){return new this._Vec4(this[1],this[0],this[2],this[1])}get yxzz(){return new this._Vec4(this[1],this[0],this[2],this[2])}get yxzw(){return new this._Vec4(this[1],this[0],this[2],this[3])}get yxwx(){return new this._Vec4(this[1],this[0],this[3],this[0])}get yxwy(){return new this._Vec4(this[1],this[0],this[3],this[1])}get yxwz(){return new this._Vec4(this[1],this[0],this[3],this[2])}get yxww(){return new this._Vec4(this[1],this[0],this[3],this[3])}get yyxx(){return new this._Vec4(this[1],this[1],this[0],this[0])}get yyxy(){return new this._Vec4(this[1],this[1],this[0],this[1])}get yyxz(){return new this._Vec4(this[1],this[1],this[0],this[2])}get yyxw(){return new this._Vec4(this[1],this[1],this[0],this[3])}get yyyx(){return new this._Vec4(this[1],this[1],this[1],this[0])}get yyyy(){return new this._Vec4(this[1],this[1],this[1],this[1])}get yyyz(){return new this._Vec4(this[1],this[1],this[1],this[2])}get yyyw(){return new this._Vec4(this[1],this[1],this[1],this[3])}get yyzx(){return new this._Vec4(this[1],this[1],this[2],this[0])}get yyzy(){return new this._Vec4(this[1],this[1],this[2],this[1])}get yyzz(){return new this._Vec4(this[1],this[1],this[2],this[2])}get yyzw(){return new this._Vec4(this[1],this[1],this[2],this[3])}get yywx(){return new this._Vec4(this[1],this[1],this[3],this[0])}get yywy(){return new this._Vec4(this[1],this[1],this[3],this[1])}get yywz(){return new this._Vec4(this[1],this[1],this[3],this[2])}get yyww(){return new this._Vec4(this[1],this[1],this[3],this[3])}get yzxx(){return new this._Vec4(this[1],this[2],this[0],this[0])}get yzxy(){return new this._Vec4(this[1],this[2],this[0],this[1])}get yzxz(){return new this._Vec4(this[1],this[2],this[0],this[2])}get yzxw(){return new this._Vec4(this[1],this[2],this[0],this[3])}get yzyx(){return new this._Vec4(this[1],this[2],this[1],this[0])}get yzyy(){return new this._Vec4(this[1],this[2],this[1],this[1])}get yzyz(){return new this._Vec4(this[1],this[2],this[1],this[2])}get yzyw(){return new this._Vec4(this[1],this[2],this[1],this[3])}get yzzx(){return new this._Vec4(this[1],this[2],this[2],this[0])}get yzzy(){return new this._Vec4(this[1],this[2],this[2],this[1])}get yzzz(){return new this._Vec4(this[1],this[2],this[2],this[2])}get yzzw(){return new this._Vec4(this[1],this[2],this[2],this[3])}get yzwx(){return new this._Vec4(this[1],this[2],this[3],this[0])}get yzwy(){return new this._Vec4(this[1],this[2],this[3],this[1])}get yzwz(){return new this._Vec4(this[1],this[2],this[3],this[2])}get yzww(){return new this._Vec4(this[1],this[2],this[3],this[3])}get ywxx(){return new this._Vec4(this[1],this[3],this[0],this[0])}get ywxy(){return new this._Vec4(this[1],this[3],this[0],this[1])}get ywxz(){return new this._Vec4(this[1],this[3],this[0],this[2])}get ywxw(){return new this._Vec4(this[1],this[3],this[0],this[3])}get ywyx(){return new this._Vec4(this[1],this[3],this[1],this[0])}get ywyy(){return new this._Vec4(this[1],this[3],this[1],this[1])}get ywyz(){return new this._Vec4(this[1],this[3],this[1],this[2])}get ywyw(){return new this._Vec4(this[1],this[3],this[1],this[3])}get ywzx(){return new this._Vec4(this[1],this[3],this[2],this[0])}get ywzy(){return new this._Vec4(this[1],this[3],this[2],this[1])}get ywzz(){return new this._Vec4(this[1],this[3],this[2],this[2])}get ywzw(){return new this._Vec4(this[1],this[3],this[2],this[3])}get ywwx(){return new this._Vec4(this[1],this[3],this[3],this[0])}get ywwy(){return new this._Vec4(this[1],this[3],this[3],this[1])}get ywwz(){return new this._Vec4(this[1],this[3],this[3],this[2])}get ywww(){return new this._Vec4(this[1],this[3],this[3],this[3])}get zxxx(){return new this._Vec4(this[2],this[0],this[0],this[0])}get zxxy(){return new this._Vec4(this[2],this[0],this[0],this[1])}get zxxz(){return new this._Vec4(this[2],this[0],this[0],this[2])}get zxxw(){return new this._Vec4(this[2],this[0],this[0],this[3])}get zxyx(){return new this._Vec4(this[2],this[0],this[1],this[0])}get zxyy(){return new this._Vec4(this[2],this[0],this[1],this[1])}get zxyz(){return new this._Vec4(this[2],this[0],this[1],this[2])}get zxyw(){return new this._Vec4(this[2],this[0],this[1],this[3])}get zxzx(){return new this._Vec4(this[2],this[0],this[2],this[0])}get zxzy(){return new this._Vec4(this[2],this[0],this[2],this[1])}get zxzz(){return new this._Vec4(this[2],this[0],this[2],this[2])}get zxzw(){return new this._Vec4(this[2],this[0],this[2],this[3])}get zxwx(){return new this._Vec4(this[2],this[0],this[3],this[0])}get zxwy(){return new this._Vec4(this[2],this[0],this[3],this[1])}get zxwz(){return new this._Vec4(this[2],this[0],this[3],this[2])}get zxww(){return new this._Vec4(this[2],this[0],this[3],this[3])}get zyxx(){return new this._Vec4(this[2],this[1],this[0],this[0])}get zyxy(){return new this._Vec4(this[2],this[1],this[0],this[1])}get zyxz(){return new this._Vec4(this[2],this[1],this[0],this[2])}get zyxw(){return new this._Vec4(this[2],this[1],this[0],this[3])}get zyyx(){return new this._Vec4(this[2],this[1],this[1],this[0])}get zyyy(){return new this._Vec4(this[2],this[1],this[1],this[1])}get zyyz(){return new this._Vec4(this[2],this[1],this[1],this[2])}get zyyw(){return new this._Vec4(this[2],this[1],this[1],this[3])}get zyzx(){return new this._Vec4(this[2],this[1],this[2],this[0])}get zyzy(){return new this._Vec4(this[2],this[1],this[2],this[1])}get zyzz(){return new this._Vec4(this[2],this[1],this[2],this[2])}get zyzw(){return new this._Vec4(this[2],this[1],this[2],this[3])}get zywx(){return new this._Vec4(this[2],this[1],this[3],this[0])}get zywy(){return new this._Vec4(this[2],this[1],this[3],this[1])}get zywz(){return new this._Vec4(this[2],this[1],this[3],this[2])}get zyww(){return new this._Vec4(this[2],this[1],this[3],this[3])}get zzxx(){return new this._Vec4(this[2],this[2],this[0],this[0])}get zzxy(){return new this._Vec4(this[2],this[2],this[0],this[1])}get zzxz(){return new this._Vec4(this[2],this[2],this[0],this[2])}get zzxw(){return new this._Vec4(this[2],this[2],this[0],this[3])}get zzyx(){return new this._Vec4(this[2],this[2],this[1],this[0])}get zzyy(){return new this._Vec4(this[2],this[2],this[1],this[1])}get zzyz(){return new this._Vec4(this[2],this[2],this[1],this[2])}get zzyw(){return new this._Vec4(this[2],this[2],this[1],this[3])}get zzzx(){return new this._Vec4(this[2],this[2],this[2],this[0])}get zzzy(){return new this._Vec4(this[2],this[2],this[2],this[1])}get zzzz(){return new this._Vec4(this[2],this[2],this[2],this[2])}get zzzw(){return new this._Vec4(this[2],this[2],this[2],this[3])}get zzwx(){return new this._Vec4(this[2],this[2],this[3],this[0])}get zzwy(){return new this._Vec4(this[2],this[2],this[3],this[1])}get zzwz(){return new this._Vec4(this[2],this[2],this[3],this[2])}get zzww(){return new this._Vec4(this[2],this[2],this[3],this[3])}get zwxx(){return new this._Vec4(this[2],this[3],this[0],this[0])}get zwxy(){return new this._Vec4(this[2],this[3],this[0],this[1])}get zwxz(){return new this._Vec4(this[2],this[3],this[0],this[2])}get zwxw(){return new this._Vec4(this[2],this[3],this[0],this[3])}get zwyx(){return new this._Vec4(this[2],this[3],this[1],this[0])}get zwyy(){return new this._Vec4(this[2],this[3],this[1],this[1])}get zwyz(){return new this._Vec4(this[2],this[3],this[1],this[2])}get zwyw(){return new this._Vec4(this[2],this[3],this[1],this[3])}get zwzx(){return new this._Vec4(this[2],this[3],this[2],this[0])}get zwzy(){return new this._Vec4(this[2],this[3],this[2],this[1])}get zwzz(){return new this._Vec4(this[2],this[3],this[2],this[2])}get zwzw(){return new this._Vec4(this[2],this[3],this[2],this[3])}get zwwx(){return new this._Vec4(this[2],this[3],this[3],this[0])}get zwwy(){return new this._Vec4(this[2],this[3],this[3],this[1])}get zwwz(){return new this._Vec4(this[2],this[3],this[3],this[2])}get zwww(){return new this._Vec4(this[2],this[3],this[3],this[3])}get wxxx(){return new this._Vec4(this[3],this[0],this[0],this[0])}get wxxy(){return new this._Vec4(this[3],this[0],this[0],this[1])}get wxxz(){return new this._Vec4(this[3],this[0],this[0],this[2])}get wxxw(){return new this._Vec4(this[3],this[0],this[0],this[3])}get wxyx(){return new this._Vec4(this[3],this[0],this[1],this[0])}get wxyy(){return new this._Vec4(this[3],this[0],this[1],this[1])}get wxyz(){return new this._Vec4(this[3],this[0],this[1],this[2])}get wxyw(){return new this._Vec4(this[3],this[0],this[1],this[3])}get wxzx(){return new this._Vec4(this[3],this[0],this[2],this[0])}get wxzy(){return new this._Vec4(this[3],this[0],this[2],this[1])}get wxzz(){return new this._Vec4(this[3],this[0],this[2],this[2])}get wxzw(){return new this._Vec4(this[3],this[0],this[2],this[3])}get wxwx(){return new this._Vec4(this[3],this[0],this[3],this[0])}get wxwy(){return new this._Vec4(this[3],this[0],this[3],this[1])}get wxwz(){return new this._Vec4(this[3],this[0],this[3],this[2])}get wxww(){return new this._Vec4(this[3],this[0],this[3],this[3])}get wyxx(){return new this._Vec4(this[3],this[1],this[0],this[0])}get wyxy(){return new this._Vec4(this[3],this[1],this[0],this[1])}get wyxz(){return new this._Vec4(this[3],this[1],this[0],this[2])}get wyxw(){return new this._Vec4(this[3],this[1],this[0],this[3])}get wyyx(){return new this._Vec4(this[3],this[1],this[1],this[0])}get wyyy(){return new this._Vec4(this[3],this[1],this[1],this[1])}get wyyz(){return new this._Vec4(this[3],this[1],this[1],this[2])}get wyyw(){return new this._Vec4(this[3],this[1],this[1],this[3])}get wyzx(){return new this._Vec4(this[3],this[1],this[2],this[0])}get wyzy(){return new this._Vec4(this[3],this[1],this[2],this[1])}get wyzz(){return new this._Vec4(this[3],this[1],this[2],this[2])}get wyzw(){return new this._Vec4(this[3],this[1],this[2],this[3])}get wywx(){return new this._Vec4(this[3],this[1],this[3],this[0])}get wywy(){return new this._Vec4(this[3],this[1],this[3],this[1])}get wywz(){return new this._Vec4(this[3],this[1],this[3],this[2])}get wyww(){return new this._Vec4(this[3],this[1],this[3],this[3])}get wzxx(){return new this._Vec4(this[3],this[2],this[0],this[0])}get wzxy(){return new this._Vec4(this[3],this[2],this[0],this[1])}get wzxz(){return new this._Vec4(this[3],this[2],this[0],this[2])}get wzxw(){return new this._Vec4(this[3],this[2],this[0],this[3])}get wzyx(){return new this._Vec4(this[3],this[2],this[1],this[0])}get wzyy(){return new this._Vec4(this[3],this[2],this[1],this[1])}get wzyz(){return new this._Vec4(this[3],this[2],this[1],this[2])}get wzyw(){return new this._Vec4(this[3],this[2],this[1],this[3])}get wzzx(){return new this._Vec4(this[3],this[2],this[2],this[0])}get wzzy(){return new this._Vec4(this[3],this[2],this[2],this[1])}get wzzz(){return new this._Vec4(this[3],this[2],this[2],this[2])}get wzzw(){return new this._Vec4(this[3],this[2],this[2],this[3])}get wzwx(){return new this._Vec4(this[3],this[2],this[3],this[0])}get wzwy(){return new this._Vec4(this[3],this[2],this[3],this[1])}get wzwz(){return new this._Vec4(this[3],this[2],this[3],this[2])}get wzww(){return new this._Vec4(this[3],this[2],this[3],this[3])}get wwxx(){return new this._Vec4(this[3],this[3],this[0],this[0])}get wwxy(){return new this._Vec4(this[3],this[3],this[0],this[1])}get wwxz(){return new this._Vec4(this[3],this[3],this[0],this[2])}get wwxw(){return new this._Vec4(this[3],this[3],this[0],this[3])}get wwyx(){return new this._Vec4(this[3],this[3],this[1],this[0])}get wwyy(){return new this._Vec4(this[3],this[3],this[1],this[1])}get wwyz(){return new this._Vec4(this[3],this[3],this[1],this[2])}get wwyw(){return new this._Vec4(this[3],this[3],this[1],this[3])}get wwzx(){return new this._Vec4(this[3],this[3],this[2],this[0])}get wwzy(){return new this._Vec4(this[3],this[3],this[2],this[1])}get wwzz(){return new this._Vec4(this[3],this[3],this[2],this[2])}get wwzw(){return new this._Vec4(this[3],this[3],this[2],this[3])}get wwwx(){return new this._Vec4(this[3],this[3],this[3],this[0])}get wwwy(){return new this._Vec4(this[3],this[3],this[3],this[1])}get wwwz(){return new this._Vec4(this[3],this[3],this[3],this[2])}get wwww(){return new this._Vec4(this[3],this[3],this[3],this[3])}},c=class extends R{0;1;constructor(t,n){super(2),this[0]=t??this.getDefaultValue(),this[1]=n??t??this.getDefaultValue()}get x(){return this[0]}get y(){return this[1]}set x(t){this[0]=t}set y(t){this[1]=t}},l=class extends R{0;1;2;constructor(t,n,i){super(3),this[0]=t??this.getDefaultValue(),this[1]=n??t??this.getDefaultValue(),this[2]=i??t??this.getDefaultValue()}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}set x(t){this[0]=t}set y(t){this[1]=t}set z(t){this[2]=t}},x=class extends R{0;1;2;3;constructor(t,n,i,s){super(4),this[0]=t??this.getDefaultValue(),this[1]=n??t??this.getDefaultValue(),this[2]=i??t??this.getDefaultValue(),this[3]=s??t??this.getDefaultValue()}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}get w(){return this[3]}set x(t){this[0]=t}set y(t){this[1]=t}set z(t){this[2]=t}set w(t){this[3]=t}},d=class e extends c{getDefaultValue(){return 0}get kind(){return"vec2f"}get _Vec2(){return e}get _Vec3(){return f}get _Vec4(){return _}},p=class e extends c{getDefaultValue(){return 0}get kind(){return"vec2h"}get _Vec2(){return e}get _Vec3(){return b}get _Vec4(){return A}},m=class e extends c{getDefaultValue(){return 0}get kind(){return"vec2i"}get _Vec2(){return e}get _Vec3(){return z}get _Vec4(){return I}},g=class e extends c{getDefaultValue(){return 0}get kind(){return"vec2u"}get _Vec2(){return e}get _Vec3(){return V}get _Vec4(){return k}},T=class e extends c{getDefaultValue(){return!1}get kind(){return"vec2<bool>"}get _Vec2(){return e}get _Vec3(){return v}get _Vec4(){return $}},f=class e extends l{getDefaultValue(){return 0}get kind(){return"vec3f"}get _Vec2(){return d}get _Vec3(){return e}get _Vec4(){return _}},b=class e extends l{getDefaultValue(){return 0}get kind(){return"vec3h"}get _Vec2(){return p}get _Vec3(){return e}get _Vec4(){return A}},z=class e extends l{getDefaultValue(){return 0}get kind(){return"vec3i"}get _Vec2(){return m}get _Vec3(){return e}get _Vec4(){return I}},V=class e extends l{getDefaultValue(){return 0}get kind(){return"vec3u"}get _Vec2(){return g}get _Vec3(){return e}get _Vec4(){return k}},v=class e extends l{getDefaultValue(){return!1}get kind(){return"vec3<bool>"}get _Vec2(){return T}get _Vec3(){return e}get _Vec4(){return $}},_=class e extends x{getDefaultValue(){return 0}get kind(){return"vec4f"}get _Vec2(){return d}get _Vec3(){return f}get _Vec4(){return e}},A=class e extends x{getDefaultValue(){return 0}get kind(){return"vec4h"}get _Vec2(){return p}get _Vec3(){return b}get _Vec4(){return e}},I=class e extends x{getDefaultValue(){return 0}get kind(){return"vec4i"}get _Vec2(){return m}get _Vec3(){return z}get _Vec4(){return e}},k=class e extends x{getDefaultValue(){return 0}get kind(){return"vec4u"}get _Vec2(){return g}get _Vec3(){return V}get _Vec4(){return e}},$=class e extends x{getDefaultValue(){return!1}get kind(){return"vec4<bool>"}get _Vec2(){return T}get _Vec3(){return v}get _Vec4(){return e}};var Y=o(d),Be=o(p),We=o(m),Le=o(g),je=o(T),J=o(f),Ge=o(b),Ee=o(z),Oe=o(V),Ke=o(v),q=o(_),He=o(A),Ye=o(I),Je=o(k),qe=o($),Qe={vec2f:Y,vec2h:Be,vec2i:We,vec2u:Le,"vec2<bool>":je,vec3f:J,vec3h:Ge,vec3i:Ee,vec3u:Oe,"vec3<bool>":Ke,vec4f:q,vec4h:He,vec4i:Ye,vec4u:Je,"vec4<bool>":qe},Xe={vec2f:N,vec2h:U,vec2i:M,vec2u:F,"vec2<bool>":G,vec3f:N,vec3h:U,vec3i:M,vec3u:F,"vec3<bool>":G,vec4f:N,vec4h:U,vec4i:M,vec4u:F,"vec4<bool>":G};function o(e){let{kind:t,length:n}=new e,i=y((...s)=>{let a=new Array(s.length),h=0;for(let S of s)if(typeof S=="number"||typeof S=="boolean")a[h++]=S;else for(let E=0;E<S.length;++E)a[h++]=S[E];if(a.length<=1||a.length===n)return new e(...a);throw new Error(`'${t}' constructor called with invalid number of arguments.`)},(...s)=>u(`${t}(${s.map(a=>a.value).join(", ")})`,Qe[t]),(...s)=>s.map(a=>{let h=a.dataType;return pe(h)&&(h=h.inner),ce(h)?h:Xe[t]}));return B(i,t),Object.assign(i,{type:t,[w]:void 0})}function re(e){let t={[r]:!0,[w]:void 0,type:e.type};B(t,e.type);let n=y((...i)=>{let s=[];for(let a of i)if(typeof a=="number")s.push(a);else for(let h=0;h<a.length;++h)s.push(a[h]);if(s.length!==0&&s.length!==e.columns*e.rows)throw new Error(`'${e.type}' constructor called with invalid number of arguments.`);for(let a=s.length;a<e.columns*e.rows;++a)s.push(0);return e.makeFromElements(...s)},(...i)=>u(`${t.type}(${i.map(s=>s.value).join(", ")})`,t));return Object.assign(n,t)}var Q=class{[r]=!0;columns;length=4;constructor(...t){this.columns=[this.makeColumn(t[0],t[1]),this.makeColumn(t[2],t[3])]}get 0(){return this.columns[0].x}get 1(){return this.columns[0].y}get 2(){return this.columns[1].x}get 3(){return this.columns[1].y}set 0(t){this.columns[0].x=t}set 1(t){this.columns[0].y=t}set 2(t){this.columns[1].x=t}set 3(t){this.columns[1].y=t}*[Symbol.iterator](){yield this[0],yield this[1],yield this[2],yield this[3]}"~resolve"(){return`${this.kind}(${Array.from({length:this.length}).map((t,n)=>this[n]).join(", ")})`}},X=class extends Q{kind="mat2x2f";makeColumn(t,n){return Y(t,n)}},Z=class{[r]=!0;columns;length=12;constructor(...t){this.columns=[this.makeColumn(t[0],t[1],t[2]),this.makeColumn(t[3],t[4],t[5]),this.makeColumn(t[6],t[7],t[8])]}get 0(){return this.columns[0].x}get 1(){return this.columns[0].y}get 2(){return this.columns[0].z}get 3(){return 0}get 4(){return this.columns[1].x}get 5(){return this.columns[1].y}get 6(){return this.columns[1].z}get 7(){return 0}get 8(){return this.columns[2].x}get 9(){return this.columns[2].y}get 10(){return this.columns[2].z}get 11(){return 0}set 0(t){this.columns[0].x=t}set 1(t){this.columns[0].y=t}set 2(t){this.columns[0].z=t}set 3(t){}set 4(t){this.columns[1].x=t}set 5(t){this.columns[1].y=t}set 6(t){this.columns[1].z=t}set 7(t){}set 8(t){this.columns[2].x=t}set 9(t){this.columns[2].y=t}set 10(t){this.columns[2].z=t}set 11(t){}*[Symbol.iterator](){for(let t=0;t<12;t++)yield this[t]}"~resolve"(){return`${this.kind}(${this[0]}, ${this[1]}, ${this[2]}, ${this[4]}, ${this[5]}, ${this[6]}, ${this[8]}, ${this[9]}, ${this[10]})`}},ee=class extends Z{kind="mat3x3f";makeColumn(t,n,i){return J(t,n,i)}},te=class{[r]=!0;columns;constructor(...t){this.columns=[this.makeColumn(t[0],t[1],t[2],t[3]),this.makeColumn(t[4],t[5],t[6],t[7]),this.makeColumn(t[8],t[9],t[10],t[11]),this.makeColumn(t[12],t[13],t[14],t[15])]}length=16;get 0(){return this.columns[0].x}get 1(){return this.columns[0].y}get 2(){return this.columns[0].z}get 3(){return this.columns[0].w}get 4(){return this.columns[1].x}get 5(){return this.columns[1].y}get 6(){return this.columns[1].z}get 7(){return this.columns[1].w}get 8(){return this.columns[2].x}get 9(){return this.columns[2].y}get 10(){return this.columns[2].z}get 11(){return this.columns[2].w}get 12(){return this.columns[3].x}get 13(){return this.columns[3].y}get 14(){return this.columns[3].z}get 15(){return this.columns[3].w}set 0(t){this.columns[0].x=t}set 1(t){this.columns[0].y=t}set 2(t){this.columns[0].z=t}set 3(t){this.columns[0].w=t}set 4(t){this.columns[1].x=t}set 5(t){this.columns[1].y=t}set 6(t){this.columns[1].z=t}set 7(t){this.columns[1].w=t}set 8(t){this.columns[2].x=t}set 9(t){this.columns[2].y=t}set 10(t){this.columns[2].z=t}set 11(t){this.columns[2].w=t}set 12(t){this.columns[3].x=t}set 13(t){this.columns[3].y=t}set 14(t){this.columns[3].z=t}set 15(t){this.columns[3].w=t}*[Symbol.iterator](){for(let t=0;t<16;t++)yield this[t]}"~resolve"(){return`${this.kind}(${Array.from({length:this.length}).map((t,n)=>this[n]).join(", ")})`}},ne=class extends te{kind="mat4x4f";makeColumn(t,n,i,s){return q(t,n,i,s)}},mn=re({type:"mat2x2f",rows:2,columns:2,makeFromElements:(...e)=>new X(...e)}),gn=re({type:"mat3x3f",rows:3,columns:3,makeFromElements:(...e)=>new ee(...e)}),Tn=re({type:"mat4x4f",rows:4,columns:4,makeFromElements:(...e)=>new ne(...e)});function fn(e){return e.kind==="mat3x3f"?[e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]]:Array.from({length:e.length}).map((t,n)=>e[n])}function Vn(e){return{[r]:!0,type:"ptr",inner:e,addressSpace:"function",access:"read-write"}}function vn(e){return{[r]:!0,type:"ptr",inner:e,addressSpace:"private",access:"read-write"}}function _n(e){return{[r]:!0,type:"ptr",inner:e,addressSpace:"workgroup",access:"read-write"}}function An(e,t="read"){return{[r]:!0,type:"ptr",inner:e,addressSpace:"storage",access:t}}function In(e){return{[r]:!0,type:"ptr",inner:e,addressSpace:"uniform",access:"read"}}function kn(e){return{[r]:!0,type:"ptr",inner:e,addressSpace:"handle",access:"read"}}export{r as a,se as b,tt as c,O as d,P as e,B as f,st as g,H as h,ie as i,ae as j,oe as k,he as l,ue as m,ye as n,Fe as o,Rt as p,Bt as q,Wt as r,Lt as s,ge as t,me as u,Vt as v,w,ct as x,lt as y,ze as z,Ve as A,ve as B,ce as C,xt as D,Ae as E,Ie as F,wt as G,dt as H,le as I,pt as J,mt as K,gt as L,Tt as M,xe as N,we as O,de as P,ft as Q,bt as R,pe as S,zt as T,De as U,It as V,kt as W,$t as X,St as Y,Dt as Z,Pt as _,Ct as $,Ft as aa,u as ba,Mt as ca,Ot as da,y as ea,Qt as fa,Xt as ga,G as ha,F as ia,M as ja,N as ka,U as la,Y as ma,Be as na,We as oa,Le as pa,je as qa,J as ra,Ge as sa,Ee as ta,Oe as ua,Ke as va,q as wa,He as xa,Ye as ya,Je as za,qe as Aa,Xe as Ba,mn as Ca,gn as Da,Tn as Ea,fn as Fa,Vn as Ga,vn as Ha,_n as Ia,An as Ja,In as Ka,kn as La};
4
+ //# sourceMappingURL=chunk-L7HIBZAX.js.map