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/data/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { J as Bool, F as F32, a as F16, b as I32, U as U32, A as AnyWgslData, W as WgslStruct, p as WgslArray, v as AnyData, N as Ptr, V as Vec2f, e as Vec2h, h as Vec2i, k as Vec2u, Q as Vec2b, c as Vec3f, f as Vec3h, i as Vec3i, l as Vec3u, R as Vec3b, d as Vec4f, g as Vec4h, j as Vec4i, m as Vec4u, S as Vec4b, q as Disarray, B as BaseData, X as Unstruct, Y as Mat2x2f, Z as Mat3x3f, _ as Mat4x4f, a0 as m2x2f, a1 as m3x3f, a2 as m4x4f, a3 as Atomic } from '../dataTypes-6k4EJeol.cjs';
2
- export { ag as Align, at as AnyLooseData, G as AnyVecInstance, ah as Builtin, D as Decorated, az as FormatToWGSLType, I as Infer, ai as Interpolate, L as Location, as as LooseDecorated, bg as PackedData, af as Size, aA as TgpuVertexFormatData, a$ as float16, b0 as float16x2, b1 as float16x4, b2 as float32, b3 as float32x2, b4 as float32x3, b5 as float32x4, aB as formatToWGSLType, aa as isAlignAttrib, a8 as isAtomic, ab as isBuiltinAttrib, ax as isData, a9 as isDecorated, au as isDisarray, ad as isInterpolateAttrib, ac as isLocationAttrib, ay as isLooseData, aw as isLooseDecorated, a7 as isPtr, ae as isSizeAttrib, av as isUnstruct, a5 as isWgslArray, a4 as isWgslData, a6 as isWgslStruct, aC as packedFormats, aS as sint16, aT as sint16x2, aU as sint16x4, ba as sint32, bb as sint32x2, bc as sint32x3, bd as sint32x4, aG as sint8, aH as sint8x2, aI as sint8x4, aY as snorm16, aZ as snorm16x2, a_ as snorm16x4, aM as snorm8, aN as snorm8x2, aO as snorm8x4, aP as uint16, aQ as uint16x2, aR as uint16x4, b6 as uint32, b7 as uint32x2, b8 as uint32x3, b9 as uint32x4, aD as uint8, aE as uint8x2, aF as uint8x4, be as unorm10_10_10_2, aV as unorm16, aW as unorm16x2, aX as unorm16x4, aJ as unorm8, aK as unorm8x2, aL as unorm8x4, bf as unorm8x4_bgra, aj as v2f, ak as v2i, al as v2u, am as v3f, an as v3i, ao as v3u, ap as v4f, aq as v4i, ar as v4u } from '../dataTypes-6k4EJeol.cjs';
3
- export { A as AnyAttribute, v as AnyBuiltin, j as BuiltinClipDistances, m as BuiltinFragDepth, k as BuiltinFrontFacing, r as BuiltinGlobalInvocationId, g as BuiltinInstanceIndex, p as BuiltinLocalInvocationId, q as BuiltinLocalInvocationIndex, u as BuiltinNumWorkgroups, h as BuiltinPosition, n as BuiltinSampleIndex, o as BuiltinSampleMask, B as BuiltinVertexIndex, t as BuiltinWorkgroupId, H as HasCustomLocation, I as IsBuiltin, d as align, f as builtin, i as interpolate, e as isBuiltin, l as location, s as size } from '../attributes-zljQ-iA7.cjs';
1
+ import { aG as Bool, aH as F16, aI as F32, aJ as I32, aK as U32, A as AnyWgslData, aL as WgslStruct, h as WgslArray, j as AnyData, aM as Ptr, aN as Vec2b, aO as Vec2f, aP as Vec2h, aQ as Vec2i, aR as Vec2u, aS as Vec3b, aT as Vec3f, aU as Vec3h, aV as Vec3i, aW as Vec3u, aX as Vec4b, aY as Vec4f, aZ as Vec4h, a_ as Vec4i, a$ as Vec4u, D as Disarray, b0 as BaseData, b1 as Unstruct, b2 as Mat2x2f, b3 as Mat3x3f, b4 as Mat4x4f, b5 as m2x2f, b6 as m3x3f, b7 as m4x4f, b8 as Atomic } from '../tgpuComputeFn-S61HxwW-.cjs';
2
+ export { bl as Align, bI as AnyAttribute, bV as AnyBuiltin, bF as AnyLooseData, bm as AnyVecInstance, bn as AnyWgslStruct, bo as Builtin, bW as BuiltinClipDistances, bX as BuiltinFragDepth, bY as BuiltinFrontFacing, bZ as BuiltinGlobalInvocationId, b_ as BuiltinInstanceIndex, b$ as BuiltinLocalInvocationId, c0 as BuiltinLocalInvocationIndex, c1 as BuiltinNumWorkgroups, c2 as BuiltinPosition, c3 as BuiltinSampleIndex, c4 as BuiltinSampleMask, c5 as BuiltinVertexIndex, c6 as BuiltinWorkgroupId, bp as Decorated, c9 as FormatToWGSLType, bJ as HasCustomLocation, I as Infer, c7 as InferGPU, c8 as InferPartial, bq as Interpolate, bL as IsBuiltin, br as Location, bG as LooseDecorated, cS as PackedData, bs as Size, ca as TgpuVertexFormatData, bk as Void, bH as align, bU as builtin, cB as float16, cC as float16x2, cD as float16x4, cE as float32, cF as float32x2, cG as float32x3, cH as float32x4, cb as formatToWGSLType, bK as interpolate, b9 as isAlignAttrib, ba as isAtomic, bM as isBuiltin, bb as isBuiltinAttrib, bP as isData, bc as isDecorated, bQ as isDisarray, bd as isInterpolateAttrib, be as isLocationAttrib, bR as isLooseData, bS as isLooseDecorated, bf as isPtr, bg as isSizeAttrib, bT as isUnstruct, bh as isWgslArray, bi as isWgslData, bj as isWgslStruct, bN as location, cc as packedFormats, cs as sint16, ct as sint16x2, cu as sint16x4, cM as sint32, cN as sint32x2, cO as sint32x3, cP as sint32x4, cg as sint8, ch as sint8x2, ci as sint8x4, bO as size, cy as snorm16, cz as snorm16x2, cA as snorm16x4, cm as snorm8, cn as snorm8x2, co as snorm8x4, cp as uint16, cq as uint16x2, cr as uint16x4, cI as uint32, cJ as uint32x2, cK as uint32x3, cL as uint32x4, cd as uint8, ce as uint8x2, cf as uint8x4, cQ as unorm10_10_10_2, cv as unorm16, cw as unorm16x2, cx as unorm16x4, cj as unorm8, ck as unorm8x2, cl as unorm8x4, cR as unorm8x4_bgra, bt as v2b, bu as v2f, bv as v2i, bw as v2u, bx as v3b, by as v3f, bz as v3i, bA as v3u, bB as v4b, bC as v4f, bD as v4i, bE as v4u } from '../tgpuComputeFn-S61HxwW-.cjs';
3
+ import 'tinyest';
4
4
 
5
5
  /**
6
6
  * A schema that represents a boolean value. (equivalent to `bool` in WGSL)
@@ -87,7 +87,6 @@ declare function ptrUniform<T extends AnyData>(inner: T): Ptr<'uniform', T, 'rea
87
87
  declare function ptrHandle<T extends AnyData>(inner: T): Ptr<'handle', T, 'read'>;
88
88
 
89
89
  /**
90
- *
91
90
  * Schema representing vec2f - a vector with 2 elements of type f32.
92
91
  * Also a constructor function for this vector value.
93
92
  *
@@ -101,7 +100,6 @@ declare function ptrHandle<T extends AnyData>(inner: T): Ptr<'handle', T, 'read'
101
100
  */
102
101
  declare const vec2f: Vec2f;
103
102
  /**
104
- *
105
103
  * Schema representing vec2h - a vector with 2 elements of type f16.
106
104
  * Also a constructor function for this vector value.
107
105
  *
@@ -115,7 +113,6 @@ declare const vec2f: Vec2f;
115
113
  */
116
114
  declare const vec2h: Vec2h;
117
115
  /**
118
- *
119
116
  * Schema representing vec2i - a vector with 2 elements of type i32.
120
117
  * Also a constructor function for this vector value.
121
118
  *
@@ -129,7 +126,6 @@ declare const vec2h: Vec2h;
129
126
  */
130
127
  declare const vec2i: Vec2i;
131
128
  /**
132
- *
133
129
  * Schema representing vec2u - a vector with 2 elements of type u32.
134
130
  * Also a constructor function for this vector value.
135
131
  *
@@ -143,7 +139,6 @@ declare const vec2i: Vec2i;
143
139
  */
144
140
  declare const vec2u: Vec2u;
145
141
  /**
146
- *
147
142
  * Schema representing `vec2<bool>` - a vector with 2 elements of type `bool`.
148
143
  * Also a constructor function for this vector value.
149
144
  *
@@ -154,7 +149,6 @@ declare const vec2u: Vec2u;
154
149
  */
155
150
  declare const vec2b: Vec2b;
156
151
  /**
157
- *
158
152
  * Schema representing vec3f - a vector with 3 elements of type f32.
159
153
  * Also a constructor function for this vector value.
160
154
  *
@@ -168,7 +162,6 @@ declare const vec2b: Vec2b;
168
162
  */
169
163
  declare const vec3f: Vec3f;
170
164
  /**
171
- *
172
165
  * Schema representing vec3h - a vector with 3 elements of type f16.
173
166
  * Also a constructor function for this vector value.
174
167
  *
@@ -182,7 +175,6 @@ declare const vec3f: Vec3f;
182
175
  */
183
176
  declare const vec3h: Vec3h;
184
177
  /**
185
- *
186
178
  * Schema representing vec3i - a vector with 3 elements of type i32.
187
179
  * Also a constructor function for this vector value.
188
180
  *
@@ -196,7 +188,6 @@ declare const vec3h: Vec3h;
196
188
  */
197
189
  declare const vec3i: Vec3i;
198
190
  /**
199
- *
200
191
  * Schema representing vec3u - a vector with 3 elements of type u32.
201
192
  * Also a constructor function for this vector value.
202
193
  *
@@ -210,7 +201,6 @@ declare const vec3i: Vec3i;
210
201
  */
211
202
  declare const vec3u: Vec3u;
212
203
  /**
213
- *
214
204
  * Schema representing `vec3<bool>` - a vector with 3 elements of type `bool`.
215
205
  * Also a constructor function for this vector value.
216
206
  *
@@ -221,7 +211,6 @@ declare const vec3u: Vec3u;
221
211
  */
222
212
  declare const vec3b: Vec3b;
223
213
  /**
224
- *
225
214
  * Schema representing vec4f - a vector with 4 elements of type f32.
226
215
  * Also a constructor function for this vector value.
227
216
  *
@@ -235,7 +224,6 @@ declare const vec3b: Vec3b;
235
224
  */
236
225
  declare const vec4f: Vec4f;
237
226
  /**
238
- *
239
227
  * Schema representing vec4h - a vector with 4 elements of type f16.
240
228
  * Also a constructor function for this vector value.
241
229
  *
@@ -249,7 +237,6 @@ declare const vec4f: Vec4f;
249
237
  */
250
238
  declare const vec4h: Vec4h;
251
239
  /**
252
- *
253
240
  * Schema representing vec4i - a vector with 4 elements of type i32.
254
241
  * Also a constructor function for this vector value.
255
242
  *
@@ -263,7 +250,6 @@ declare const vec4h: Vec4h;
263
250
  */
264
251
  declare const vec4i: Vec4i;
265
252
  /**
266
- *
267
253
  * Schema representing vec4u - a vector with 4 elements of type u32.
268
254
  * Also a constructor function for this vector value.
269
255
  *
@@ -277,7 +263,6 @@ declare const vec4i: Vec4i;
277
263
  */
278
264
  declare const vec4u: Vec4u;
279
265
  /**
280
- *
281
266
  * Schema representing `vec4<bool>` - a vector with 4 elements of type `bool`.
282
267
  * Also a constructor function for this vector value.
283
268
  *
@@ -328,7 +313,6 @@ declare function disarrayOf<TElement extends AnyData>(elementType: TElement, cou
328
313
  declare function unstruct<TProps extends Record<string, BaseData>>(properties: TProps): Unstruct<TProps>;
329
314
 
330
315
  /**
331
- *
332
316
  * Schema representing mat2x2f - a matrix with 2 rows and 2 columns, with elements of type f32.
333
317
  * Also a constructor function for this matrix type.
334
318
  *
@@ -351,7 +335,6 @@ declare function unstruct<TProps extends Record<string, BaseData>>(properties: T
351
335
  */
352
336
  declare const mat2x2f: Mat2x2f;
353
337
  /**
354
- *
355
338
  * Schema representing mat3x3f - a matrix with 3 rows and 3 columns, with elements of type f32.
356
339
  * Also a constructor function for this matrix type.
357
340
  *
@@ -376,7 +359,6 @@ declare const mat2x2f: Mat2x2f;
376
359
  */
377
360
  declare const mat3x3f: Mat3x3f;
378
361
  /**
379
- *
380
362
  * Schema representing mat4x4f - a matrix with 4 rows and 4 columns, with elements of type f32.
381
363
  * Also a constructor function for this matrix type.
382
364
  *
@@ -384,14 +366,14 @@ declare const mat3x3f: Mat3x3f;
384
366
  * const zero4x4 = mat4x4f(); // filled with zeros
385
367
  *
386
368
  * @example
387
- * const mat = mat3x3f(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
369
+ * const mat = mat4x4f(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
388
370
  * mat.columns[0] // vec4f(0, 1, 2, 3)
389
371
  * mat.columns[1] // vec4f(4, 5, 6, 7)
390
372
  * mat.columns[2] // vec4f(8, 9, 10, 11)
391
373
  * mat.columns[3] // vec4f(12, 13, 14, 15)
392
374
  *
393
375
  * @example
394
- * const mat = mat3x3f(
376
+ * const mat = mat4x4f(
395
377
  * vec4f(0, 1, 2, 3), // column 0
396
378
  * vec4f(4, 5, 6, 7), // column 1
397
379
  * vec4f(8, 9, 10, 11), // column 2
package/data/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { J as Bool, F as F32, a as F16, b as I32, U as U32, A as AnyWgslData, W as WgslStruct, p as WgslArray, v as AnyData, N as Ptr, V as Vec2f, e as Vec2h, h as Vec2i, k as Vec2u, Q as Vec2b, c as Vec3f, f as Vec3h, i as Vec3i, l as Vec3u, R as Vec3b, d as Vec4f, g as Vec4h, j as Vec4i, m as Vec4u, S as Vec4b, q as Disarray, B as BaseData, X as Unstruct, Y as Mat2x2f, Z as Mat3x3f, _ as Mat4x4f, a0 as m2x2f, a1 as m3x3f, a2 as m4x4f, a3 as Atomic } from '../dataTypes-6k4EJeol.js';
2
- export { ag as Align, at as AnyLooseData, G as AnyVecInstance, ah as Builtin, D as Decorated, az as FormatToWGSLType, I as Infer, ai as Interpolate, L as Location, as as LooseDecorated, bg as PackedData, af as Size, aA as TgpuVertexFormatData, a$ as float16, b0 as float16x2, b1 as float16x4, b2 as float32, b3 as float32x2, b4 as float32x3, b5 as float32x4, aB as formatToWGSLType, aa as isAlignAttrib, a8 as isAtomic, ab as isBuiltinAttrib, ax as isData, a9 as isDecorated, au as isDisarray, ad as isInterpolateAttrib, ac as isLocationAttrib, ay as isLooseData, aw as isLooseDecorated, a7 as isPtr, ae as isSizeAttrib, av as isUnstruct, a5 as isWgslArray, a4 as isWgslData, a6 as isWgslStruct, aC as packedFormats, aS as sint16, aT as sint16x2, aU as sint16x4, ba as sint32, bb as sint32x2, bc as sint32x3, bd as sint32x4, aG as sint8, aH as sint8x2, aI as sint8x4, aY as snorm16, aZ as snorm16x2, a_ as snorm16x4, aM as snorm8, aN as snorm8x2, aO as snorm8x4, aP as uint16, aQ as uint16x2, aR as uint16x4, b6 as uint32, b7 as uint32x2, b8 as uint32x3, b9 as uint32x4, aD as uint8, aE as uint8x2, aF as uint8x4, be as unorm10_10_10_2, aV as unorm16, aW as unorm16x2, aX as unorm16x4, aJ as unorm8, aK as unorm8x2, aL as unorm8x4, bf as unorm8x4_bgra, aj as v2f, ak as v2i, al as v2u, am as v3f, an as v3i, ao as v3u, ap as v4f, aq as v4i, ar as v4u } from '../dataTypes-6k4EJeol.js';
3
- export { A as AnyAttribute, v as AnyBuiltin, j as BuiltinClipDistances, m as BuiltinFragDepth, k as BuiltinFrontFacing, r as BuiltinGlobalInvocationId, g as BuiltinInstanceIndex, p as BuiltinLocalInvocationId, q as BuiltinLocalInvocationIndex, u as BuiltinNumWorkgroups, h as BuiltinPosition, n as BuiltinSampleIndex, o as BuiltinSampleMask, B as BuiltinVertexIndex, t as BuiltinWorkgroupId, H as HasCustomLocation, I as IsBuiltin, d as align, f as builtin, i as interpolate, e as isBuiltin, l as location, s as size } from '../attributes-B90UjSYb.js';
1
+ import { aG as Bool, aH as F16, aI as F32, aJ as I32, aK as U32, A as AnyWgslData, aL as WgslStruct, h as WgslArray, j as AnyData, aM as Ptr, aN as Vec2b, aO as Vec2f, aP as Vec2h, aQ as Vec2i, aR as Vec2u, aS as Vec3b, aT as Vec3f, aU as Vec3h, aV as Vec3i, aW as Vec3u, aX as Vec4b, aY as Vec4f, aZ as Vec4h, a_ as Vec4i, a$ as Vec4u, D as Disarray, b0 as BaseData, b1 as Unstruct, b2 as Mat2x2f, b3 as Mat3x3f, b4 as Mat4x4f, b5 as m2x2f, b6 as m3x3f, b7 as m4x4f, b8 as Atomic } from '../tgpuComputeFn-S61HxwW-.js';
2
+ export { bl as Align, bI as AnyAttribute, bV as AnyBuiltin, bF as AnyLooseData, bm as AnyVecInstance, bn as AnyWgslStruct, bo as Builtin, bW as BuiltinClipDistances, bX as BuiltinFragDepth, bY as BuiltinFrontFacing, bZ as BuiltinGlobalInvocationId, b_ as BuiltinInstanceIndex, b$ as BuiltinLocalInvocationId, c0 as BuiltinLocalInvocationIndex, c1 as BuiltinNumWorkgroups, c2 as BuiltinPosition, c3 as BuiltinSampleIndex, c4 as BuiltinSampleMask, c5 as BuiltinVertexIndex, c6 as BuiltinWorkgroupId, bp as Decorated, c9 as FormatToWGSLType, bJ as HasCustomLocation, I as Infer, c7 as InferGPU, c8 as InferPartial, bq as Interpolate, bL as IsBuiltin, br as Location, bG as LooseDecorated, cS as PackedData, bs as Size, ca as TgpuVertexFormatData, bk as Void, bH as align, bU as builtin, cB as float16, cC as float16x2, cD as float16x4, cE as float32, cF as float32x2, cG as float32x3, cH as float32x4, cb as formatToWGSLType, bK as interpolate, b9 as isAlignAttrib, ba as isAtomic, bM as isBuiltin, bb as isBuiltinAttrib, bP as isData, bc as isDecorated, bQ as isDisarray, bd as isInterpolateAttrib, be as isLocationAttrib, bR as isLooseData, bS as isLooseDecorated, bf as isPtr, bg as isSizeAttrib, bT as isUnstruct, bh as isWgslArray, bi as isWgslData, bj as isWgslStruct, bN as location, cc as packedFormats, cs as sint16, ct as sint16x2, cu as sint16x4, cM as sint32, cN as sint32x2, cO as sint32x3, cP as sint32x4, cg as sint8, ch as sint8x2, ci as sint8x4, bO as size, cy as snorm16, cz as snorm16x2, cA as snorm16x4, cm as snorm8, cn as snorm8x2, co as snorm8x4, cp as uint16, cq as uint16x2, cr as uint16x4, cI as uint32, cJ as uint32x2, cK as uint32x3, cL as uint32x4, cd as uint8, ce as uint8x2, cf as uint8x4, cQ as unorm10_10_10_2, cv as unorm16, cw as unorm16x2, cx as unorm16x4, cj as unorm8, ck as unorm8x2, cl as unorm8x4, cR as unorm8x4_bgra, bt as v2b, bu as v2f, bv as v2i, bw as v2u, bx as v3b, by as v3f, bz as v3i, bA as v3u, bB as v4b, bC as v4f, bD as v4i, bE as v4u } from '../tgpuComputeFn-S61HxwW-.js';
3
+ import 'tinyest';
4
4
 
5
5
  /**
6
6
  * A schema that represents a boolean value. (equivalent to `bool` in WGSL)
@@ -87,7 +87,6 @@ declare function ptrUniform<T extends AnyData>(inner: T): Ptr<'uniform', T, 'rea
87
87
  declare function ptrHandle<T extends AnyData>(inner: T): Ptr<'handle', T, 'read'>;
88
88
 
89
89
  /**
90
- *
91
90
  * Schema representing vec2f - a vector with 2 elements of type f32.
92
91
  * Also a constructor function for this vector value.
93
92
  *
@@ -101,7 +100,6 @@ declare function ptrHandle<T extends AnyData>(inner: T): Ptr<'handle', T, 'read'
101
100
  */
102
101
  declare const vec2f: Vec2f;
103
102
  /**
104
- *
105
103
  * Schema representing vec2h - a vector with 2 elements of type f16.
106
104
  * Also a constructor function for this vector value.
107
105
  *
@@ -115,7 +113,6 @@ declare const vec2f: Vec2f;
115
113
  */
116
114
  declare const vec2h: Vec2h;
117
115
  /**
118
- *
119
116
  * Schema representing vec2i - a vector with 2 elements of type i32.
120
117
  * Also a constructor function for this vector value.
121
118
  *
@@ -129,7 +126,6 @@ declare const vec2h: Vec2h;
129
126
  */
130
127
  declare const vec2i: Vec2i;
131
128
  /**
132
- *
133
129
  * Schema representing vec2u - a vector with 2 elements of type u32.
134
130
  * Also a constructor function for this vector value.
135
131
  *
@@ -143,7 +139,6 @@ declare const vec2i: Vec2i;
143
139
  */
144
140
  declare const vec2u: Vec2u;
145
141
  /**
146
- *
147
142
  * Schema representing `vec2<bool>` - a vector with 2 elements of type `bool`.
148
143
  * Also a constructor function for this vector value.
149
144
  *
@@ -154,7 +149,6 @@ declare const vec2u: Vec2u;
154
149
  */
155
150
  declare const vec2b: Vec2b;
156
151
  /**
157
- *
158
152
  * Schema representing vec3f - a vector with 3 elements of type f32.
159
153
  * Also a constructor function for this vector value.
160
154
  *
@@ -168,7 +162,6 @@ declare const vec2b: Vec2b;
168
162
  */
169
163
  declare const vec3f: Vec3f;
170
164
  /**
171
- *
172
165
  * Schema representing vec3h - a vector with 3 elements of type f16.
173
166
  * Also a constructor function for this vector value.
174
167
  *
@@ -182,7 +175,6 @@ declare const vec3f: Vec3f;
182
175
  */
183
176
  declare const vec3h: Vec3h;
184
177
  /**
185
- *
186
178
  * Schema representing vec3i - a vector with 3 elements of type i32.
187
179
  * Also a constructor function for this vector value.
188
180
  *
@@ -196,7 +188,6 @@ declare const vec3h: Vec3h;
196
188
  */
197
189
  declare const vec3i: Vec3i;
198
190
  /**
199
- *
200
191
  * Schema representing vec3u - a vector with 3 elements of type u32.
201
192
  * Also a constructor function for this vector value.
202
193
  *
@@ -210,7 +201,6 @@ declare const vec3i: Vec3i;
210
201
  */
211
202
  declare const vec3u: Vec3u;
212
203
  /**
213
- *
214
204
  * Schema representing `vec3<bool>` - a vector with 3 elements of type `bool`.
215
205
  * Also a constructor function for this vector value.
216
206
  *
@@ -221,7 +211,6 @@ declare const vec3u: Vec3u;
221
211
  */
222
212
  declare const vec3b: Vec3b;
223
213
  /**
224
- *
225
214
  * Schema representing vec4f - a vector with 4 elements of type f32.
226
215
  * Also a constructor function for this vector value.
227
216
  *
@@ -235,7 +224,6 @@ declare const vec3b: Vec3b;
235
224
  */
236
225
  declare const vec4f: Vec4f;
237
226
  /**
238
- *
239
227
  * Schema representing vec4h - a vector with 4 elements of type f16.
240
228
  * Also a constructor function for this vector value.
241
229
  *
@@ -249,7 +237,6 @@ declare const vec4f: Vec4f;
249
237
  */
250
238
  declare const vec4h: Vec4h;
251
239
  /**
252
- *
253
240
  * Schema representing vec4i - a vector with 4 elements of type i32.
254
241
  * Also a constructor function for this vector value.
255
242
  *
@@ -263,7 +250,6 @@ declare const vec4h: Vec4h;
263
250
  */
264
251
  declare const vec4i: Vec4i;
265
252
  /**
266
- *
267
253
  * Schema representing vec4u - a vector with 4 elements of type u32.
268
254
  * Also a constructor function for this vector value.
269
255
  *
@@ -277,7 +263,6 @@ declare const vec4i: Vec4i;
277
263
  */
278
264
  declare const vec4u: Vec4u;
279
265
  /**
280
- *
281
266
  * Schema representing `vec4<bool>` - a vector with 4 elements of type `bool`.
282
267
  * Also a constructor function for this vector value.
283
268
  *
@@ -328,7 +313,6 @@ declare function disarrayOf<TElement extends AnyData>(elementType: TElement, cou
328
313
  declare function unstruct<TProps extends Record<string, BaseData>>(properties: TProps): Unstruct<TProps>;
329
314
 
330
315
  /**
331
- *
332
316
  * Schema representing mat2x2f - a matrix with 2 rows and 2 columns, with elements of type f32.
333
317
  * Also a constructor function for this matrix type.
334
318
  *
@@ -351,7 +335,6 @@ declare function unstruct<TProps extends Record<string, BaseData>>(properties: T
351
335
  */
352
336
  declare const mat2x2f: Mat2x2f;
353
337
  /**
354
- *
355
338
  * Schema representing mat3x3f - a matrix with 3 rows and 3 columns, with elements of type f32.
356
339
  * Also a constructor function for this matrix type.
357
340
  *
@@ -376,7 +359,6 @@ declare const mat2x2f: Mat2x2f;
376
359
  */
377
360
  declare const mat3x3f: Mat3x3f;
378
361
  /**
379
- *
380
362
  * Schema representing mat4x4f - a matrix with 4 rows and 4 columns, with elements of type f32.
381
363
  * Also a constructor function for this matrix type.
382
364
  *
@@ -384,14 +366,14 @@ declare const mat3x3f: Mat3x3f;
384
366
  * const zero4x4 = mat4x4f(); // filled with zeros
385
367
  *
386
368
  * @example
387
- * const mat = mat3x3f(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
369
+ * const mat = mat4x4f(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
388
370
  * mat.columns[0] // vec4f(0, 1, 2, 3)
389
371
  * mat.columns[1] // vec4f(4, 5, 6, 7)
390
372
  * mat.columns[2] // vec4f(8, 9, 10, 11)
391
373
  * mat.columns[3] // vec4f(12, 13, 14, 15)
392
374
  *
393
375
  * @example
394
- * const mat = mat3x3f(
376
+ * const mat = mat4x4f(
395
377
  * vec4f(0, 1, 2, 3), // column 0
396
378
  * vec4f(4, 5, 6, 7), // column 1
397
379
  * vec4f(8, 9, 10, 11), // column 2
package/data/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{$ as Da,A as ea,B as fa,C as ga,D as ha,E as ia,F as ja,G as ka,H as la,I as ma,J as na,K as oa,L as pa,M as qa,N as ra,O as sa,P as ta,Q as ua,R as va,S as wa,T as xa,U as ya,V as za,W as Aa,X as Ba,Y as Ca,c as J,ca as Ea,d as K,da as Fa,e as L,ea as Ga,f as M,fa as Ha,ga as Ia,h as N,ha as Ja,i as O,j as P,ja as Ka,k as Q,ka as La,l as R,la as Ma,m as S,ma as Na,n as T,na as Oa,o as U,oa as Pa,p as V,pa as Qa,q as W,qa as Ra,r as X,ra as Sa,s as Y,sa as Ta,t as Z,ta as Ua,u as _,ua as Va,v as $,w as aa,x as ba,y as ca,z as da}from"../chunk-YVK55BVR.js";import{$ as B,A as j,B as k,C as l,D as m,E as n,F as o,G as p,H as q,I as r,J as s,M as t,N as u,O as v,P as w,Q as x,Y as y,Z as z,_ as A,aa as C,ba as D,ca as E,da as F,ea as G,fa as H,ga as I,r as a,s as b,t as c,u as d,v as e,w as f,x as g,y as h,z as i}from"../chunk-KJHEEZQT.js";export{Fa as align,Da as alignmentOf,La as arrayOf,Ua as atomic,t as bool,Va as builtin,Sa as disarrayOf,x as f16,w as f32,ma as float16,na as float16x2,oa as float16x4,pa as float32,qa as float32x2,ra as float32x3,sa as float32x4,O as formatToWGSLType,v as i32,Ia as interpolate,D as isAlignAttrib,C as isAtomic,Ja as isBuiltin,H as isBuiltinAttrib,N as isData,I as isDecorated,K as isDisarray,G as isInterpolateAttrib,F as isLocationAttrib,J as isLooseData,M as isLooseDecorated,B as isPtr,E as isSizeAttrib,L as isUnstruct,z as isWgslArray,y as isWgslData,A as isWgslStruct,Ha as location,p as mat2x2f,q as mat3x3f,r as mat4x4f,s as matToArray,P as packedFormats,Ma as ptrFn,Ra as ptrHandle,Na as ptrPrivate,Pa as ptrStorage,Qa as ptrUniform,Oa as ptrWorkgroup,da as sint16,ea as sint16x2,fa as sint16x4,xa as sint32,ya as sint32x2,za as sint32x3,Aa as sint32x4,T as sint8,U as sint8x2,V as sint8x4,Ga as size,Ea as sizeOf,ja as snorm16,ka as snorm16x2,la as snorm16x4,Z as snorm8,_ as snorm8x2,$ as snorm8x4,Ka as struct,u as u32,aa as uint16,ba as uint16x2,ca as uint16x4,ta as uint32,ua as uint32x2,va as uint32x3,wa as uint32x4,Q as uint8,R as uint8x2,S as uint8x4,Ba as unorm10_10_10_2,ga as unorm16,ha as unorm16x2,ia as unorm16x4,W as unorm8,X as unorm8x2,Y as unorm8x4,Ca as unorm8x4_bgra,Ta as unstruct,e as vec2b,a as vec2f,b as vec2h,c as vec2i,d as vec2u,j as vec3b,f as vec3f,g as vec3h,h as vec3i,i as vec3u,o as vec4b,k as vec4f,l as vec4h,m as vec4i,n as vec4u};
1
+ import{$ as Ka,A as ia,B as ja,C as ka,D as la,E as ma,F as na,G as oa,H as pa,I as qa,J as ra,K as sa,L as ta,M as ua,N as va,O as wa,P as xa,Q as ya,R as za,U as Aa,W as Ba,X as Ca,Y as Ha,Z as Ia,_ as Ja,aa as La,b as L,c as M,ca as Ma,d as N,da as Ta,e as O,ea as Ua,f as P,fa as Va,g as Q,ga as Wa,h as R,i as S,j as T,k as U,l as V,m as W,n as X,o as Y,p as Z,q as _,r as $,s as aa,t as ba,u as ca,v as da,w as ea,x as fa,y as ga,z as ha}from"../chunk-SFECI7OX.js";import{$ as q,Aa as K,Ca as Da,Da as Ea,Ea as Fa,Fa as Ga,Ga as Na,Ha as Oa,I as b,Ia as Pa,J as c,Ja as Qa,K as d,Ka as Ra,L as e,La as Sa,M as f,N as g,O as h,P as i,Q as j,R as k,S as l,U as m,V as n,W as o,X as p,ha as r,ia as s,ja as t,ka as u,la as v,ma as w,na as x,oa as y,pa as z,qa as A,ra as B,sa as C,ta as D,ua as E,va as F,wa as G,xa as H,y as a,ya as I,za as J}from"../chunk-L7HIBZAX.js";export{a as Void,Ha as align,Aa as alignmentOf,Ca as arrayOf,Va as atomic,r as bool,Wa as builtin,Ta as disarrayOf,v as f16,u as f32,ja as float16,ka as float16x2,la as float16x4,ma as float32,na as float32x2,oa as float32x3,pa as float32x4,L as formatToWGSLType,t as i32,Ka as interpolate,g as isAlignAttrib,f as isAtomic,La as isBuiltin,k as isBuiltinAttrib,q as isData,l as isDecorated,n as isDisarray,j as isInterpolateAttrib,i as isLocationAttrib,m as isLooseData,p as isLooseDecorated,e as isPtr,h as isSizeAttrib,o as isUnstruct,c as isWgslArray,b as isWgslData,d as isWgslStruct,Ja as location,Da as mat2x2f,Ea as mat3x3f,Fa as mat4x4f,Ga as matToArray,M as packedFormats,Na as ptrFn,Sa as ptrHandle,Oa as ptrPrivate,Qa as ptrStorage,Ra as ptrUniform,Pa as ptrWorkgroup,aa as sint16,ba as sint16x2,ca as sint16x4,ua as sint32,va as sint32x2,wa as sint32x3,xa as sint32x4,Q as sint8,R as sint8x2,S as sint8x4,Ia as size,Ba as sizeOf,ga as snorm16,ha as snorm16x2,ia as snorm16x4,W as snorm8,X as snorm8x2,Y as snorm8x4,Ma as struct,s as u32,Z as uint16,_ as uint16x2,$ as uint16x4,qa as uint32,ra as uint32x2,sa as uint32x3,ta as uint32x4,N as uint8,O as uint8x2,P as uint8x4,ya as unorm10_10_10_2,da as unorm16,ea as unorm16x2,fa as unorm16x4,T as unorm8,U as unorm8x2,V as unorm8x4,za as unorm8x4_bgra,Ua as unstruct,A as vec2b,w as vec2f,x as vec2h,y as vec2i,z as vec2u,F as vec3b,B as vec3f,C as vec3h,D as vec3i,E as vec3u,K as vec4b,G as vec4f,H as vec4h,I as vec4i,J as vec4u};
2
2
  //# sourceMappingURL=index.js.map