typegpu 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- package/chunk-47YH5LQ7.cjs +4 -0
- package/chunk-47YH5LQ7.cjs.map +1 -0
- package/chunk-BGPVBIFN.js +4 -0
- package/chunk-BGPVBIFN.js.map +1 -0
- package/chunk-MCUGRE3S.js +2 -0
- package/chunk-MCUGRE3S.js.map +1 -0
- package/chunk-OHFPIYFY.cjs +2 -0
- package/chunk-OHFPIYFY.cjs.map +1 -0
- package/data/index.cjs +1 -1
- package/data/index.d.cts +2 -329
- package/data/index.d.ts +2 -329
- package/data/index.js +1 -1
- package/index-BM7ZTN7E.d.ts +749 -0
- package/index-CopjPGJg.d.cts +749 -0
- package/index.cjs +10 -10
- package/index.cjs.map +1 -1
- package/index.d.cts +1147 -10
- package/index.d.ts +1147 -10
- package/index.js +10 -10
- package/index.js.map +1 -1
- package/package.json +1 -7
- package/std/index.cjs +2 -0
- package/std/index.cjs.map +1 -0
- package/std/index.d.cts +59 -0
- package/std/index.d.ts +59 -0
- package/std/index.js +2 -0
- package/std/index.js.map +1 -0
- package/vector-BSez01sn.d.cts +961 -0
- package/vector-BSez01sn.d.ts +961 -0
- package/chunk-5DF7EEAZ.cjs +0 -4
- package/chunk-5DF7EEAZ.cjs.map +0 -1
- package/chunk-PN2EAL4B.js +0 -4
- package/chunk-PN2EAL4B.js.map +0 -1
- package/wgslTypes-BsqIvRBG.d.cts +0 -1814
- package/wgslTypes-BsqIvRBG.d.ts +0 -1814
package/data/index.d.cts
CHANGED
@@ -1,329 +1,2 @@
|
|
1
|
-
|
2
|
-
export {
|
3
|
-
import 'tinyest';
|
4
|
-
|
5
|
-
/**
|
6
|
-
* Struct schema constructed via `d.struct` function.
|
7
|
-
*
|
8
|
-
* Responsible for handling reading and writing struct values
|
9
|
-
* between binary and JS representation. Takes into account
|
10
|
-
* the `byteAlignment` requirement of its members.
|
11
|
-
*/
|
12
|
-
interface TgpuStruct<TProps extends Record<string, BaseWgslData>> extends WgslStruct<TProps>, TgpuNamable {
|
13
|
-
readonly '~exotic': WgslStruct<ExoticRecord<TProps>>;
|
14
|
-
}
|
15
|
-
/**
|
16
|
-
* Creates a struct schema that can be used to construct GPU buffers.
|
17
|
-
* Ensures proper alignment and padding of properties (as opposed to a `d.unstruct` schema).
|
18
|
-
* The order of members matches the passed in properties object.
|
19
|
-
*
|
20
|
-
* @example
|
21
|
-
* const CircleStruct = d.struct({ radius: d.f32, pos: d.vec3f });
|
22
|
-
*
|
23
|
-
* @param props Record with `string` keys and `TgpuData` values,
|
24
|
-
* each entry describing one struct member.
|
25
|
-
*/
|
26
|
-
declare const struct: <TProps extends Record<string, AnyWgslData>>(props: TProps) => TgpuStruct<Prettify<ExoticRecord<TProps>>>;
|
27
|
-
|
28
|
-
/**
|
29
|
-
* Array schema constructed via `d.arrayOf` function.
|
30
|
-
*
|
31
|
-
* Responsible for handling reading and writing array values
|
32
|
-
* between binary and JS representation. Takes into account
|
33
|
-
* the `byteAlignment` requirement of its elementType.
|
34
|
-
*/
|
35
|
-
interface TgpuArray<TElement extends AnyWgslData> extends WgslArray<TElement> {
|
36
|
-
readonly '~exotic': WgslArray<Exotic<TElement>>;
|
37
|
-
}
|
38
|
-
/**
|
39
|
-
* Creates an array schema that can be used to construct gpu buffers.
|
40
|
-
* Describes arrays with fixed-size length, storing elements of the same type.
|
41
|
-
*
|
42
|
-
* @example
|
43
|
-
* const LENGTH = 3;
|
44
|
-
* const array = d.arrayOf(d.u32, LENGTH);
|
45
|
-
*
|
46
|
-
* @param elementType The type of elements in the array.
|
47
|
-
* @param elementCount The number of elements in the array.
|
48
|
-
*/
|
49
|
-
declare const arrayOf: <TElement extends AnyWgslData>(elementType: TElement, elementCount: number) => TgpuArray<Exotic<TElement>>;
|
50
|
-
|
51
|
-
/**
|
52
|
-
* Creates an array schema that can be used to construct vertex buffers.
|
53
|
-
* Describes arrays with fixed-size length, storing elements of the same type.
|
54
|
-
*
|
55
|
-
* Elements in the schema are not aligned in respect to their `byteAlignment`,
|
56
|
-
* unless they are explicitly decorated with the custom align attribute
|
57
|
-
* via `d.align` function.
|
58
|
-
*
|
59
|
-
* @example
|
60
|
-
* const disarray = d.disarrayOf(d.vec3f, 3); // packed array of vec3f
|
61
|
-
*
|
62
|
-
* @example
|
63
|
-
* const disarray = d.disarrayOf(d.align(16, d.vec3f), 3);
|
64
|
-
*
|
65
|
-
* @param elementType The type of elements in the array.
|
66
|
-
* @param count The number of elements in the array.
|
67
|
-
*/
|
68
|
-
declare const disarrayOf: <TElement extends AnyData>(elementType: TElement, count: number) => Disarray<Exotic<TElement>>;
|
69
|
-
|
70
|
-
/**
|
71
|
-
* Creates a loose struct schema that can be used to construct vertex buffers.
|
72
|
-
* Describes structs with members of both loose and non-loose types.
|
73
|
-
*
|
74
|
-
* The order of members matches the passed in properties object.
|
75
|
-
* Members are not aligned in respect to their `byteAlignment`,
|
76
|
-
* unless they are explicitly decorated with the custom align attribute
|
77
|
-
* via `d.align` function.
|
78
|
-
*
|
79
|
-
* @example
|
80
|
-
* const CircleStruct = d.unstruct({ radius: d.f32, pos: d.vec3f }); // packed struct with no padding
|
81
|
-
*
|
82
|
-
* @example
|
83
|
-
* const CircleStruct = d.unstruct({ radius: d.f32, pos: d.align(16, d.vec3f) });
|
84
|
-
*
|
85
|
-
* @param properties Record with `string` keys and `TgpuData` or `TgpuLooseData` values,
|
86
|
-
* each entry describing one struct member.
|
87
|
-
*/
|
88
|
-
declare const unstruct: <TProps extends Record<string, BaseWgslData>>(properties: TProps) => Unstruct<ExoticRecord<TProps>>;
|
89
|
-
|
90
|
-
/**
|
91
|
-
* Type of the `d.mat2x2f` object/function: matrix data type schema/constructor
|
92
|
-
*/
|
93
|
-
type NativeMat2x2f = Mat2x2f & {
|
94
|
-
'~exotic': Mat2x2f;
|
95
|
-
} & ((...elements: number[]) => m2x2f) & ((...columns: v2f[]) => m2x2f) & (() => m2x2f);
|
96
|
-
/**
|
97
|
-
*
|
98
|
-
* Schema representing mat2x2f - a matrix with 2 rows and 2 columns, with elements of type f32.
|
99
|
-
* Also a constructor function for this matrix type.
|
100
|
-
*
|
101
|
-
* @example
|
102
|
-
* const zero2x2 = mat2x2f(); // filled with zeros
|
103
|
-
*
|
104
|
-
* @example
|
105
|
-
* const mat = mat2x2f(0, 1, 2, 3);
|
106
|
-
* mat[0] // vec2f(0, 1)
|
107
|
-
* mat[1] // vec2f(2, 3)
|
108
|
-
*
|
109
|
-
* @example
|
110
|
-
* const mat = mat2x2f(
|
111
|
-
* vec2f(0, 1), // column 0
|
112
|
-
* vec2f(1, 2), // column 1
|
113
|
-
* );
|
114
|
-
*
|
115
|
-
* @example
|
116
|
-
* const buffer = root.createBuffer(d.mat2x2f, d.mat2x2f(0, 1, 2, 3)); // buffer holding a d.mat2x2f value, with an initial value of ((0, 1), (2, 3))
|
117
|
-
*/
|
118
|
-
declare const mat2x2f: NativeMat2x2f;
|
119
|
-
/**
|
120
|
-
* Type of the `d.mat3x3f` object/function: matrix data type schema/constructor
|
121
|
-
*/
|
122
|
-
type NativeMat3x3f = Mat3x3f & {
|
123
|
-
'~exotic': Mat3x3f;
|
124
|
-
} & ((...elements: number[]) => m3x3f) & ((...columns: v3f[]) => m3x3f) & (() => m3x3f);
|
125
|
-
/**
|
126
|
-
*
|
127
|
-
* Schema representing mat3x3f - a matrix with 3 rows and 3 columns, with elements of type f32.
|
128
|
-
* Also a constructor function for this matrix type.
|
129
|
-
*
|
130
|
-
* @example
|
131
|
-
* const zero3x3 = mat3x3f(); // filled with zeros
|
132
|
-
*
|
133
|
-
* @example
|
134
|
-
* const mat = mat3x3f(0, 1, 2, 3, 4, 5, 6, 7, 8);
|
135
|
-
* mat[0] // vec3f(0, 1, 2)
|
136
|
-
* mat[1] // vec3f(3, 4, 5)
|
137
|
-
* mat[2] // vec3f(6, 7, 8)
|
138
|
-
*
|
139
|
-
* @example
|
140
|
-
* const mat = mat3x3f(
|
141
|
-
* vec3f(0, 1, 2), // column 0
|
142
|
-
* vec3f(2, 3, 4), // column 1
|
143
|
-
* vec3f(5, 6, 7), // column 2
|
144
|
-
* );
|
145
|
-
*
|
146
|
-
* @example
|
147
|
-
* const buffer = root.createBuffer(d.mat3x3f, d.mat3x3f()); // buffer holding a d.mat3x3f value, with an initial value of mat3x3f filled with zeros
|
148
|
-
*/
|
149
|
-
declare const mat3x3f: NativeMat3x3f;
|
150
|
-
/**
|
151
|
-
* Type of the `d.mat4x4f` object/function: matrix data type schema/constructor
|
152
|
-
*/
|
153
|
-
type NativeMat4x4f = Mat4x4f & {
|
154
|
-
'~exotic': Mat4x4f;
|
155
|
-
} & ((...elements: number[]) => m4x4f) & ((...columns: v4f[]) => m4x4f) & (() => m4x4f);
|
156
|
-
/**
|
157
|
-
*
|
158
|
-
* Schema representing mat4x4f - a matrix with 4 rows and 4 columns, with elements of type f32.
|
159
|
-
* Also a constructor function for this matrix type.
|
160
|
-
*
|
161
|
-
* @example
|
162
|
-
* const zero4x4 = mat4x4f(); // filled with zeros
|
163
|
-
*
|
164
|
-
* @example
|
165
|
-
* const mat = mat3x3f(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
|
166
|
-
* mat[0] // vec4f(0, 1, 2, 3)
|
167
|
-
* mat[1] // vec4f(4, 5, 6, 7)
|
168
|
-
* mat[2] // vec4f(8, 9, 10, 11)
|
169
|
-
* mat[3] // vec4f(12, 13, 14, 15)
|
170
|
-
*
|
171
|
-
* @example
|
172
|
-
* const mat = mat3x3f(
|
173
|
-
* vec4f(0, 1, 2, 3), // column 0
|
174
|
-
* vec4f(4, 5, 6, 7), // column 1
|
175
|
-
* vec4f(8, 9, 10, 11), // column 2
|
176
|
-
* vec4f(12, 13, 14, 15), // column 3
|
177
|
-
* );
|
178
|
-
*
|
179
|
-
* @example
|
180
|
-
* const buffer = root.createBuffer(d.mat4x4f, d.mat4x4f()); // buffer holding a d.mat4x4f value, with an initial value of mat4x4f filled with zeros
|
181
|
-
*/
|
182
|
-
declare const mat4x4f: NativeMat4x4f;
|
183
|
-
declare function matToArray(mat: m2x2f | m3x3f | m4x4f): number[];
|
184
|
-
|
185
|
-
/**
|
186
|
-
* Marks a concrete integer scalar type schema (u32 or i32) as a WGSL atomic.
|
187
|
-
*
|
188
|
-
* @example
|
189
|
-
* const atomicU32 = d.atomic(d.u32);
|
190
|
-
* const atomicI32 = d.atomic(d.i32);
|
191
|
-
*
|
192
|
-
* @param data Underlying type schema.
|
193
|
-
*/
|
194
|
-
declare function atomic<TSchema extends U32 | I32>(data: TSchema): Atomic<Exotic<TSchema>>;
|
195
|
-
|
196
|
-
declare const builtinNames: readonly ["vertex_index", "instance_index", "position", "clip_distances", "front_facing", "frag_depth", "sample_index", "sample_mask", "fragment", "local_invocation_id", "local_invocation_index", "global_invocation_id", "workgroup_id", "num_workgroups"];
|
197
|
-
type BuiltinName = (typeof builtinNames)[number];
|
198
|
-
type AnyAttribute = Align<number> | Size<number> | Location<number> | Builtin<BuiltinName>;
|
199
|
-
type ExtractAttributes<T> = T extends {
|
200
|
-
readonly attribs: unknown[];
|
201
|
-
} ? T['attribs'] : [];
|
202
|
-
type Undecorate<T> = T extends {
|
203
|
-
readonly inner: infer TInner;
|
204
|
-
} ? TInner : T;
|
205
|
-
/**
|
206
|
-
* Decorates a data-type `TData` with an attribute `TAttrib`.
|
207
|
-
*
|
208
|
-
* - if `TData` is loose
|
209
|
-
* - if `TData` is already `LooseDecorated`
|
210
|
-
* - Prepend `TAttrib` to the existing attribute tuple.
|
211
|
-
* - else
|
212
|
-
* - Wrap `TData` with `LooseDecorated` and a single attribute `[TAttrib]`
|
213
|
-
* - else
|
214
|
-
* - if `TData` is already `Decorated`
|
215
|
-
* - Prepend `TAttrib` to the existing attribute tuple.
|
216
|
-
* - else
|
217
|
-
* - Wrap `TData` with `Decorated` and a single attribute `[TAttrib]`
|
218
|
-
*/
|
219
|
-
type Decorate<TData extends BaseWgslData, TAttrib extends AnyAttribute> = TData['type'] extends WgslTypeLiteral ? Decorated<Undecorate<TData>, [TAttrib, ...ExtractAttributes<TData>]> : TData['type'] extends LooseTypeLiteral ? LooseDecorated<Undecorate<TData>, [TAttrib, ...ExtractAttributes<TData>]> : never;
|
220
|
-
type IsBuiltin<T> = ExtractAttributes<T>[number] extends [] ? false : ExtractAttributes<T>[number] extends Builtin<BuiltinName> ? true : false;
|
221
|
-
type HasCustomLocation<T> = ExtractAttributes<T>[number] extends [] ? false : ExtractAttributes<T>[number] extends Location<number> ? true : false;
|
222
|
-
/**
|
223
|
-
* Gives the wrapped data-type a custom byte alignment. Useful in order to
|
224
|
-
* fulfill uniform alignment requirements.
|
225
|
-
*
|
226
|
-
* @example
|
227
|
-
* const Data = d.struct({
|
228
|
-
* a: u32, // takes up 4 bytes
|
229
|
-
* // 12 bytes of padding, because `b` is custom aligned to multiples of 16 bytes
|
230
|
-
* b: d.align(16, u32),
|
231
|
-
* });
|
232
|
-
*
|
233
|
-
* @param alignment The multiple of bytes this data should align itself to.
|
234
|
-
* @param data The data-type to align.
|
235
|
-
*/
|
236
|
-
declare function align<TAlign extends number, TData extends AnyData>(alignment: TAlign, data: TData): Decorate<Exotic<TData>, Align<TAlign>>;
|
237
|
-
/**
|
238
|
-
* Adds padding bytes after the wrapped data-type, until the whole value takes up `size` bytes.
|
239
|
-
*
|
240
|
-
* @example
|
241
|
-
* const Data = d.struct({
|
242
|
-
* a: d.size(16, u32), // takes up 16 bytes, instead of 4
|
243
|
-
* b: u32, // starts at byte 16, because `a` has a custom size
|
244
|
-
* });
|
245
|
-
*
|
246
|
-
* @param size The amount of bytes that should be reserved for this data-type.
|
247
|
-
* @param data The data-type to wrap.
|
248
|
-
*/
|
249
|
-
declare function size<TSize extends number, TData extends AnyData>(size: TSize, data: TData): Decorate<Exotic<TData>, Size<TSize>>;
|
250
|
-
/**
|
251
|
-
* Assigns an explicit numeric location to a struct member or a parameter that has this type.
|
252
|
-
*
|
253
|
-
* @example
|
254
|
-
* const Data = d.ioStruct({
|
255
|
-
* a: d.u32, // has implicit location 0
|
256
|
-
* b: d.location(5, d.u32),
|
257
|
-
* c: d.u32, // has implicit location 6
|
258
|
-
* });
|
259
|
-
*
|
260
|
-
* @param location The explicit numeric location.
|
261
|
-
* @param data The data-type to wrap.
|
262
|
-
*/
|
263
|
-
declare function location<TLocation extends number, TData extends AnyData>(location: TLocation, data: TData): Decorate<Exotic<TData>, Location<TLocation>>;
|
264
|
-
declare function isBuiltin<T extends Decorated<AnyWgslData, AnyAttribute[]> | LooseDecorated<AnyLooseData, AnyAttribute[]>>(value: T | unknown): value is T;
|
265
|
-
|
266
|
-
/**
|
267
|
-
* Returns the size (in bytes) of data represented by the `schema`.
|
268
|
-
*/
|
269
|
-
declare function PUBLIC_sizeOf(schema: AnyData): number;
|
270
|
-
|
271
|
-
/**
|
272
|
-
* Returns the alignment (in bytes) of data represented by the `schema`.
|
273
|
-
*/
|
274
|
-
declare function PUBLIC_alignmentOf(schema: AnyData): number;
|
275
|
-
|
276
|
-
type BuiltinVertexIndex = Decorated<U32, [Builtin<'vertex_index'>]>;
|
277
|
-
type BuiltinInstanceIndex = Decorated<U32, [Builtin<'instance_index'>]>;
|
278
|
-
type BuiltinPosition = Decorated<Vec4f, [Builtin<'position'>]>;
|
279
|
-
type BuiltinClipDistances = Decorated<WgslArray<U32>, [
|
280
|
-
Builtin<'clip_distances'>
|
281
|
-
]>;
|
282
|
-
type BuiltinFrontFacing = Decorated<F32, [Builtin<'front_facing'>]>;
|
283
|
-
type BuiltinFragDepth = Decorated<F32, [Builtin<'frag_depth'>]>;
|
284
|
-
type BuiltinSampleIndex = Decorated<U32, [Builtin<'sample_index'>]>;
|
285
|
-
type BuiltinSampleMask = Decorated<U32, [Builtin<'sample_mask'>]>;
|
286
|
-
type BuiltinFragment = Decorated<Vec4f, [Builtin<'fragment'>]>;
|
287
|
-
type BuiltinLocalInvocationId = Decorated<Vec3u, [
|
288
|
-
Builtin<'local_invocation_id'>
|
289
|
-
]>;
|
290
|
-
type BuiltinLocalInvocationIndex = Decorated<U32, [
|
291
|
-
Builtin<'local_invocation_index'>
|
292
|
-
]>;
|
293
|
-
type BuiltinGlobalInvocationId = Decorated<Vec3u, [
|
294
|
-
Builtin<'global_invocation_id'>
|
295
|
-
]>;
|
296
|
-
type BuiltinWorkgroupId = Decorated<Vec3u, [Builtin<'workgroup_id'>]>;
|
297
|
-
type BuiltinNumWorkgroups = Decorated<Vec3u, [
|
298
|
-
Builtin<'num_workgroups'>
|
299
|
-
]>;
|
300
|
-
declare const builtin: {
|
301
|
-
readonly vertexIndex: BuiltinVertexIndex;
|
302
|
-
readonly instanceIndex: BuiltinInstanceIndex;
|
303
|
-
readonly position: BuiltinPosition;
|
304
|
-
readonly clipDistances: BuiltinClipDistances;
|
305
|
-
readonly frontFacing: BuiltinFrontFacing;
|
306
|
-
readonly fragDepth: BuiltinFragDepth;
|
307
|
-
readonly sampleIndex: BuiltinSampleIndex;
|
308
|
-
readonly sampleMask: BuiltinSampleMask;
|
309
|
-
readonly localInvocationId: BuiltinLocalInvocationId;
|
310
|
-
readonly localInvocationIndex: BuiltinLocalInvocationIndex;
|
311
|
-
readonly globalInvocationId: BuiltinGlobalInvocationId;
|
312
|
-
readonly workgroupId: BuiltinWorkgroupId;
|
313
|
-
readonly numWorkgroups: BuiltinNumWorkgroups;
|
314
|
-
};
|
315
|
-
type AnyBuiltin = (typeof builtin)[keyof typeof builtin];
|
316
|
-
|
317
|
-
/**
|
318
|
-
* @module typegpu/data
|
319
|
-
*/
|
320
|
-
|
321
|
-
/**
|
322
|
-
* Extracts the inferred representation of a resource.
|
323
|
-
* @example
|
324
|
-
* type A = Infer<F32> // => number
|
325
|
-
* type B = Infer<TgpuArray<F32>> // => number[]
|
326
|
-
*/
|
327
|
-
type Infer<T> = Infer$1<Exotic<T>>;
|
328
|
-
|
329
|
-
export { Align, type AnyAttribute, type AnyBuiltin, AnyData, AnyLooseData, AnyWgslData, Atomic, BaseWgslData, Builtin, type BuiltinClipDistances, type BuiltinFragDepth, type BuiltinFragment, type BuiltinFrontFacing, type BuiltinGlobalInvocationId, type BuiltinInstanceIndex, type BuiltinLocalInvocationId, type BuiltinLocalInvocationIndex, type BuiltinNumWorkgroups, type BuiltinPosition, type BuiltinSampleIndex, type BuiltinSampleMask, type BuiltinVertexIndex, type BuiltinWorkgroupId, Decorated, Disarray, F32, type HasCustomLocation, I32, type Infer, type IsBuiltin, Location, LooseDecorated, Mat2x2f, Mat3x3f, Mat4x4f, Size, type TgpuArray, type TgpuStruct, U32, Unstruct, Vec3u, Vec4f, WgslArray, WgslStruct, align, PUBLIC_alignmentOf as alignmentOf, arrayOf, atomic, builtin, disarrayOf, isBuiltin, location, m2x2f, m3x3f, m4x4f, mat2x2f, mat3x3f, mat4x4f, matToArray, size, PUBLIC_sizeOf as sizeOf, struct, unstruct, v2f, v3f, v4f };
|
1
|
+
export { a as AnyAttribute, A as AnyBuiltin, b as AnyData, r as AnyLooseData, a2 as BuiltinClipDistances, a4 as BuiltinFragDepth, a7 as BuiltinFragment, a3 as BuiltinFrontFacing, aa as BuiltinGlobalInvocationId, a0 as BuiltinInstanceIndex, a8 as BuiltinLocalInvocationId, a9 as BuiltinLocalInvocationIndex, ac as BuiltinNumWorkgroups, a1 as BuiltinPosition, a5 as BuiltinSampleIndex, a6 as BuiltinSampleMask, $ as BuiltinVertexIndex, ab as BuiltinWorkgroupId, e as Disarray, ad as FormatToWGSLType, H as HasCustomLocation, j as Infer, I as IsBuiltin, L as LooseDecorated, aV as PackedData, p as TgpuArray, d as TgpuStruct, ae as TgpuVertexFormatData, f as Unstruct, C as align, Z as alignmentOf, q as arrayOf, B as atomic, l as bool, _ as builtin, t as disarrayOf, n as f16, m as f32, aE as float16, aF as float16x2, aG as float16x4, aH as float32, aI as float32x2, aJ as float32x3, aK as float32x4, o as i32, J as interpolate, N as isBuiltin, W as isData, Q as isDisarray, X as isLooseData, S as isLooseDecorated, R as isUnstruct, G as location, w as mat2x2f, x as mat3x3f, y as mat4x4f, z as matToArray, af as packedFormats, av as sint16, aw as sint16x2, ax as sint16x4, aP as sint32, aQ as sint32x2, aR as sint32x3, aS as sint32x4, aj as sint8, ak as sint8x2, al as sint8x4, F as size, Y as sizeOf, aB as snorm16, aC as snorm16x2, aD as snorm16x4, ap as snorm8, aq as snorm8x2, ar as snorm8x4, s as struct, u as u32, as as uint16, at as uint16x2, au as uint16x4, aL as uint32, aM as uint32x2, aN as uint32x3, aO as uint32x4, ag as uint8, ah as uint8x2, ai as uint8x4, aT as unorm10_10_10_2, ay as unorm16, az as unorm16x2, aA as unorm16x4, am as unorm8, an as unorm8x2, ao as unorm8x4, aU as unorm8x4_bgra, v as unstruct } from '../index-CopjPGJg.cjs';
|
2
|
+
export { T as Align, A as AnyWgslData, S as Atomic, B as BaseWgslData, s as Bool, r as Builtin, D as Decorated, a as F16, F as F32, b as I32, Y as Interpolate, L as Location, M as Mat2x2f, O as Mat3x3f, Q as Mat4x4f, X as Size, U as U32, 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, W as WgslArray, n as WgslStruct, a7 as isAlignAttrib, a5 as isAtomic, a8 as isBuiltinAttrib, a6 as isDecorated, aa as isInterpolateAttrib, a9 as isLocationAttrib, ab as isSizeAttrib, a3 as isWgslArray, a2 as isWgslData, a4 as isWgslStruct, G as m2x2f, H as m3x3f, J as m4x4f, K as v2f, ac as v2i, ad as v2u, P as v3f, ae as v3i, af as v3u, R as v4f, ag as v4i, ah as v4u, ai as vec2f, aj as vec2h, ak as vec2i, al as vec2u, am as vec3f, an as vec3h, ao as vec3i, ap as vec3u, aq as vec4f, ar as vec4h, as as vec4i, at as vec4u } from '../vector-BSez01sn.cjs';
|