typegpu 0.5.3 → 0.5.5

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 (45) hide show
  1. package/README.md +1 -1
  2. package/{attributes-DSOqT8yA.d.cts → attributes-BcDZsQCE.d.cts} +1 -1
  3. package/{attributes-B4JpvOTz.d.ts → attributes-DsIdcdq4.d.ts} +1 -1
  4. package/chunk-A6AAWPBU.cjs +2 -0
  5. package/chunk-A6AAWPBU.cjs.map +1 -0
  6. package/chunk-HZAXWB4J.js +2 -0
  7. package/chunk-HZAXWB4J.js.map +1 -0
  8. package/chunk-T5Y2EQPZ.js +4 -0
  9. package/chunk-T5Y2EQPZ.js.map +1 -0
  10. package/chunk-VUYQ2ZIK.cjs +4 -0
  11. package/chunk-VUYQ2ZIK.cjs.map +1 -0
  12. package/data/index.cjs +1 -1
  13. package/data/index.cjs.map +1 -1
  14. package/data/index.d.cts +50 -4
  15. package/data/index.d.ts +50 -4
  16. package/data/index.js +1 -1
  17. package/{wgslTypes-VtSRoe90.d.ts → dataTypes-ts2Ccted.d.cts} +608 -506
  18. package/{wgslTypes-VtSRoe90.d.cts → dataTypes-ts2Ccted.d.ts} +608 -506
  19. package/index.cjs +19 -19
  20. package/index.cjs.map +1 -1
  21. package/index.d.cts +110 -443
  22. package/index.d.ts +110 -443
  23. package/index.js +19 -19
  24. package/index.js.map +1 -1
  25. package/package.json +2 -2
  26. package/sampler-CPNwYXSH.d.ts +369 -0
  27. package/sampler-DeX4AnIZ.d.cts +369 -0
  28. package/std/index.cjs +1 -1
  29. package/std/index.cjs.map +1 -1
  30. package/std/index.d.cts +190 -47
  31. package/std/index.d.ts +190 -47
  32. package/std/index.js +1 -1
  33. package/std/index.js.map +1 -1
  34. package/chunk-DVZNNZFQ.js +0 -2
  35. package/chunk-DVZNNZFQ.js.map +0 -1
  36. package/chunk-FM3TKZFZ.cjs +0 -2
  37. package/chunk-FM3TKZFZ.cjs.map +0 -1
  38. package/chunk-M4VUFFPZ.cjs +0 -4
  39. package/chunk-M4VUFFPZ.cjs.map +0 -1
  40. package/chunk-RMXVIINO.js +0 -2
  41. package/chunk-RMXVIINO.js.map +0 -1
  42. package/chunk-UHU5Z2IS.js +0 -4
  43. package/chunk-UHU5Z2IS.js.map +0 -1
  44. package/chunk-UPPJES6W.cjs +0 -2
  45. package/chunk-UPPJES6W.cjs.map +0 -1
package/data/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { N as Bool, F as F32, a as F16, b as I32, U as U32, A as AnyWgslData, q as WgslArray, w as AnyData, Q as Ptr, V as Vec2f, e as Vec2h, h as Vec2i, k as Vec2u, c as Vec3f, f as Vec3h, i as Vec3i, l as Vec3u, d as Vec4f, g as Vec4h, j as Vec4i, m as Vec4u, r as Disarray, B as BaseData, s as Unstruct, R as Mat2x2f, S as Mat3x3f, X as Mat4x4f, Y as m2x2f, Z as m3x3f, _ as m4x4f, $ as Atomic } from '../wgslTypes-VtSRoe90.cjs';
2
- export { ac as Align, aq as AnyLooseData, ad as Builtin, D as Decorated, aw as FormatToWGSLType, I as Infer, ae as Interpolate, L as Location, ap as LooseDecorated, bd as PackedData, ab as Size, ax as TgpuVertexFormatData, W as WgslStruct, aY as float16, aZ as float16x2, a_ as float16x4, a$ as float32, b0 as float32x2, b1 as float32x3, b2 as float32x4, ay as formatToWGSLType, a6 as isAlignAttrib, a4 as isAtomic, a7 as isBuiltinAttrib, au as isData, a5 as isDecorated, ar as isDisarray, a9 as isInterpolateAttrib, a8 as isLocationAttrib, av as isLooseData, at as isLooseDecorated, a3 as isPtr, aa as isSizeAttrib, as as isUnstruct, a1 as isWgslArray, a0 as isWgslData, a2 as isWgslStruct, az as packedFormats, aP as sint16, aQ as sint16x2, aR as sint16x4, b7 as sint32, b8 as sint32x2, b9 as sint32x3, ba as sint32x4, aD as sint8, aE as sint8x2, aF as sint8x4, aV as snorm16, aW as snorm16x2, aX as snorm16x4, aJ as snorm8, aK as snorm8x2, aL as snorm8x4, ao as struct, aM as uint16, aN as uint16x2, aO as uint16x4, b3 as uint32, b4 as uint32x2, b5 as uint32x3, b6 as uint32x4, aA as uint8, aB as uint8x2, aC as uint8x4, bb as unorm10_10_10_2, aS as unorm16, aT as unorm16x2, aU as unorm16x4, aG as unorm8, aH as unorm8x2, aI as unorm8x4, bc as unorm8x4_bgra, af as v2f, ag as v2i, ah as v2u, ai as v3f, aj as v3i, ak as v3u, al as v4f, am as v4i, an as v4u } from '../wgslTypes-VtSRoe90.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-DSOqT8yA.cjs';
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-ts2Ccted.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-ts2Ccted.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-BcDZsQCE.cjs';
4
4
 
5
5
  /**
6
6
  * A schema that represents a boolean value. (equivalent to `bool` in WGSL)
@@ -53,6 +53,19 @@ declare const f32: F32;
53
53
  */
54
54
  declare const f16: F16;
55
55
 
56
+ /**
57
+ * Creates a struct schema that can be used to construct GPU buffers.
58
+ * Ensures proper alignment and padding of properties (as opposed to a `d.unstruct` schema).
59
+ * The order of members matches the passed in properties object.
60
+ *
61
+ * @example
62
+ * const CircleStruct = d.struct({ radius: d.f32, pos: d.vec3f });
63
+ *
64
+ * @param props Record with `string` keys and `TgpuData` values,
65
+ * each entry describing one struct member.
66
+ */
67
+ declare function struct<TProps extends Record<string, AnyWgslData>>(props: TProps): WgslStruct<TProps>;
68
+
56
69
  /**
57
70
  * Creates an array schema that can be used to construct gpu buffers.
58
71
  * Describes arrays with fixed-size length, storing elements of the same type.
@@ -129,6 +142,17 @@ declare const vec2i: Vec2i;
129
142
  * const buffer = root.createBuffer(d.vec2u, d.vec2u(0, 1)); // buffer holding a d.vec2u value, with an initial value of vec2u(0, 1);
130
143
  */
131
144
  declare const vec2u: Vec2u;
145
+ /**
146
+ *
147
+ * Schema representing `vec2<bool>` - a vector with 2 elements of type `bool`.
148
+ * Also a constructor function for this vector value.
149
+ *
150
+ * @example
151
+ * const vector = d.vec2b(); // (false, false)
152
+ * const vector = d.vec2b(true); // (true, true)
153
+ * const vector = d.vec2b(false, true); // (false, true)
154
+ */
155
+ declare const vec2b: Vec2b;
132
156
  /**
133
157
  *
134
158
  * Schema representing vec3f - a vector with 3 elements of type f32.
@@ -185,6 +209,17 @@ declare const vec3i: Vec3i;
185
209
  * const buffer = root.createBuffer(d.vec3u, d.vec3u(0, 1, 2)); // buffer holding a d.vec3u value, with an initial value of vec3u(0, 1, 2);
186
210
  */
187
211
  declare const vec3u: Vec3u;
212
+ /**
213
+ *
214
+ * Schema representing `vec3<bool>` - a vector with 3 elements of type `bool`.
215
+ * Also a constructor function for this vector value.
216
+ *
217
+ * @example
218
+ * const vector = d.vec3b(); // (false, false, false)
219
+ * const vector = d.vec3b(true); // (true, true, true)
220
+ * const vector = d.vec3b(false, true, false); // (false, true, false)
221
+ */
222
+ declare const vec3b: Vec3b;
188
223
  /**
189
224
  *
190
225
  * Schema representing vec4f - a vector with 4 elements of type f32.
@@ -241,6 +276,17 @@ declare const vec4i: Vec4i;
241
276
  * const buffer = root.createBuffer(d.vec4u, d.vec4u(0, 1, 2, 3)); // buffer holding a d.vec4u value, with an initial value of vec4u(0, 1, 2, 3);
242
277
  */
243
278
  declare const vec4u: Vec4u;
279
+ /**
280
+ *
281
+ * Schema representing `vec4<bool>` - a vector with 4 elements of type `bool`.
282
+ * Also a constructor function for this vector value.
283
+ *
284
+ * @example
285
+ * const vector = d.vec4b(); // (false, false, false, false)
286
+ * const vector = d.vec4b(true); // (true, true, true, true)
287
+ * const vector = d.vec4b(false, true, false, true); // (false, true, false, true)
288
+ */
289
+ declare const vec4b: Vec4b;
244
290
 
245
291
  /**
246
292
  * Creates an array schema that can be used to construct vertex buffers.
@@ -379,4 +425,4 @@ declare function PUBLIC_sizeOf(schema: AnyData): number;
379
425
  */
380
426
  declare function PUBLIC_alignmentOf(schema: AnyData): number;
381
427
 
382
- export { AnyData, AnyWgslData, Atomic, BaseData, BaseData as BaseWgslData, Bool, Disarray, F16, F32, I32, Mat2x2f, Mat3x3f, Mat4x4f, Ptr, U32, Unstruct, Vec2f, Vec2h, Vec2i, Vec2u, Vec3f, Vec3h, Vec3i, Vec3u, Vec4f, Vec4h, Vec4i, Vec4u, WgslArray, PUBLIC_alignmentOf as alignmentOf, arrayOf, atomic, bool, disarrayOf, f16, f32, i32, m2x2f, m3x3f, m4x4f, mat2x2f, mat3x3f, mat4x4f, matToArray, ptrFn, ptrHandle, ptrPrivate, ptrStorage, ptrUniform, ptrWorkgroup, PUBLIC_sizeOf as sizeOf, u32, unstruct, vec2f, vec2h, vec2i, vec2u, vec3f, vec3h, vec3i, vec3u, vec4f, vec4h, vec4i, vec4u };
428
+ export { AnyData, AnyWgslData, Atomic, BaseData, BaseData as BaseWgslData, Bool, Disarray, F16, F32, I32, Mat2x2f, Mat3x3f, Mat4x4f, Ptr, U32, Unstruct, Vec2b, Vec2f, Vec2h, Vec2i, Vec2u, Vec3b, Vec3f, Vec3h, Vec3i, Vec3u, Vec4b, Vec4f, Vec4h, Vec4i, Vec4u, WgslArray, WgslStruct, PUBLIC_alignmentOf as alignmentOf, arrayOf, atomic, bool, disarrayOf, f16, f32, i32, m2x2f, m3x3f, m4x4f, mat2x2f, mat3x3f, mat4x4f, matToArray, ptrFn, ptrHandle, ptrPrivate, ptrStorage, ptrUniform, ptrWorkgroup, PUBLIC_sizeOf as sizeOf, struct, u32, unstruct, vec2b, vec2f, vec2h, vec2i, vec2u, vec3b, vec3f, vec3h, vec3i, vec3u, vec4b, vec4f, vec4h, vec4i, vec4u };
package/data/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { N as Bool, F as F32, a as F16, b as I32, U as U32, A as AnyWgslData, q as WgslArray, w as AnyData, Q as Ptr, V as Vec2f, e as Vec2h, h as Vec2i, k as Vec2u, c as Vec3f, f as Vec3h, i as Vec3i, l as Vec3u, d as Vec4f, g as Vec4h, j as Vec4i, m as Vec4u, r as Disarray, B as BaseData, s as Unstruct, R as Mat2x2f, S as Mat3x3f, X as Mat4x4f, Y as m2x2f, Z as m3x3f, _ as m4x4f, $ as Atomic } from '../wgslTypes-VtSRoe90.js';
2
- export { ac as Align, aq as AnyLooseData, ad as Builtin, D as Decorated, aw as FormatToWGSLType, I as Infer, ae as Interpolate, L as Location, ap as LooseDecorated, bd as PackedData, ab as Size, ax as TgpuVertexFormatData, W as WgslStruct, aY as float16, aZ as float16x2, a_ as float16x4, a$ as float32, b0 as float32x2, b1 as float32x3, b2 as float32x4, ay as formatToWGSLType, a6 as isAlignAttrib, a4 as isAtomic, a7 as isBuiltinAttrib, au as isData, a5 as isDecorated, ar as isDisarray, a9 as isInterpolateAttrib, a8 as isLocationAttrib, av as isLooseData, at as isLooseDecorated, a3 as isPtr, aa as isSizeAttrib, as as isUnstruct, a1 as isWgslArray, a0 as isWgslData, a2 as isWgslStruct, az as packedFormats, aP as sint16, aQ as sint16x2, aR as sint16x4, b7 as sint32, b8 as sint32x2, b9 as sint32x3, ba as sint32x4, aD as sint8, aE as sint8x2, aF as sint8x4, aV as snorm16, aW as snorm16x2, aX as snorm16x4, aJ as snorm8, aK as snorm8x2, aL as snorm8x4, ao as struct, aM as uint16, aN as uint16x2, aO as uint16x4, b3 as uint32, b4 as uint32x2, b5 as uint32x3, b6 as uint32x4, aA as uint8, aB as uint8x2, aC as uint8x4, bb as unorm10_10_10_2, aS as unorm16, aT as unorm16x2, aU as unorm16x4, aG as unorm8, aH as unorm8x2, aI as unorm8x4, bc as unorm8x4_bgra, af as v2f, ag as v2i, ah as v2u, ai as v3f, aj as v3i, ak as v3u, al as v4f, am as v4i, an as v4u } from '../wgslTypes-VtSRoe90.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-B4JpvOTz.js';
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-ts2Ccted.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-ts2Ccted.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-DsIdcdq4.js';
4
4
 
5
5
  /**
6
6
  * A schema that represents a boolean value. (equivalent to `bool` in WGSL)
@@ -53,6 +53,19 @@ declare const f32: F32;
53
53
  */
54
54
  declare const f16: F16;
55
55
 
56
+ /**
57
+ * Creates a struct schema that can be used to construct GPU buffers.
58
+ * Ensures proper alignment and padding of properties (as opposed to a `d.unstruct` schema).
59
+ * The order of members matches the passed in properties object.
60
+ *
61
+ * @example
62
+ * const CircleStruct = d.struct({ radius: d.f32, pos: d.vec3f });
63
+ *
64
+ * @param props Record with `string` keys and `TgpuData` values,
65
+ * each entry describing one struct member.
66
+ */
67
+ declare function struct<TProps extends Record<string, AnyWgslData>>(props: TProps): WgslStruct<TProps>;
68
+
56
69
  /**
57
70
  * Creates an array schema that can be used to construct gpu buffers.
58
71
  * Describes arrays with fixed-size length, storing elements of the same type.
@@ -129,6 +142,17 @@ declare const vec2i: Vec2i;
129
142
  * const buffer = root.createBuffer(d.vec2u, d.vec2u(0, 1)); // buffer holding a d.vec2u value, with an initial value of vec2u(0, 1);
130
143
  */
131
144
  declare const vec2u: Vec2u;
145
+ /**
146
+ *
147
+ * Schema representing `vec2<bool>` - a vector with 2 elements of type `bool`.
148
+ * Also a constructor function for this vector value.
149
+ *
150
+ * @example
151
+ * const vector = d.vec2b(); // (false, false)
152
+ * const vector = d.vec2b(true); // (true, true)
153
+ * const vector = d.vec2b(false, true); // (false, true)
154
+ */
155
+ declare const vec2b: Vec2b;
132
156
  /**
133
157
  *
134
158
  * Schema representing vec3f - a vector with 3 elements of type f32.
@@ -185,6 +209,17 @@ declare const vec3i: Vec3i;
185
209
  * const buffer = root.createBuffer(d.vec3u, d.vec3u(0, 1, 2)); // buffer holding a d.vec3u value, with an initial value of vec3u(0, 1, 2);
186
210
  */
187
211
  declare const vec3u: Vec3u;
212
+ /**
213
+ *
214
+ * Schema representing `vec3<bool>` - a vector with 3 elements of type `bool`.
215
+ * Also a constructor function for this vector value.
216
+ *
217
+ * @example
218
+ * const vector = d.vec3b(); // (false, false, false)
219
+ * const vector = d.vec3b(true); // (true, true, true)
220
+ * const vector = d.vec3b(false, true, false); // (false, true, false)
221
+ */
222
+ declare const vec3b: Vec3b;
188
223
  /**
189
224
  *
190
225
  * Schema representing vec4f - a vector with 4 elements of type f32.
@@ -241,6 +276,17 @@ declare const vec4i: Vec4i;
241
276
  * const buffer = root.createBuffer(d.vec4u, d.vec4u(0, 1, 2, 3)); // buffer holding a d.vec4u value, with an initial value of vec4u(0, 1, 2, 3);
242
277
  */
243
278
  declare const vec4u: Vec4u;
279
+ /**
280
+ *
281
+ * Schema representing `vec4<bool>` - a vector with 4 elements of type `bool`.
282
+ * Also a constructor function for this vector value.
283
+ *
284
+ * @example
285
+ * const vector = d.vec4b(); // (false, false, false, false)
286
+ * const vector = d.vec4b(true); // (true, true, true, true)
287
+ * const vector = d.vec4b(false, true, false, true); // (false, true, false, true)
288
+ */
289
+ declare const vec4b: Vec4b;
244
290
 
245
291
  /**
246
292
  * Creates an array schema that can be used to construct vertex buffers.
@@ -379,4 +425,4 @@ declare function PUBLIC_sizeOf(schema: AnyData): number;
379
425
  */
380
426
  declare function PUBLIC_alignmentOf(schema: AnyData): number;
381
427
 
382
- export { AnyData, AnyWgslData, Atomic, BaseData, BaseData as BaseWgslData, Bool, Disarray, F16, F32, I32, Mat2x2f, Mat3x3f, Mat4x4f, Ptr, U32, Unstruct, Vec2f, Vec2h, Vec2i, Vec2u, Vec3f, Vec3h, Vec3i, Vec3u, Vec4f, Vec4h, Vec4i, Vec4u, WgslArray, PUBLIC_alignmentOf as alignmentOf, arrayOf, atomic, bool, disarrayOf, f16, f32, i32, m2x2f, m3x3f, m4x4f, mat2x2f, mat3x3f, mat4x4f, matToArray, ptrFn, ptrHandle, ptrPrivate, ptrStorage, ptrUniform, ptrWorkgroup, PUBLIC_sizeOf as sizeOf, u32, unstruct, vec2f, vec2h, vec2i, vec2u, vec3f, vec3h, vec3i, vec3u, vec4f, vec4h, vec4i, vec4u };
428
+ export { AnyData, AnyWgslData, Atomic, BaseData, BaseData as BaseWgslData, Bool, Disarray, F16, F32, I32, Mat2x2f, Mat3x3f, Mat4x4f, Ptr, U32, Unstruct, Vec2b, Vec2f, Vec2h, Vec2i, Vec2u, Vec3b, Vec3f, Vec3h, Vec3i, Vec3u, Vec4b, Vec4f, Vec4h, Vec4i, Vec4u, WgslArray, WgslStruct, PUBLIC_alignmentOf as alignmentOf, arrayOf, atomic, bool, disarrayOf, f16, f32, i32, m2x2f, m3x3f, m4x4f, mat2x2f, mat3x3f, mat4x4f, matToArray, ptrFn, ptrHandle, ptrPrivate, ptrStorage, ptrUniform, ptrWorkgroup, PUBLIC_sizeOf as sizeOf, struct, u32, unstruct, vec2b, vec2f, vec2h, vec2i, vec2u, vec3b, vec3f, vec3h, vec3i, vec3u, vec4b, vec4f, vec4h, vec4i, vec4u };
package/data/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{A as aa,B as ba,C as ca,D as da,E as ea,F as fa,G as ga,H as ha,I as ia,J as ja,K as ka,L as la,M as ma,N as na,O as oa,P as pa,Q as qa,R as ra,S as sa,T as ta,U as ua,V as va,W as wa,X as xa,Y as ya,Z as za,_ as Aa,ba as Ba,c as G,d as H,da as Ca,e as I,ea as Da,f as J,fa as Ea,ga as Fa,h as K,ha as Ga,i as L,ia as Ha,ja as Ia,k as M,ka as Ja,l as N,la as Ka,m as O,ma as La,n as P,na as Ma,o as Q,p as R,pa as Na,q as S,qa as Oa,r as T,ra as Pa,s as U,sa as Qa,t as V,ta as Ra,u as W,v as X,va as Sa,w as Y,x as Z,y as _,z as $}from"../chunk-DVZNNZFQ.js";import{$ as E,A as l,B as m,C as n,D as o,E as p,H as q,I as r,J as s,K as t,L as u,S as v,T as w,U as x,V as y,W as z,X as A,Y as B,Z as C,_ as D,aa as F,p as a,q as b,r as c,s as d,t as e,u as f,v as g,w as h,x as i,y as j,z as k}from"../chunk-UHU5Z2IS.js";export{Na as align,Ba as alignmentOf,Da as arrayOf,Ma as atomic,q as bool,Sa as builtin,Ka as disarrayOf,u as f16,t as f32,ka as float16,la as float16x2,ma as float16x4,na as float32,oa as float32x2,pa as float32x3,qa as float32x4,M as formatToWGSLType,s as i32,Qa as interpolate,A as isAlignAttrib,z as isAtomic,Ra as isBuiltin,E as isBuiltinAttrib,K as isData,F as isDecorated,H as isDisarray,D as isInterpolateAttrib,C as isLocationAttrib,G as isLooseData,J as isLooseDecorated,y as isPtr,B as isSizeAttrib,I as isUnstruct,w as isWgslArray,v as isWgslData,x as isWgslStruct,Pa as location,m as mat2x2f,n as mat3x3f,o as mat4x4f,p as matToArray,N as packedFormats,Ea as ptrFn,Ja as ptrHandle,Fa as ptrPrivate,Ha as ptrStorage,Ia as ptrUniform,Ga as ptrWorkgroup,ba as sint16,ca as sint16x2,da as sint16x4,va as sint32,wa as sint32x2,xa as sint32x3,ya as sint32x4,R as sint8,S as sint8x2,T as sint8x4,Oa as size,Ca as sizeOf,ha as snorm16,ia as snorm16x2,ja as snorm16x4,X as snorm8,Y as snorm8x2,Z as snorm8x4,L as struct,r as u32,_ as uint16,$ as uint16x2,aa as uint16x4,ra as uint32,sa as uint32x2,ta as uint32x3,ua as uint32x4,O as uint8,P as uint8x2,Q as uint8x4,za as unorm10_10_10_2,ea as unorm16,fa as unorm16x2,ga as unorm16x4,U as unorm8,V as unorm8x2,W as unorm8x4,Aa as unorm8x4_bgra,La as unstruct,a as vec2f,b as vec2h,c as vec2i,d as vec2u,e as vec3f,f as vec3h,g as vec3i,h as vec3u,i as vec4f,j as vec4h,k as vec4i,l as vec4u};
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,e as L,ea as Fa,f as M,fa as Ga,ga as Ha,h as N,ha as Ia,i as O,ia as Ja,j as P,k as Q,ka as Ka,l as R,la as La,m as S,ma as Ma,n as T,na as Na,o as U,oa as Oa,p as V,pa as Pa,q as W,qa as Qa,r as X,ra as Ra,s as Y,sa as Sa,t as Z,ta as Ta,u as _,ua as Ua,v as $,va as Va,w as aa,x as ba,y as ca,z as da}from"../chunk-HZAXWB4J.js";import{$ as A,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,Z as y,_ as z,aa as B,ba as C,ca as D,da as E,ea as F,fa as G,ga as H,ha 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-T5Y2EQPZ.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};
2
2
  //# sourceMappingURL=index.js.map