@wonderyard/vivarium 1.4.1 → 2.0.0
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.
- package/README.md +8 -3
- package/dist/automaton/types.d.ts +1 -0
- package/dist/blueprint/base-blueprint.js +1 -3
- package/dist/blueprint/ref-blueprint.js +2 -2
- package/dist/blueprint/rule-blueprint.js +2 -2
- package/dist/blueprint/utils.js +1 -1
- package/dist/blueprint/vivarium-blueprint.d.ts +3 -1
- package/dist/blueprint/vivarium-blueprint.js +7 -6
- package/dist/common/constants.d.ts +1 -0
- package/dist/common/constants.js +7 -6
- package/dist/common/utils.js +2 -2
- package/dist/constants-BT-9-x_4.js +3289 -0
- package/dist/main.d.ts +2 -2
- package/dist/main.js +1 -1
- package/dist/{rule-blueprint-DGODv9IV.js → rule-blueprint-C9qa6iP-.js} +1 -1
- package/dist/vivarium/vivarium.d.ts +4 -1
- package/dist/vivarium/vivarium.js +4 -4
- package/dist/webgpu/compiler.d.ts +2 -1
- package/dist/webgpu/compiler.js +37 -50
- package/dist/webgpu/setup.d.ts +5 -2
- package/dist/webgpu/setup.js +8452 -4915
- package/package.json +21 -20
- package/dist/constants-D4GX9YB2.js +0 -2301
|
@@ -1,2301 +0,0 @@
|
|
|
1
|
-
var T = "0.9.0", u = /* @__PURE__ */ Symbol(`typegpu:${T}:$internal`), Es = /* @__PURE__ */ Symbol(`typegpu:${T}:$gpuValueOf`), Y = /* @__PURE__ */ Symbol(`typegpu:${T}:$getNameForward`), ge = /* @__PURE__ */ Symbol(`typegpu:${T}:$providing`), It = /* @__PURE__ */ Symbol(`typegpu:${T}:$ownSnippet`), R = /* @__PURE__ */ Symbol(`typegpu:${T}:$resolve`), xe = /* @__PURE__ */ Symbol(`typegpu:${T}:$repr`);
|
|
2
|
-
function c(t) {
|
|
3
|
-
return !!t?.[u];
|
|
4
|
-
}
|
|
5
|
-
var Is = { [u]: !0, type: "void", toString() {
|
|
6
|
-
return "void";
|
|
7
|
-
} }, _e = ["bool", "f32", "f16", "i32", "u32", "u16", "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", "texture_1d", "texture_storage_1d", "texture_2d", "texture_storage_2d", "texture_multisampled_2d", "texture_depth_2d", "texture_depth_multisampled_2d", "texture_2d_array", "texture_storage_2d_array", "texture_depth_2d_array", "texture_cube", "texture_depth_cube", "texture_cube_array", "texture_depth_cube_array", "texture_3d", "texture_storage_3d", "texture_external", "sampler", "sampler_comparison"];
|
|
8
|
-
function X(t) {
|
|
9
|
-
let e = t;
|
|
10
|
-
return c(e) && typeof e.kind == "string" && e.kind.startsWith("vec");
|
|
11
|
-
}
|
|
12
|
-
function le(t) {
|
|
13
|
-
let e = t;
|
|
14
|
-
return c(e) && typeof e.type == "string" && e.type.startsWith("vec2");
|
|
15
|
-
}
|
|
16
|
-
function pe(t) {
|
|
17
|
-
let e = t;
|
|
18
|
-
return c(e) && typeof e.type == "string" && e.type.startsWith("vec3");
|
|
19
|
-
}
|
|
20
|
-
function fe(t) {
|
|
21
|
-
let e = t;
|
|
22
|
-
return c(e) && typeof e.type == "string" && e.type.startsWith("vec4");
|
|
23
|
-
}
|
|
24
|
-
function B(t) {
|
|
25
|
-
return le(t) || pe(t) || fe(t);
|
|
26
|
-
}
|
|
27
|
-
function Ot(t) {
|
|
28
|
-
let e = t;
|
|
29
|
-
return c(e) && typeof e.kind?.startsWith == "function" && e.kind.startsWith("mat");
|
|
30
|
-
}
|
|
31
|
-
function Ve(t) {
|
|
32
|
-
return c(t) && t?.type === "mat2x2f";
|
|
33
|
-
}
|
|
34
|
-
function ze(t) {
|
|
35
|
-
return c(t) && t?.type === "mat3x3f";
|
|
36
|
-
}
|
|
37
|
-
function me(t) {
|
|
38
|
-
return c(t) && t?.type === "mat4x4f";
|
|
39
|
-
}
|
|
40
|
-
function dt(t) {
|
|
41
|
-
return Ve(t) || ze(t) || me(t);
|
|
42
|
-
}
|
|
43
|
-
function Os(t) {
|
|
44
|
-
return X(t) && ["vec2f", "vec3f", "vec4f"].includes(t.kind);
|
|
45
|
-
}
|
|
46
|
-
function $t(t) {
|
|
47
|
-
return c(t) && _e.includes(t?.type);
|
|
48
|
-
}
|
|
49
|
-
function $s(t) {
|
|
50
|
-
return c(t) && t?.type === "array";
|
|
51
|
-
}
|
|
52
|
-
function Ns(t) {
|
|
53
|
-
return c(t) && t?.type === "struct";
|
|
54
|
-
}
|
|
55
|
-
function de(t) {
|
|
56
|
-
return c(t) && t?.type === "ptr";
|
|
57
|
-
}
|
|
58
|
-
function ks(t) {
|
|
59
|
-
return c(t) && t?.type === "atomic";
|
|
60
|
-
}
|
|
61
|
-
function be(t) {
|
|
62
|
-
return c(t) && t?.type === "@align";
|
|
63
|
-
}
|
|
64
|
-
function ve(t) {
|
|
65
|
-
return c(t) && t?.type === "@size";
|
|
66
|
-
}
|
|
67
|
-
function Te(t) {
|
|
68
|
-
return c(t) && t?.type === "@location";
|
|
69
|
-
}
|
|
70
|
-
function Ps(t) {
|
|
71
|
-
return c(t) && t?.type === "@interpolate";
|
|
72
|
-
}
|
|
73
|
-
function Ss(t) {
|
|
74
|
-
return c(t) && t?.type === "@builtin";
|
|
75
|
-
}
|
|
76
|
-
function js(t) {
|
|
77
|
-
return c(t) && t?.type === "decorated";
|
|
78
|
-
}
|
|
79
|
-
function Fs(t) {
|
|
80
|
-
return c(t) && t.type === "void";
|
|
81
|
-
}
|
|
82
|
-
function Ee(t) {
|
|
83
|
-
let e = t?.type;
|
|
84
|
-
return c(t) && (e === "abstractInt" || e === "abstractFloat" || e === "f32" || e === "f16" || e === "i32" || e === "u32");
|
|
85
|
-
}
|
|
86
|
-
function Ms(t) {
|
|
87
|
-
let e = t?.type;
|
|
88
|
-
return c(t) && (e === "f16" || e === "vec2h" || e === "vec3h" || e === "vec4h");
|
|
89
|
-
}
|
|
90
|
-
var Ie = ["abstractInt", "abstractFloat", "f32", "f16", "i32", "u32", "bool"];
|
|
91
|
-
function Oe(t) {
|
|
92
|
-
return !c(t) || Ie.includes(t?.type);
|
|
93
|
-
}
|
|
94
|
-
function $e(t) {
|
|
95
|
-
return t.schema;
|
|
96
|
-
}
|
|
97
|
-
var P = process.env.NODE_ENV === "development", Q = process.env.NODE_ENV === "test";
|
|
98
|
-
Object.assign(globalThis, { __TYPEGPU_AUTONAME__: (t, e) => (Ne(t) && c(t) && !E(t) && t.$name(e), t) });
|
|
99
|
-
var S = globalThis, Cs = (P || Q) && { get enabled() {
|
|
100
|
-
return !!S.__TYPEGPU_MEASURE_PERF__;
|
|
101
|
-
}, record(t, e) {
|
|
102
|
-
let s = S.__TYPEGPU_PERF_RECORDS__ ??= /* @__PURE__ */ new Map(), i = s.get(t);
|
|
103
|
-
i || (i = [], s.set(t, i)), i.push(e);
|
|
104
|
-
} } || void 0;
|
|
105
|
-
function Nt(t) {
|
|
106
|
-
return !!t?.[Y];
|
|
107
|
-
}
|
|
108
|
-
function E(t) {
|
|
109
|
-
return Nt(t) ? E(t[Y]) : kt(t)?.name;
|
|
110
|
-
}
|
|
111
|
-
function N(t, e) {
|
|
112
|
-
Nt(t) && N(t[Y], e), Pe(t, { name: e });
|
|
113
|
-
}
|
|
114
|
-
function Ne(t) {
|
|
115
|
-
return !!t?.$name;
|
|
116
|
-
}
|
|
117
|
-
function ke(t) {
|
|
118
|
-
return !!kt(t)?.ast;
|
|
119
|
-
}
|
|
120
|
-
function kt(t) {
|
|
121
|
-
return S.__TYPEGPU_META__.get(t);
|
|
122
|
-
}
|
|
123
|
-
function Pe(t, e) {
|
|
124
|
-
S.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap();
|
|
125
|
-
let s = S.__TYPEGPU_META__;
|
|
126
|
-
s.set(t, { ...s.get(t), ...e });
|
|
127
|
-
}
|
|
128
|
-
var Se = ["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"], As = { 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" };
|
|
129
|
-
function $(t) {
|
|
130
|
-
return t.type === "decorated" || t.type === "loose-decorated" ? t.inner : t;
|
|
131
|
-
}
|
|
132
|
-
function Gs(t) {
|
|
133
|
-
return t.type === "ptr" ? t.inner : t;
|
|
134
|
-
}
|
|
135
|
-
var je = ["unstruct", "disarray", "loose-decorated", ...Se];
|
|
136
|
-
function Fe(t) {
|
|
137
|
-
return c(t) && je.includes(t?.type);
|
|
138
|
-
}
|
|
139
|
-
function Ls(t) {
|
|
140
|
-
return c(t) && t?.type === "disarray";
|
|
141
|
-
}
|
|
142
|
-
function Rs(t) {
|
|
143
|
-
return c(t) && t?.type === "unstruct";
|
|
144
|
-
}
|
|
145
|
-
function Us(t) {
|
|
146
|
-
return c(t) && t?.type === "loose-decorated";
|
|
147
|
-
}
|
|
148
|
-
function Ys(t) {
|
|
149
|
-
return t.attribs?.find(be)?.params[0];
|
|
150
|
-
}
|
|
151
|
-
function Hs(t) {
|
|
152
|
-
return t.attribs?.find(ve)?.params[0];
|
|
153
|
-
}
|
|
154
|
-
function Bs(t) {
|
|
155
|
-
return t.attribs?.find(Te)?.params[0];
|
|
156
|
-
}
|
|
157
|
-
function Ws(t) {
|
|
158
|
-
return $t(t) || Fe(t);
|
|
159
|
-
}
|
|
160
|
-
var W = { type: "unknown", toString() {
|
|
161
|
-
return "unknown";
|
|
162
|
-
} }, Ds = class {
|
|
163
|
-
constructor(t, e, s) {
|
|
164
|
-
this.name = t, this.lhs = e, this.operator = s;
|
|
165
|
-
}
|
|
166
|
-
}, Ks = class {
|
|
167
|
-
constructor(t) {
|
|
168
|
-
this.matrix = t;
|
|
169
|
-
}
|
|
170
|
-
}, Js = class {
|
|
171
|
-
constructor(t) {
|
|
172
|
-
this.op = t, N(this, "consoleLog");
|
|
173
|
-
}
|
|
174
|
-
[u] = !0;
|
|
175
|
-
}, H = "Invariant failed";
|
|
176
|
-
function Pt(t, e) {
|
|
177
|
-
if (t) return;
|
|
178
|
-
if (!P && !Q) throw new Error(H);
|
|
179
|
-
let s = typeof e == "function" ? e() : e, i = s ? `${H}: ${s}` : H;
|
|
180
|
-
throw new Error(i);
|
|
181
|
-
}
|
|
182
|
-
var Zs = class D extends Error {
|
|
183
|
-
constructor(e, s) {
|
|
184
|
-
let i = s.map((n) => `- ${ke(n) ? `fn*:${E(n)}` : n}`);
|
|
185
|
-
i.length > 20 && (i = [...i.slice(0, 11), "...", ...i.slice(-10)]), super(`Resolution of the following tree failed:
|
|
186
|
-
${i.join(`
|
|
187
|
-
`)}: ${e && typeof e == "object" && "message" in e ? e.message : e}`), this.cause = e, this.trace = s, Object.setPrototypeOf(this, D.prototype);
|
|
188
|
-
}
|
|
189
|
-
appendToTrace(e) {
|
|
190
|
-
let s = [e, ...this.trace];
|
|
191
|
-
return new D(this.cause, s);
|
|
192
|
-
}
|
|
193
|
-
}, Xs = class K extends Error {
|
|
194
|
-
constructor(e, s) {
|
|
195
|
-
let i = s.map((n) => `- ${n}`);
|
|
196
|
-
i.length > 20 && (i = [...i.slice(0, 11), "...", ...i.slice(-10)]), super(`Execution of the following tree failed:
|
|
197
|
-
${i.join(`
|
|
198
|
-
`)}: ${e && typeof e == "object" && "message" in e ? e.message : e}`), this.cause = e, this.trace = s, Object.setPrototypeOf(this, K.prototype);
|
|
199
|
-
}
|
|
200
|
-
appendToTrace(e) {
|
|
201
|
-
let s = [e, ...this.trace];
|
|
202
|
-
return new K(this.cause, s);
|
|
203
|
-
}
|
|
204
|
-
}, Qs = class St extends Error {
|
|
205
|
-
constructor(e) {
|
|
206
|
-
super(`Missing value for '${e}'`), this.slot = e, Object.setPrototypeOf(this, St.prototype);
|
|
207
|
-
}
|
|
208
|
-
}, qs = class jt extends Error {
|
|
209
|
-
constructor(e) {
|
|
210
|
-
super(`Buffer '${E(e) ?? "<unnamed>"}' is not bindable as a uniform. Use .$usage('uniform') to allow it.`), Object.setPrototypeOf(this, jt.prototype);
|
|
211
|
-
}
|
|
212
|
-
}, ti = class Ft extends Error {
|
|
213
|
-
constructor(e, s) {
|
|
214
|
-
super(`The function '${e ?? "<unnamed>"}' is missing links to the following external values: ${s}.`), Object.setPrototypeOf(this, Ft.prototype);
|
|
215
|
-
}
|
|
216
|
-
}, ei = class Mt extends Error {
|
|
217
|
-
constructor(e) {
|
|
218
|
-
super(`Missing bind groups for layouts: '${[...e].map((s) => E(s) ?? "<unnamed>").join(", ")}'. Please provide it using pipeline.with(bindGroup).(...)`), Object.setPrototypeOf(this, Mt.prototype);
|
|
219
|
-
}
|
|
220
|
-
}, si = class Ct extends Error {
|
|
221
|
-
constructor(e) {
|
|
222
|
-
super(`Missing vertex buffers for layouts: '${[...e].map((s) => E(s) ?? "<unnamed>").join(", ")}'. Please provide it using pipeline.with(layout, buffer).(...)`), Object.setPrototypeOf(this, Ct.prototype);
|
|
223
|
-
}
|
|
224
|
-
}, ii = class At extends Error {
|
|
225
|
-
constructor(e) {
|
|
226
|
-
super(e), Object.setPrototypeOf(this, At.prototype);
|
|
227
|
-
}
|
|
228
|
-
}, ni = class Gt extends Error {
|
|
229
|
-
constructor(e) {
|
|
230
|
-
super(e), Object.setPrototypeOf(this, Gt.prototype);
|
|
231
|
-
}
|
|
232
|
-
}, q = class Lt extends Error {
|
|
233
|
-
constructor(e) {
|
|
234
|
-
super(e), Object.setPrototypeOf(this, Lt.prototype);
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
function Me(t) {
|
|
238
|
-
return t?.resourceType === "slot";
|
|
239
|
-
}
|
|
240
|
-
function Ce(t) {
|
|
241
|
-
return t?.resourceType === "derived";
|
|
242
|
-
}
|
|
243
|
-
function Ae(t) {
|
|
244
|
-
return t?.[ge] !== void 0;
|
|
245
|
-
}
|
|
246
|
-
function ri(t) {
|
|
247
|
-
return t?.resourceType === "accessor";
|
|
248
|
-
}
|
|
249
|
-
function Ge(t) {
|
|
250
|
-
return t === "runtime" || t === "constant" || t === "argument";
|
|
251
|
-
}
|
|
252
|
-
function hi(t) {
|
|
253
|
-
return Ge(t.origin);
|
|
254
|
-
}
|
|
255
|
-
var Le = { uniform: { space: "uniform", access: "read" }, readonly: { space: "storage", access: "read" }, mutable: { space: "storage", access: "read-write" }, workgroup: { space: "workgroup", access: "read-write" }, private: { space: "private", access: "read-write" }, function: { space: "function", access: "read-write" }, "this-function": { space: "function", access: "read-write" } }, Rt = class {
|
|
256
|
-
constructor(t, e, s) {
|
|
257
|
-
this.value = t, this.dataType = e, this.origin = s;
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
function tt(t) {
|
|
261
|
-
return t instanceof Rt;
|
|
262
|
-
}
|
|
263
|
-
function ui(t) {
|
|
264
|
-
return Ee(t.dataType);
|
|
265
|
-
}
|
|
266
|
-
function o(t, e, s) {
|
|
267
|
-
if (P && tt(t)) throw new Error("Cannot nest snippets");
|
|
268
|
-
return new Rt(t, $(e), s);
|
|
269
|
-
}
|
|
270
|
-
function ci(t) {
|
|
271
|
-
return z("function", t, "read-write");
|
|
272
|
-
}
|
|
273
|
-
function ai(t) {
|
|
274
|
-
return z("private", t, "read-write");
|
|
275
|
-
}
|
|
276
|
-
function oi(t) {
|
|
277
|
-
return z("workgroup", t, "read-write");
|
|
278
|
-
}
|
|
279
|
-
function wi(t, e = "read") {
|
|
280
|
-
return z("storage", t, e);
|
|
281
|
-
}
|
|
282
|
-
function yi(t) {
|
|
283
|
-
return z("uniform", t, "read");
|
|
284
|
-
}
|
|
285
|
-
function gi(t) {
|
|
286
|
-
return z("handle", t, "read");
|
|
287
|
-
}
|
|
288
|
-
function z(t, e, s, i = !1) {
|
|
289
|
-
return { [u]: !0, type: "ptr", addressSpace: t, inner: e, access: s, implicit: i, toString: () => `ptr<${t}, ${e}, ${s}>` };
|
|
290
|
-
}
|
|
291
|
-
function Re(t, e) {
|
|
292
|
-
let s = Le[t];
|
|
293
|
-
if (s) return z(s.space, e, s.access);
|
|
294
|
-
}
|
|
295
|
-
function xi(t) {
|
|
296
|
-
return z(t.addressSpace, t.inner, t.access, !0);
|
|
297
|
-
}
|
|
298
|
-
function Ue(t) {
|
|
299
|
-
return z(t.addressSpace, t.inner, t.access, !1);
|
|
300
|
-
}
|
|
301
|
-
var et = class {
|
|
302
|
-
type = "normal";
|
|
303
|
-
}, _i = class {
|
|
304
|
-
type = "codegen";
|
|
305
|
-
}, li = class {
|
|
306
|
-
constructor(t, e) {
|
|
307
|
-
this.buffers = t, this.vars = e;
|
|
308
|
-
}
|
|
309
|
-
type = "simulate";
|
|
310
|
-
};
|
|
311
|
-
function Ye(t) {
|
|
312
|
-
return !!t?.[R];
|
|
313
|
-
}
|
|
314
|
-
function Ut(t) {
|
|
315
|
-
return t?.[It];
|
|
316
|
-
}
|
|
317
|
-
function J(t) {
|
|
318
|
-
return (typeof t.value != "string" || t.dataType.type === "unknown") && Ut(t.value) === void 0;
|
|
319
|
-
}
|
|
320
|
-
function pi(t) {
|
|
321
|
-
return typeof t == "number" || typeof t == "boolean" || typeof t == "string" || Ye(t) || $t(t) || Me(t) || Ce(t) || Ae(t);
|
|
322
|
-
}
|
|
323
|
-
function fi(t) {
|
|
324
|
-
return !!t && typeof t == "object" && "getMappedRange" in t && "mapAsync" in t;
|
|
325
|
-
}
|
|
326
|
-
var C = !1;
|
|
327
|
-
function Vi(t) {
|
|
328
|
-
if (C) return t();
|
|
329
|
-
try {
|
|
330
|
-
return C = !0, t();
|
|
331
|
-
} finally {
|
|
332
|
-
C = !1;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
function zi() {
|
|
336
|
-
return C;
|
|
337
|
-
}
|
|
338
|
-
var m;
|
|
339
|
-
function mi(t, e) {
|
|
340
|
-
if (Pt(m === void 0 || m === t, "Cannot nest context providers"), m === t) return e();
|
|
341
|
-
m = t;
|
|
342
|
-
try {
|
|
343
|
-
return e();
|
|
344
|
-
} finally {
|
|
345
|
-
m = void 0;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
function st() {
|
|
349
|
-
return m;
|
|
350
|
-
}
|
|
351
|
-
var He = new et();
|
|
352
|
-
function di() {
|
|
353
|
-
return m?.mode ?? He;
|
|
354
|
-
}
|
|
355
|
-
function Yt() {
|
|
356
|
-
return m?.mode.type === "codegen";
|
|
357
|
-
}
|
|
358
|
-
function g(t, ...e) {
|
|
359
|
-
let s = st();
|
|
360
|
-
function i(r) {
|
|
361
|
-
return tt(r) ? s.resolve(r.value, r.dataType).value : r;
|
|
362
|
-
}
|
|
363
|
-
let n = "";
|
|
364
|
-
for (let r = 0; r < t.length; ++r) {
|
|
365
|
-
n += t[r];
|
|
366
|
-
let a = e[r];
|
|
367
|
-
Array.isArray(a) ? n += a.filter((w) => w !== void 0).map(i).join(", ") : a && (n += i(a));
|
|
368
|
-
}
|
|
369
|
-
return n;
|
|
370
|
-
}
|
|
371
|
-
var bi = (() => {
|
|
372
|
-
let t = (i) => {
|
|
373
|
-
if (i.origin === "argument") throw new q(g`d.ref(${i}) is illegal, cannot take a reference of an argument. Copy the value locally first, and take a reference of the copy.`);
|
|
374
|
-
if (i.dataType.type === "ptr") return o(i.value, Ue(i.dataType), i.origin);
|
|
375
|
-
let n = Re(i.origin, i.dataType);
|
|
376
|
-
return o(new it(i, n), n ?? W, "runtime");
|
|
377
|
-
}, e = (i) => new Ht(i), s = (i) => Yt() ? t(i) : e(i);
|
|
378
|
-
return N(s, "ref"), s.toString = () => "ref", Object.defineProperty(s, u, { value: { jsImpl: e, gpuImpl: t, strictSignature: void 0, argConversionHint: "keep" } }), s;
|
|
379
|
-
})();
|
|
380
|
-
function Be(t) {
|
|
381
|
-
return t instanceof Ht;
|
|
382
|
-
}
|
|
383
|
-
var Ht = class {
|
|
384
|
-
[u];
|
|
385
|
-
type;
|
|
386
|
-
#t;
|
|
387
|
-
constructor(t) {
|
|
388
|
-
this[u] = !0, this.type = "ref", this.#t = t;
|
|
389
|
-
}
|
|
390
|
-
get $() {
|
|
391
|
-
return this.#t;
|
|
392
|
-
}
|
|
393
|
-
set $(t) {
|
|
394
|
-
if (t && typeof t == "object") for (let e of Object.keys(t)) this.#t[e] = t[e];
|
|
395
|
-
else this.#t = t;
|
|
396
|
-
}
|
|
397
|
-
}, it = class {
|
|
398
|
-
[u];
|
|
399
|
-
snippet;
|
|
400
|
-
#t;
|
|
401
|
-
constructor(t, e) {
|
|
402
|
-
this[u] = !0, this.snippet = t, this.#t = e;
|
|
403
|
-
}
|
|
404
|
-
get [It]() {
|
|
405
|
-
if (!this.#t) throw new Error(g`Cannot take a reference of ${this.snippet}`);
|
|
406
|
-
return o(this, this.#t, this.snippet.origin);
|
|
407
|
-
}
|
|
408
|
-
[R](t) {
|
|
409
|
-
if (!this.#t) throw new Error(g`Cannot take a reference of ${this.snippet}`);
|
|
410
|
-
return o(g`(&${this.snippet})`, this.#t, this.snippet.origin);
|
|
411
|
-
}
|
|
412
|
-
};
|
|
413
|
-
function We(t) {
|
|
414
|
-
if (!de(t.dataType)) return t;
|
|
415
|
-
let e = t.dataType.inner, s = Oe(e) ? "runtime" : t.origin;
|
|
416
|
-
return t.value instanceof it ? o(g`${t.value.snippet}`, e, s) : o(g`(*${t})`, e, s);
|
|
417
|
-
}
|
|
418
|
-
function De(t, e) {
|
|
419
|
-
throw new Error(`Failed to handle ${t} at ${e}`);
|
|
420
|
-
}
|
|
421
|
-
var nt = { rank: Number.POSITIVE_INFINITY, action: "none" };
|
|
422
|
-
function U(t, e) {
|
|
423
|
-
let s = $(t), i = $(e);
|
|
424
|
-
if (s.type === i.type) return { rank: 0, action: "none" };
|
|
425
|
-
if (s.type === "abstractFloat") {
|
|
426
|
-
if (i.type === "f32") return { rank: 1, action: "none" };
|
|
427
|
-
if (i.type === "f16") return { rank: 2, action: "none" };
|
|
428
|
-
}
|
|
429
|
-
if (s.type === "abstractInt") {
|
|
430
|
-
if (i.type === "i32") return { rank: 3, action: "none" };
|
|
431
|
-
if (i.type === "u32") return { rank: 4, action: "none" };
|
|
432
|
-
if (i.type === "abstractFloat") return { rank: 5, action: "none" };
|
|
433
|
-
if (i.type === "f32") return { rank: 6, action: "none" };
|
|
434
|
-
if (i.type === "f16") return { rank: 7, action: "none" };
|
|
435
|
-
}
|
|
436
|
-
return B(s) && B(i) ? U(s.primitive, i.primitive) : dt(s) && dt(i) ? { rank: 0, action: "none" } : nt;
|
|
437
|
-
}
|
|
438
|
-
function Ke(t, e) {
|
|
439
|
-
let s = $(t), i = $(e);
|
|
440
|
-
if (s.type === "ptr" && s.implicit && U(s.inner, i).rank < Number.POSITIVE_INFINITY) return { rank: 0, action: "deref" };
|
|
441
|
-
if (i.type === "ptr" && U(s, i.inner).rank < Number.POSITIVE_INFINITY) return { rank: 1, action: "ref" };
|
|
442
|
-
let n = { f32: 0, f16: 1, i32: 2, u32: 3, bool: 4 };
|
|
443
|
-
if (s.type in n && i.type in n) {
|
|
444
|
-
let r = s.type, a = i.type;
|
|
445
|
-
if (r !== a) {
|
|
446
|
-
let w = n[r];
|
|
447
|
-
return { rank: n[a] < w ? 10 : 20, action: "cast", targetType: i };
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
if (s.type === "abstractFloat") {
|
|
451
|
-
if (i.type === "u32") return { rank: 2, action: "cast", targetType: i };
|
|
452
|
-
if (i.type === "i32") return { rank: 1, action: "cast", targetType: i };
|
|
453
|
-
}
|
|
454
|
-
return nt;
|
|
455
|
-
}
|
|
456
|
-
function Je(t, e, s) {
|
|
457
|
-
let i = U(t, e);
|
|
458
|
-
return i.rank < Number.POSITIVE_INFINITY ? i : s ? Ke(t, e) : nt;
|
|
459
|
-
}
|
|
460
|
-
function bt(t, e, s) {
|
|
461
|
-
let i;
|
|
462
|
-
for (let r of e) {
|
|
463
|
-
let a = [], w = 0;
|
|
464
|
-
for (let x of t) {
|
|
465
|
-
let p = Je(x, r, s);
|
|
466
|
-
if (w += p.rank, p.rank === Number.POSITIVE_INFINITY) break;
|
|
467
|
-
a.push(p);
|
|
468
|
-
}
|
|
469
|
-
w < (i?.sum ?? Number.POSITIVE_INFINITY) && (i = { type: r, details: a, sum: w });
|
|
470
|
-
}
|
|
471
|
-
if (!i) return;
|
|
472
|
-
let n = i.details.map((r, a) => ({ sourceIndex: a, action: r.action, ...r.action === "cast" && { targetType: r.targetType } }));
|
|
473
|
-
return { targetType: i.type, actions: n, hasImplicitConversions: n.some((r) => r.action === "cast") };
|
|
474
|
-
}
|
|
475
|
-
function Bt(t, e) {
|
|
476
|
-
if (t.length === 0) return;
|
|
477
|
-
let s = [...new Set((e || t).map($))], i = bt(t, s, !1);
|
|
478
|
-
if (i) return i;
|
|
479
|
-
let n = bt(t, s, !0);
|
|
480
|
-
if (n) return n;
|
|
481
|
-
}
|
|
482
|
-
function Ze(t, e, s) {
|
|
483
|
-
if (e.action === "none") return o(t.value, s, t.origin);
|
|
484
|
-
switch (e.action) {
|
|
485
|
-
case "ref":
|
|
486
|
-
return o(new it(t, s), s, t.origin);
|
|
487
|
-
case "deref":
|
|
488
|
-
return We(t);
|
|
489
|
-
case "cast":
|
|
490
|
-
return s(t);
|
|
491
|
-
default:
|
|
492
|
-
De(e.action, "applyActionToSnippet");
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
function vi(t, e) {
|
|
496
|
-
if (t.some((i) => i.type === "unknown")) return;
|
|
497
|
-
let s = Bt(t, e);
|
|
498
|
-
if (s) return t.map(() => s.targetType);
|
|
499
|
-
}
|
|
500
|
-
function Wt(t, e, s = !0) {
|
|
501
|
-
let i = t.map((r) => r.dataType);
|
|
502
|
-
if (i.some((r) => r.type === "unknown")) return;
|
|
503
|
-
P && Array.isArray(e) && e.length === 0 && console.warn("convertToCommonType was called with an empty restrictTo array, which prevents any conversions from being made. If you intend to allow all conversions, pass undefined instead. If this was intended call the function conditionally since the result will always be undefined.");
|
|
504
|
-
let n = Bt(i, e);
|
|
505
|
-
if (n) return (Q || P) && s && n.hasImplicitConversions && console.warn(`Implicit conversions from [
|
|
506
|
-
${t.map((r) => ` ${r.value}: ${r.dataType.type}`).join(`,
|
|
507
|
-
`)}
|
|
508
|
-
] to ${n.targetType.type} are supported, but not recommended.
|
|
509
|
-
Consider using explicit conversions instead.`), t.map((r, a) => {
|
|
510
|
-
let w = n.actions[a];
|
|
511
|
-
return Pt(w, "Action should not be undefined"), Ze(r, w, n.targetType);
|
|
512
|
-
});
|
|
513
|
-
}
|
|
514
|
-
function Xe(t, e, s = !0) {
|
|
515
|
-
if (e === t.dataType) return o(t.value, e, t.origin);
|
|
516
|
-
if (t.dataType.type === "unknown") return o(g`${o(t.value, e, t.origin)}`, e, t.origin);
|
|
517
|
-
let i = Wt([t], [e], s);
|
|
518
|
-
if (!i) throw new q(`Cannot convert value of type '${String(t.dataType)}' to type '${e.type}'`);
|
|
519
|
-
return i[0];
|
|
520
|
-
}
|
|
521
|
-
function Ti(t, e) {
|
|
522
|
-
return Object.keys(t.propTypes).map((s) => {
|
|
523
|
-
let i = e[s];
|
|
524
|
-
if (!i) throw new Error(`Missing property ${s}`);
|
|
525
|
-
let n = t.propTypes[s];
|
|
526
|
-
return Wt([i], [n])?.[0] ?? i;
|
|
527
|
-
});
|
|
528
|
-
}
|
|
529
|
-
var vt = class extends Error {
|
|
530
|
-
constructor(t) {
|
|
531
|
-
super(t), this.name = this.constructor.name;
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
function k(t) {
|
|
535
|
-
let e = (...i) => {
|
|
536
|
-
let n = st(), { argTypes: r, returnType: a } = typeof t.signature == "function" ? t.signature(...i.map((x) => x.dataType.type === "ptr" && x.dataType.implicit ? x.dataType.inner : x.dataType)) : t.signature, w = i.map((x, p) => {
|
|
537
|
-
let O = r[p];
|
|
538
|
-
if (!O) throw new Error("Function called with invalid arguments");
|
|
539
|
-
return Xe(x, O, !t.ignoreImplicitCastWarning);
|
|
540
|
-
});
|
|
541
|
-
if (!t.noComptime && w.every((x) => J(x)) && typeof t.normalImpl == "function") {
|
|
542
|
-
n.pushMode(new et());
|
|
543
|
-
try {
|
|
544
|
-
return o(t.normalImpl(...w.map((x) => x.value)), a, "constant");
|
|
545
|
-
} catch (x) {
|
|
546
|
-
if (!(x instanceof vt)) throw x;
|
|
547
|
-
} finally {
|
|
548
|
-
n.popMode("normal");
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
return o(t.codegenImpl(...w), a, "runtime");
|
|
552
|
-
}, s = ((...i) => {
|
|
553
|
-
if (Yt()) return e(...i);
|
|
554
|
-
if (typeof t.normalImpl == "string") throw new vt(t.normalImpl);
|
|
555
|
-
return t.normalImpl(...i);
|
|
556
|
-
});
|
|
557
|
-
return N(s, t.name), s.toString = () => t.name, Object.defineProperty(s, u, { value: { jsImpl: t.normalImpl, gpuImpl: e, get strictSignature() {
|
|
558
|
-
return typeof t.signature != "function" ? t.signature : void 0;
|
|
559
|
-
}, argConversionHint: "keep" } }), s;
|
|
560
|
-
}
|
|
561
|
-
var Qe = { [u]: !0, type: "abstractInt", toString() {
|
|
562
|
-
return "abstractInt";
|
|
563
|
-
} }, Tt = { [u]: !0, type: "abstractFloat", toString() {
|
|
564
|
-
return "abstractFloat";
|
|
565
|
-
} }, qe = k({ name: "bool", signature: (t) => ({ argTypes: t ? [t] : [], returnType: d }), normalImpl(t) {
|
|
566
|
-
return t === void 0 ? !1 : typeof t == "boolean" ? t : !!t;
|
|
567
|
-
}, codegenImpl: (t) => t.dataType.type === "bool" ? g`${t}` : g`bool(${t})` }), d = Object.assign(qe, { type: "bool" }), ts = k({ name: "u32", signature: (t) => ({ argTypes: t ? [t] : [], returnType: y }), normalImpl(t) {
|
|
568
|
-
return t === void 0 ? 0 : typeof t == "boolean" ? t ? 1 : 0 : (t & 4294967295) >>> 0;
|
|
569
|
-
}, codegenImpl: (t) => t.dataType.type === "u32" ? g`${t}` : g`u32(${t})` }), y = Object.assign(ts, { type: "u32" }), es = k({ name: "i32", signature: (t) => ({ argTypes: t ? [t] : [], returnType: f }), normalImpl(t) {
|
|
570
|
-
return t === void 0 ? 0 : typeof t == "boolean" ? t ? 1 : 0 : t | 0;
|
|
571
|
-
}, codegenImpl: (t) => t.dataType.type === "i32" ? g`${t}` : g`i32(${t})` }), Ei = { [u]: !0, type: "u16" }, f = Object.assign(es, { type: "i32" }), ss = k({ name: "f32", signature: (t) => ({ argTypes: t ? [t] : [], returnType: _ }), normalImpl(t) {
|
|
572
|
-
return t === void 0 ? 0 : typeof t == "boolean" ? t ? 1 : 0 : Math.fround(t);
|
|
573
|
-
}, codegenImpl: (t) => t.dataType.type === "f32" ? g`${t}` : g`f32(${t})` }), _ = Object.assign(ss, { type: "f32" }), Dt = new ArrayBuffer(4), is = new Float32Array(Dt), ns = new Uint32Array(Dt);
|
|
574
|
-
function rs(t) {
|
|
575
|
-
is[0] = t;
|
|
576
|
-
let e = ns[0], s = e >>> 31 & 1, i = e >>> 23 & 255, n = e & 8388607;
|
|
577
|
-
return i === 255 ? s << 15 | 31744 | (n ? 512 : 0) : (i = i - 127 + 15, i <= 0 ? i < -10 ? s << 15 : (n = (n | 8388608) >> 1 - i, n = n + 4096 >> 13, s << 15 | n) : i >= 31 || (n = n + 4096, n & 8388608 && (n = 0, ++i, i >= 31)) ? s << 15 | 31744 : s << 15 | i << 10 | n >> 13);
|
|
578
|
-
}
|
|
579
|
-
function hs(t) {
|
|
580
|
-
let e = t & 32768 ? -1 : 1, s = t >> 10 & 31, i = t & 1023;
|
|
581
|
-
return s === 0 ? i ? e * i * 2 ** -24 : e * 0 : s === 31 ? i ? Number.NaN : e === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : e * (1 + i / 1024) * 2 ** (s - 15);
|
|
582
|
-
}
|
|
583
|
-
function us(t) {
|
|
584
|
-
return hs(rs(t));
|
|
585
|
-
}
|
|
586
|
-
var cs = k({ name: "f16", signature: (t) => ({ argTypes: t ? [t] : [], returnType: I }), normalImpl(t) {
|
|
587
|
-
return t === void 0 ? 0 : typeof t == "boolean" ? t ? 1 : 0 : us(t);
|
|
588
|
-
}, codegenImpl: (t) => t.dataType.type === "f16" ? g`${t}` : g`f16(${t})` }), I = Object.assign(cs, { type: "f16" }), rt = class extends Array {
|
|
589
|
-
castElement() {
|
|
590
|
-
return this[u].elementSchema[u].jsImpl;
|
|
591
|
-
}
|
|
592
|
-
[R]() {
|
|
593
|
-
let t = this[u].elementSchema;
|
|
594
|
-
return this.every((e) => !e) ? o(`${this.kind}()`, t, "constant") : this.every((e) => this[0] === e) ? o(`${this.kind}(${this[0]})`, t, "runtime") : o(`${this.kind}(${this.join(", ")})`, t, "runtime");
|
|
595
|
-
}
|
|
596
|
-
toString() {
|
|
597
|
-
return this[R]().value;
|
|
598
|
-
}
|
|
599
|
-
get xx() {
|
|
600
|
-
return new this._Vec2(this[0], this[0]);
|
|
601
|
-
}
|
|
602
|
-
get xy() {
|
|
603
|
-
return new this._Vec2(this[0], this[1]);
|
|
604
|
-
}
|
|
605
|
-
get xz() {
|
|
606
|
-
return new this._Vec2(this[0], this[2]);
|
|
607
|
-
}
|
|
608
|
-
get xw() {
|
|
609
|
-
return new this._Vec2(this[0], this[3]);
|
|
610
|
-
}
|
|
611
|
-
get yx() {
|
|
612
|
-
return new this._Vec2(this[1], this[0]);
|
|
613
|
-
}
|
|
614
|
-
get yy() {
|
|
615
|
-
return new this._Vec2(this[1], this[1]);
|
|
616
|
-
}
|
|
617
|
-
get yz() {
|
|
618
|
-
return new this._Vec2(this[1], this[2]);
|
|
619
|
-
}
|
|
620
|
-
get yw() {
|
|
621
|
-
return new this._Vec2(this[1], this[3]);
|
|
622
|
-
}
|
|
623
|
-
get zx() {
|
|
624
|
-
return new this._Vec2(this[2], this[0]);
|
|
625
|
-
}
|
|
626
|
-
get zy() {
|
|
627
|
-
return new this._Vec2(this[2], this[1]);
|
|
628
|
-
}
|
|
629
|
-
get zz() {
|
|
630
|
-
return new this._Vec2(this[2], this[2]);
|
|
631
|
-
}
|
|
632
|
-
get zw() {
|
|
633
|
-
return new this._Vec2(this[2], this[3]);
|
|
634
|
-
}
|
|
635
|
-
get wx() {
|
|
636
|
-
return new this._Vec2(this[3], this[0]);
|
|
637
|
-
}
|
|
638
|
-
get wy() {
|
|
639
|
-
return new this._Vec2(this[3], this[1]);
|
|
640
|
-
}
|
|
641
|
-
get wz() {
|
|
642
|
-
return new this._Vec2(this[3], this[2]);
|
|
643
|
-
}
|
|
644
|
-
get ww() {
|
|
645
|
-
return new this._Vec2(this[3], this[3]);
|
|
646
|
-
}
|
|
647
|
-
get xxx() {
|
|
648
|
-
return new this._Vec3(this[0], this[0], this[0]);
|
|
649
|
-
}
|
|
650
|
-
get xxy() {
|
|
651
|
-
return new this._Vec3(this[0], this[0], this[1]);
|
|
652
|
-
}
|
|
653
|
-
get xxz() {
|
|
654
|
-
return new this._Vec3(this[0], this[0], this[2]);
|
|
655
|
-
}
|
|
656
|
-
get xxw() {
|
|
657
|
-
return new this._Vec3(this[0], this[0], this[3]);
|
|
658
|
-
}
|
|
659
|
-
get xyx() {
|
|
660
|
-
return new this._Vec3(this[0], this[1], this[0]);
|
|
661
|
-
}
|
|
662
|
-
get xyy() {
|
|
663
|
-
return new this._Vec3(this[0], this[1], this[1]);
|
|
664
|
-
}
|
|
665
|
-
get xyz() {
|
|
666
|
-
return new this._Vec3(this[0], this[1], this[2]);
|
|
667
|
-
}
|
|
668
|
-
get xyw() {
|
|
669
|
-
return new this._Vec3(this[0], this[1], this[3]);
|
|
670
|
-
}
|
|
671
|
-
get xzx() {
|
|
672
|
-
return new this._Vec3(this[0], this[2], this[0]);
|
|
673
|
-
}
|
|
674
|
-
get xzy() {
|
|
675
|
-
return new this._Vec3(this[0], this[2], this[1]);
|
|
676
|
-
}
|
|
677
|
-
get xzz() {
|
|
678
|
-
return new this._Vec3(this[0], this[2], this[2]);
|
|
679
|
-
}
|
|
680
|
-
get xzw() {
|
|
681
|
-
return new this._Vec3(this[0], this[2], this[3]);
|
|
682
|
-
}
|
|
683
|
-
get xwx() {
|
|
684
|
-
return new this._Vec3(this[0], this[3], this[0]);
|
|
685
|
-
}
|
|
686
|
-
get xwy() {
|
|
687
|
-
return new this._Vec3(this[0], this[3], this[1]);
|
|
688
|
-
}
|
|
689
|
-
get xwz() {
|
|
690
|
-
return new this._Vec3(this[0], this[3], this[2]);
|
|
691
|
-
}
|
|
692
|
-
get xww() {
|
|
693
|
-
return new this._Vec3(this[0], this[3], this[3]);
|
|
694
|
-
}
|
|
695
|
-
get yxx() {
|
|
696
|
-
return new this._Vec3(this[1], this[0], this[0]);
|
|
697
|
-
}
|
|
698
|
-
get yxy() {
|
|
699
|
-
return new this._Vec3(this[1], this[0], this[1]);
|
|
700
|
-
}
|
|
701
|
-
get yxz() {
|
|
702
|
-
return new this._Vec3(this[1], this[0], this[2]);
|
|
703
|
-
}
|
|
704
|
-
get yxw() {
|
|
705
|
-
return new this._Vec3(this[1], this[0], this[3]);
|
|
706
|
-
}
|
|
707
|
-
get yyx() {
|
|
708
|
-
return new this._Vec3(this[1], this[1], this[0]);
|
|
709
|
-
}
|
|
710
|
-
get yyy() {
|
|
711
|
-
return new this._Vec3(this[1], this[1], this[1]);
|
|
712
|
-
}
|
|
713
|
-
get yyz() {
|
|
714
|
-
return new this._Vec3(this[1], this[1], this[2]);
|
|
715
|
-
}
|
|
716
|
-
get yyw() {
|
|
717
|
-
return new this._Vec3(this[1], this[1], this[3]);
|
|
718
|
-
}
|
|
719
|
-
get yzx() {
|
|
720
|
-
return new this._Vec3(this[1], this[2], this[0]);
|
|
721
|
-
}
|
|
722
|
-
get yzy() {
|
|
723
|
-
return new this._Vec3(this[1], this[2], this[1]);
|
|
724
|
-
}
|
|
725
|
-
get yzz() {
|
|
726
|
-
return new this._Vec3(this[1], this[2], this[2]);
|
|
727
|
-
}
|
|
728
|
-
get yzw() {
|
|
729
|
-
return new this._Vec3(this[1], this[2], this[3]);
|
|
730
|
-
}
|
|
731
|
-
get ywx() {
|
|
732
|
-
return new this._Vec3(this[1], this[3], this[0]);
|
|
733
|
-
}
|
|
734
|
-
get ywy() {
|
|
735
|
-
return new this._Vec3(this[1], this[3], this[1]);
|
|
736
|
-
}
|
|
737
|
-
get ywz() {
|
|
738
|
-
return new this._Vec3(this[1], this[3], this[2]);
|
|
739
|
-
}
|
|
740
|
-
get yww() {
|
|
741
|
-
return new this._Vec3(this[1], this[3], this[3]);
|
|
742
|
-
}
|
|
743
|
-
get zxx() {
|
|
744
|
-
return new this._Vec3(this[2], this[0], this[0]);
|
|
745
|
-
}
|
|
746
|
-
get zxy() {
|
|
747
|
-
return new this._Vec3(this[2], this[0], this[1]);
|
|
748
|
-
}
|
|
749
|
-
get zxz() {
|
|
750
|
-
return new this._Vec3(this[2], this[0], this[2]);
|
|
751
|
-
}
|
|
752
|
-
get zxw() {
|
|
753
|
-
return new this._Vec3(this[2], this[0], this[3]);
|
|
754
|
-
}
|
|
755
|
-
get zyx() {
|
|
756
|
-
return new this._Vec3(this[2], this[1], this[0]);
|
|
757
|
-
}
|
|
758
|
-
get zyy() {
|
|
759
|
-
return new this._Vec3(this[2], this[1], this[1]);
|
|
760
|
-
}
|
|
761
|
-
get zyz() {
|
|
762
|
-
return new this._Vec3(this[2], this[1], this[2]);
|
|
763
|
-
}
|
|
764
|
-
get zyw() {
|
|
765
|
-
return new this._Vec3(this[2], this[1], this[3]);
|
|
766
|
-
}
|
|
767
|
-
get zzx() {
|
|
768
|
-
return new this._Vec3(this[2], this[2], this[0]);
|
|
769
|
-
}
|
|
770
|
-
get zzy() {
|
|
771
|
-
return new this._Vec3(this[2], this[2], this[1]);
|
|
772
|
-
}
|
|
773
|
-
get zzz() {
|
|
774
|
-
return new this._Vec3(this[2], this[2], this[2]);
|
|
775
|
-
}
|
|
776
|
-
get zzw() {
|
|
777
|
-
return new this._Vec3(this[2], this[2], this[3]);
|
|
778
|
-
}
|
|
779
|
-
get zwx() {
|
|
780
|
-
return new this._Vec3(this[2], this[3], this[0]);
|
|
781
|
-
}
|
|
782
|
-
get zwy() {
|
|
783
|
-
return new this._Vec3(this[2], this[3], this[1]);
|
|
784
|
-
}
|
|
785
|
-
get zwz() {
|
|
786
|
-
return new this._Vec3(this[2], this[3], this[2]);
|
|
787
|
-
}
|
|
788
|
-
get zww() {
|
|
789
|
-
return new this._Vec3(this[2], this[3], this[3]);
|
|
790
|
-
}
|
|
791
|
-
get wxx() {
|
|
792
|
-
return new this._Vec3(this[3], this[0], this[0]);
|
|
793
|
-
}
|
|
794
|
-
get wxy() {
|
|
795
|
-
return new this._Vec3(this[3], this[0], this[1]);
|
|
796
|
-
}
|
|
797
|
-
get wxz() {
|
|
798
|
-
return new this._Vec3(this[3], this[0], this[2]);
|
|
799
|
-
}
|
|
800
|
-
get wxw() {
|
|
801
|
-
return new this._Vec3(this[3], this[0], this[3]);
|
|
802
|
-
}
|
|
803
|
-
get wyx() {
|
|
804
|
-
return new this._Vec3(this[3], this[1], this[0]);
|
|
805
|
-
}
|
|
806
|
-
get wyy() {
|
|
807
|
-
return new this._Vec3(this[3], this[1], this[1]);
|
|
808
|
-
}
|
|
809
|
-
get wyz() {
|
|
810
|
-
return new this._Vec3(this[3], this[1], this[2]);
|
|
811
|
-
}
|
|
812
|
-
get wyw() {
|
|
813
|
-
return new this._Vec3(this[3], this[1], this[3]);
|
|
814
|
-
}
|
|
815
|
-
get wzx() {
|
|
816
|
-
return new this._Vec3(this[3], this[2], this[0]);
|
|
817
|
-
}
|
|
818
|
-
get wzy() {
|
|
819
|
-
return new this._Vec3(this[3], this[2], this[1]);
|
|
820
|
-
}
|
|
821
|
-
get wzz() {
|
|
822
|
-
return new this._Vec3(this[3], this[2], this[2]);
|
|
823
|
-
}
|
|
824
|
-
get wzw() {
|
|
825
|
-
return new this._Vec3(this[3], this[2], this[3]);
|
|
826
|
-
}
|
|
827
|
-
get wwx() {
|
|
828
|
-
return new this._Vec3(this[3], this[3], this[0]);
|
|
829
|
-
}
|
|
830
|
-
get wwy() {
|
|
831
|
-
return new this._Vec3(this[3], this[3], this[1]);
|
|
832
|
-
}
|
|
833
|
-
get wwz() {
|
|
834
|
-
return new this._Vec3(this[3], this[3], this[2]);
|
|
835
|
-
}
|
|
836
|
-
get www() {
|
|
837
|
-
return new this._Vec3(this[3], this[3], this[3]);
|
|
838
|
-
}
|
|
839
|
-
get xxxx() {
|
|
840
|
-
return new this._Vec4(this[0], this[0], this[0], this[0]);
|
|
841
|
-
}
|
|
842
|
-
get xxxy() {
|
|
843
|
-
return new this._Vec4(this[0], this[0], this[0], this[1]);
|
|
844
|
-
}
|
|
845
|
-
get xxxz() {
|
|
846
|
-
return new this._Vec4(this[0], this[0], this[0], this[2]);
|
|
847
|
-
}
|
|
848
|
-
get xxxw() {
|
|
849
|
-
return new this._Vec4(this[0], this[0], this[0], this[3]);
|
|
850
|
-
}
|
|
851
|
-
get xxyx() {
|
|
852
|
-
return new this._Vec4(this[0], this[0], this[1], this[0]);
|
|
853
|
-
}
|
|
854
|
-
get xxyy() {
|
|
855
|
-
return new this._Vec4(this[0], this[0], this[1], this[1]);
|
|
856
|
-
}
|
|
857
|
-
get xxyz() {
|
|
858
|
-
return new this._Vec4(this[0], this[0], this[1], this[2]);
|
|
859
|
-
}
|
|
860
|
-
get xxyw() {
|
|
861
|
-
return new this._Vec4(this[0], this[0], this[1], this[3]);
|
|
862
|
-
}
|
|
863
|
-
get xxzx() {
|
|
864
|
-
return new this._Vec4(this[0], this[0], this[2], this[0]);
|
|
865
|
-
}
|
|
866
|
-
get xxzy() {
|
|
867
|
-
return new this._Vec4(this[0], this[0], this[2], this[1]);
|
|
868
|
-
}
|
|
869
|
-
get xxzz() {
|
|
870
|
-
return new this._Vec4(this[0], this[0], this[2], this[2]);
|
|
871
|
-
}
|
|
872
|
-
get xxzw() {
|
|
873
|
-
return new this._Vec4(this[0], this[0], this[2], this[3]);
|
|
874
|
-
}
|
|
875
|
-
get xxwx() {
|
|
876
|
-
return new this._Vec4(this[0], this[0], this[3], this[0]);
|
|
877
|
-
}
|
|
878
|
-
get xxwy() {
|
|
879
|
-
return new this._Vec4(this[0], this[0], this[3], this[1]);
|
|
880
|
-
}
|
|
881
|
-
get xxwz() {
|
|
882
|
-
return new this._Vec4(this[0], this[0], this[3], this[2]);
|
|
883
|
-
}
|
|
884
|
-
get xxww() {
|
|
885
|
-
return new this._Vec4(this[0], this[0], this[3], this[3]);
|
|
886
|
-
}
|
|
887
|
-
get xyxx() {
|
|
888
|
-
return new this._Vec4(this[0], this[1], this[0], this[0]);
|
|
889
|
-
}
|
|
890
|
-
get xyxy() {
|
|
891
|
-
return new this._Vec4(this[0], this[1], this[0], this[1]);
|
|
892
|
-
}
|
|
893
|
-
get xyxz() {
|
|
894
|
-
return new this._Vec4(this[0], this[1], this[0], this[2]);
|
|
895
|
-
}
|
|
896
|
-
get xyxw() {
|
|
897
|
-
return new this._Vec4(this[0], this[1], this[0], this[3]);
|
|
898
|
-
}
|
|
899
|
-
get xyyx() {
|
|
900
|
-
return new this._Vec4(this[0], this[1], this[1], this[0]);
|
|
901
|
-
}
|
|
902
|
-
get xyyy() {
|
|
903
|
-
return new this._Vec4(this[0], this[1], this[1], this[1]);
|
|
904
|
-
}
|
|
905
|
-
get xyyz() {
|
|
906
|
-
return new this._Vec4(this[0], this[1], this[1], this[2]);
|
|
907
|
-
}
|
|
908
|
-
get xyyw() {
|
|
909
|
-
return new this._Vec4(this[0], this[1], this[1], this[3]);
|
|
910
|
-
}
|
|
911
|
-
get xyzx() {
|
|
912
|
-
return new this._Vec4(this[0], this[1], this[2], this[0]);
|
|
913
|
-
}
|
|
914
|
-
get xyzy() {
|
|
915
|
-
return new this._Vec4(this[0], this[1], this[2], this[1]);
|
|
916
|
-
}
|
|
917
|
-
get xyzz() {
|
|
918
|
-
return new this._Vec4(this[0], this[1], this[2], this[2]);
|
|
919
|
-
}
|
|
920
|
-
get xyzw() {
|
|
921
|
-
return new this._Vec4(this[0], this[1], this[2], this[3]);
|
|
922
|
-
}
|
|
923
|
-
get xywx() {
|
|
924
|
-
return new this._Vec4(this[0], this[1], this[3], this[0]);
|
|
925
|
-
}
|
|
926
|
-
get xywy() {
|
|
927
|
-
return new this._Vec4(this[0], this[1], this[3], this[1]);
|
|
928
|
-
}
|
|
929
|
-
get xywz() {
|
|
930
|
-
return new this._Vec4(this[0], this[1], this[3], this[2]);
|
|
931
|
-
}
|
|
932
|
-
get xyww() {
|
|
933
|
-
return new this._Vec4(this[0], this[1], this[3], this[3]);
|
|
934
|
-
}
|
|
935
|
-
get xzxx() {
|
|
936
|
-
return new this._Vec4(this[0], this[2], this[0], this[0]);
|
|
937
|
-
}
|
|
938
|
-
get xzxy() {
|
|
939
|
-
return new this._Vec4(this[0], this[2], this[0], this[1]);
|
|
940
|
-
}
|
|
941
|
-
get xzxz() {
|
|
942
|
-
return new this._Vec4(this[0], this[2], this[0], this[2]);
|
|
943
|
-
}
|
|
944
|
-
get xzxw() {
|
|
945
|
-
return new this._Vec4(this[0], this[2], this[0], this[3]);
|
|
946
|
-
}
|
|
947
|
-
get xzyx() {
|
|
948
|
-
return new this._Vec4(this[0], this[2], this[1], this[0]);
|
|
949
|
-
}
|
|
950
|
-
get xzyy() {
|
|
951
|
-
return new this._Vec4(this[0], this[2], this[1], this[1]);
|
|
952
|
-
}
|
|
953
|
-
get xzyz() {
|
|
954
|
-
return new this._Vec4(this[0], this[2], this[1], this[2]);
|
|
955
|
-
}
|
|
956
|
-
get xzyw() {
|
|
957
|
-
return new this._Vec4(this[0], this[2], this[1], this[3]);
|
|
958
|
-
}
|
|
959
|
-
get xzzx() {
|
|
960
|
-
return new this._Vec4(this[0], this[2], this[2], this[0]);
|
|
961
|
-
}
|
|
962
|
-
get xzzy() {
|
|
963
|
-
return new this._Vec4(this[0], this[2], this[2], this[1]);
|
|
964
|
-
}
|
|
965
|
-
get xzzz() {
|
|
966
|
-
return new this._Vec4(this[0], this[2], this[2], this[2]);
|
|
967
|
-
}
|
|
968
|
-
get xzzw() {
|
|
969
|
-
return new this._Vec4(this[0], this[2], this[2], this[3]);
|
|
970
|
-
}
|
|
971
|
-
get xzwx() {
|
|
972
|
-
return new this._Vec4(this[0], this[2], this[3], this[0]);
|
|
973
|
-
}
|
|
974
|
-
get xzwy() {
|
|
975
|
-
return new this._Vec4(this[0], this[2], this[3], this[1]);
|
|
976
|
-
}
|
|
977
|
-
get xzwz() {
|
|
978
|
-
return new this._Vec4(this[0], this[2], this[3], this[2]);
|
|
979
|
-
}
|
|
980
|
-
get xzww() {
|
|
981
|
-
return new this._Vec4(this[0], this[2], this[3], this[3]);
|
|
982
|
-
}
|
|
983
|
-
get xwxx() {
|
|
984
|
-
return new this._Vec4(this[0], this[3], this[0], this[0]);
|
|
985
|
-
}
|
|
986
|
-
get xwxy() {
|
|
987
|
-
return new this._Vec4(this[0], this[3], this[0], this[1]);
|
|
988
|
-
}
|
|
989
|
-
get xwxz() {
|
|
990
|
-
return new this._Vec4(this[0], this[3], this[0], this[2]);
|
|
991
|
-
}
|
|
992
|
-
get xwxw() {
|
|
993
|
-
return new this._Vec4(this[0], this[3], this[0], this[3]);
|
|
994
|
-
}
|
|
995
|
-
get xwyx() {
|
|
996
|
-
return new this._Vec4(this[0], this[3], this[1], this[0]);
|
|
997
|
-
}
|
|
998
|
-
get xwyy() {
|
|
999
|
-
return new this._Vec4(this[0], this[3], this[1], this[1]);
|
|
1000
|
-
}
|
|
1001
|
-
get xwyz() {
|
|
1002
|
-
return new this._Vec4(this[0], this[3], this[1], this[2]);
|
|
1003
|
-
}
|
|
1004
|
-
get xwyw() {
|
|
1005
|
-
return new this._Vec4(this[0], this[3], this[1], this[3]);
|
|
1006
|
-
}
|
|
1007
|
-
get xwzx() {
|
|
1008
|
-
return new this._Vec4(this[0], this[3], this[2], this[0]);
|
|
1009
|
-
}
|
|
1010
|
-
get xwzy() {
|
|
1011
|
-
return new this._Vec4(this[0], this[3], this[2], this[1]);
|
|
1012
|
-
}
|
|
1013
|
-
get xwzz() {
|
|
1014
|
-
return new this._Vec4(this[0], this[3], this[2], this[2]);
|
|
1015
|
-
}
|
|
1016
|
-
get xwzw() {
|
|
1017
|
-
return new this._Vec4(this[0], this[3], this[2], this[3]);
|
|
1018
|
-
}
|
|
1019
|
-
get xwwx() {
|
|
1020
|
-
return new this._Vec4(this[0], this[3], this[3], this[0]);
|
|
1021
|
-
}
|
|
1022
|
-
get xwwy() {
|
|
1023
|
-
return new this._Vec4(this[0], this[3], this[3], this[1]);
|
|
1024
|
-
}
|
|
1025
|
-
get xwwz() {
|
|
1026
|
-
return new this._Vec4(this[0], this[3], this[3], this[2]);
|
|
1027
|
-
}
|
|
1028
|
-
get xwww() {
|
|
1029
|
-
return new this._Vec4(this[0], this[3], this[3], this[3]);
|
|
1030
|
-
}
|
|
1031
|
-
get yxxx() {
|
|
1032
|
-
return new this._Vec4(this[1], this[0], this[0], this[0]);
|
|
1033
|
-
}
|
|
1034
|
-
get yxxy() {
|
|
1035
|
-
return new this._Vec4(this[1], this[0], this[0], this[1]);
|
|
1036
|
-
}
|
|
1037
|
-
get yxxz() {
|
|
1038
|
-
return new this._Vec4(this[1], this[0], this[0], this[2]);
|
|
1039
|
-
}
|
|
1040
|
-
get yxxw() {
|
|
1041
|
-
return new this._Vec4(this[1], this[0], this[0], this[3]);
|
|
1042
|
-
}
|
|
1043
|
-
get yxyx() {
|
|
1044
|
-
return new this._Vec4(this[1], this[0], this[1], this[0]);
|
|
1045
|
-
}
|
|
1046
|
-
get yxyy() {
|
|
1047
|
-
return new this._Vec4(this[1], this[0], this[1], this[1]);
|
|
1048
|
-
}
|
|
1049
|
-
get yxyz() {
|
|
1050
|
-
return new this._Vec4(this[1], this[0], this[1], this[2]);
|
|
1051
|
-
}
|
|
1052
|
-
get yxyw() {
|
|
1053
|
-
return new this._Vec4(this[1], this[0], this[1], this[3]);
|
|
1054
|
-
}
|
|
1055
|
-
get yxzx() {
|
|
1056
|
-
return new this._Vec4(this[1], this[0], this[2], this[0]);
|
|
1057
|
-
}
|
|
1058
|
-
get yxzy() {
|
|
1059
|
-
return new this._Vec4(this[1], this[0], this[2], this[1]);
|
|
1060
|
-
}
|
|
1061
|
-
get yxzz() {
|
|
1062
|
-
return new this._Vec4(this[1], this[0], this[2], this[2]);
|
|
1063
|
-
}
|
|
1064
|
-
get yxzw() {
|
|
1065
|
-
return new this._Vec4(this[1], this[0], this[2], this[3]);
|
|
1066
|
-
}
|
|
1067
|
-
get yxwx() {
|
|
1068
|
-
return new this._Vec4(this[1], this[0], this[3], this[0]);
|
|
1069
|
-
}
|
|
1070
|
-
get yxwy() {
|
|
1071
|
-
return new this._Vec4(this[1], this[0], this[3], this[1]);
|
|
1072
|
-
}
|
|
1073
|
-
get yxwz() {
|
|
1074
|
-
return new this._Vec4(this[1], this[0], this[3], this[2]);
|
|
1075
|
-
}
|
|
1076
|
-
get yxww() {
|
|
1077
|
-
return new this._Vec4(this[1], this[0], this[3], this[3]);
|
|
1078
|
-
}
|
|
1079
|
-
get yyxx() {
|
|
1080
|
-
return new this._Vec4(this[1], this[1], this[0], this[0]);
|
|
1081
|
-
}
|
|
1082
|
-
get yyxy() {
|
|
1083
|
-
return new this._Vec4(this[1], this[1], this[0], this[1]);
|
|
1084
|
-
}
|
|
1085
|
-
get yyxz() {
|
|
1086
|
-
return new this._Vec4(this[1], this[1], this[0], this[2]);
|
|
1087
|
-
}
|
|
1088
|
-
get yyxw() {
|
|
1089
|
-
return new this._Vec4(this[1], this[1], this[0], this[3]);
|
|
1090
|
-
}
|
|
1091
|
-
get yyyx() {
|
|
1092
|
-
return new this._Vec4(this[1], this[1], this[1], this[0]);
|
|
1093
|
-
}
|
|
1094
|
-
get yyyy() {
|
|
1095
|
-
return new this._Vec4(this[1], this[1], this[1], this[1]);
|
|
1096
|
-
}
|
|
1097
|
-
get yyyz() {
|
|
1098
|
-
return new this._Vec4(this[1], this[1], this[1], this[2]);
|
|
1099
|
-
}
|
|
1100
|
-
get yyyw() {
|
|
1101
|
-
return new this._Vec4(this[1], this[1], this[1], this[3]);
|
|
1102
|
-
}
|
|
1103
|
-
get yyzx() {
|
|
1104
|
-
return new this._Vec4(this[1], this[1], this[2], this[0]);
|
|
1105
|
-
}
|
|
1106
|
-
get yyzy() {
|
|
1107
|
-
return new this._Vec4(this[1], this[1], this[2], this[1]);
|
|
1108
|
-
}
|
|
1109
|
-
get yyzz() {
|
|
1110
|
-
return new this._Vec4(this[1], this[1], this[2], this[2]);
|
|
1111
|
-
}
|
|
1112
|
-
get yyzw() {
|
|
1113
|
-
return new this._Vec4(this[1], this[1], this[2], this[3]);
|
|
1114
|
-
}
|
|
1115
|
-
get yywx() {
|
|
1116
|
-
return new this._Vec4(this[1], this[1], this[3], this[0]);
|
|
1117
|
-
}
|
|
1118
|
-
get yywy() {
|
|
1119
|
-
return new this._Vec4(this[1], this[1], this[3], this[1]);
|
|
1120
|
-
}
|
|
1121
|
-
get yywz() {
|
|
1122
|
-
return new this._Vec4(this[1], this[1], this[3], this[2]);
|
|
1123
|
-
}
|
|
1124
|
-
get yyww() {
|
|
1125
|
-
return new this._Vec4(this[1], this[1], this[3], this[3]);
|
|
1126
|
-
}
|
|
1127
|
-
get yzxx() {
|
|
1128
|
-
return new this._Vec4(this[1], this[2], this[0], this[0]);
|
|
1129
|
-
}
|
|
1130
|
-
get yzxy() {
|
|
1131
|
-
return new this._Vec4(this[1], this[2], this[0], this[1]);
|
|
1132
|
-
}
|
|
1133
|
-
get yzxz() {
|
|
1134
|
-
return new this._Vec4(this[1], this[2], this[0], this[2]);
|
|
1135
|
-
}
|
|
1136
|
-
get yzxw() {
|
|
1137
|
-
return new this._Vec4(this[1], this[2], this[0], this[3]);
|
|
1138
|
-
}
|
|
1139
|
-
get yzyx() {
|
|
1140
|
-
return new this._Vec4(this[1], this[2], this[1], this[0]);
|
|
1141
|
-
}
|
|
1142
|
-
get yzyy() {
|
|
1143
|
-
return new this._Vec4(this[1], this[2], this[1], this[1]);
|
|
1144
|
-
}
|
|
1145
|
-
get yzyz() {
|
|
1146
|
-
return new this._Vec4(this[1], this[2], this[1], this[2]);
|
|
1147
|
-
}
|
|
1148
|
-
get yzyw() {
|
|
1149
|
-
return new this._Vec4(this[1], this[2], this[1], this[3]);
|
|
1150
|
-
}
|
|
1151
|
-
get yzzx() {
|
|
1152
|
-
return new this._Vec4(this[1], this[2], this[2], this[0]);
|
|
1153
|
-
}
|
|
1154
|
-
get yzzy() {
|
|
1155
|
-
return new this._Vec4(this[1], this[2], this[2], this[1]);
|
|
1156
|
-
}
|
|
1157
|
-
get yzzz() {
|
|
1158
|
-
return new this._Vec4(this[1], this[2], this[2], this[2]);
|
|
1159
|
-
}
|
|
1160
|
-
get yzzw() {
|
|
1161
|
-
return new this._Vec4(this[1], this[2], this[2], this[3]);
|
|
1162
|
-
}
|
|
1163
|
-
get yzwx() {
|
|
1164
|
-
return new this._Vec4(this[1], this[2], this[3], this[0]);
|
|
1165
|
-
}
|
|
1166
|
-
get yzwy() {
|
|
1167
|
-
return new this._Vec4(this[1], this[2], this[3], this[1]);
|
|
1168
|
-
}
|
|
1169
|
-
get yzwz() {
|
|
1170
|
-
return new this._Vec4(this[1], this[2], this[3], this[2]);
|
|
1171
|
-
}
|
|
1172
|
-
get yzww() {
|
|
1173
|
-
return new this._Vec4(this[1], this[2], this[3], this[3]);
|
|
1174
|
-
}
|
|
1175
|
-
get ywxx() {
|
|
1176
|
-
return new this._Vec4(this[1], this[3], this[0], this[0]);
|
|
1177
|
-
}
|
|
1178
|
-
get ywxy() {
|
|
1179
|
-
return new this._Vec4(this[1], this[3], this[0], this[1]);
|
|
1180
|
-
}
|
|
1181
|
-
get ywxz() {
|
|
1182
|
-
return new this._Vec4(this[1], this[3], this[0], this[2]);
|
|
1183
|
-
}
|
|
1184
|
-
get ywxw() {
|
|
1185
|
-
return new this._Vec4(this[1], this[3], this[0], this[3]);
|
|
1186
|
-
}
|
|
1187
|
-
get ywyx() {
|
|
1188
|
-
return new this._Vec4(this[1], this[3], this[1], this[0]);
|
|
1189
|
-
}
|
|
1190
|
-
get ywyy() {
|
|
1191
|
-
return new this._Vec4(this[1], this[3], this[1], this[1]);
|
|
1192
|
-
}
|
|
1193
|
-
get ywyz() {
|
|
1194
|
-
return new this._Vec4(this[1], this[3], this[1], this[2]);
|
|
1195
|
-
}
|
|
1196
|
-
get ywyw() {
|
|
1197
|
-
return new this._Vec4(this[1], this[3], this[1], this[3]);
|
|
1198
|
-
}
|
|
1199
|
-
get ywzx() {
|
|
1200
|
-
return new this._Vec4(this[1], this[3], this[2], this[0]);
|
|
1201
|
-
}
|
|
1202
|
-
get ywzy() {
|
|
1203
|
-
return new this._Vec4(this[1], this[3], this[2], this[1]);
|
|
1204
|
-
}
|
|
1205
|
-
get ywzz() {
|
|
1206
|
-
return new this._Vec4(this[1], this[3], this[2], this[2]);
|
|
1207
|
-
}
|
|
1208
|
-
get ywzw() {
|
|
1209
|
-
return new this._Vec4(this[1], this[3], this[2], this[3]);
|
|
1210
|
-
}
|
|
1211
|
-
get ywwx() {
|
|
1212
|
-
return new this._Vec4(this[1], this[3], this[3], this[0]);
|
|
1213
|
-
}
|
|
1214
|
-
get ywwy() {
|
|
1215
|
-
return new this._Vec4(this[1], this[3], this[3], this[1]);
|
|
1216
|
-
}
|
|
1217
|
-
get ywwz() {
|
|
1218
|
-
return new this._Vec4(this[1], this[3], this[3], this[2]);
|
|
1219
|
-
}
|
|
1220
|
-
get ywww() {
|
|
1221
|
-
return new this._Vec4(this[1], this[3], this[3], this[3]);
|
|
1222
|
-
}
|
|
1223
|
-
get zxxx() {
|
|
1224
|
-
return new this._Vec4(this[2], this[0], this[0], this[0]);
|
|
1225
|
-
}
|
|
1226
|
-
get zxxy() {
|
|
1227
|
-
return new this._Vec4(this[2], this[0], this[0], this[1]);
|
|
1228
|
-
}
|
|
1229
|
-
get zxxz() {
|
|
1230
|
-
return new this._Vec4(this[2], this[0], this[0], this[2]);
|
|
1231
|
-
}
|
|
1232
|
-
get zxxw() {
|
|
1233
|
-
return new this._Vec4(this[2], this[0], this[0], this[3]);
|
|
1234
|
-
}
|
|
1235
|
-
get zxyx() {
|
|
1236
|
-
return new this._Vec4(this[2], this[0], this[1], this[0]);
|
|
1237
|
-
}
|
|
1238
|
-
get zxyy() {
|
|
1239
|
-
return new this._Vec4(this[2], this[0], this[1], this[1]);
|
|
1240
|
-
}
|
|
1241
|
-
get zxyz() {
|
|
1242
|
-
return new this._Vec4(this[2], this[0], this[1], this[2]);
|
|
1243
|
-
}
|
|
1244
|
-
get zxyw() {
|
|
1245
|
-
return new this._Vec4(this[2], this[0], this[1], this[3]);
|
|
1246
|
-
}
|
|
1247
|
-
get zxzx() {
|
|
1248
|
-
return new this._Vec4(this[2], this[0], this[2], this[0]);
|
|
1249
|
-
}
|
|
1250
|
-
get zxzy() {
|
|
1251
|
-
return new this._Vec4(this[2], this[0], this[2], this[1]);
|
|
1252
|
-
}
|
|
1253
|
-
get zxzz() {
|
|
1254
|
-
return new this._Vec4(this[2], this[0], this[2], this[2]);
|
|
1255
|
-
}
|
|
1256
|
-
get zxzw() {
|
|
1257
|
-
return new this._Vec4(this[2], this[0], this[2], this[3]);
|
|
1258
|
-
}
|
|
1259
|
-
get zxwx() {
|
|
1260
|
-
return new this._Vec4(this[2], this[0], this[3], this[0]);
|
|
1261
|
-
}
|
|
1262
|
-
get zxwy() {
|
|
1263
|
-
return new this._Vec4(this[2], this[0], this[3], this[1]);
|
|
1264
|
-
}
|
|
1265
|
-
get zxwz() {
|
|
1266
|
-
return new this._Vec4(this[2], this[0], this[3], this[2]);
|
|
1267
|
-
}
|
|
1268
|
-
get zxww() {
|
|
1269
|
-
return new this._Vec4(this[2], this[0], this[3], this[3]);
|
|
1270
|
-
}
|
|
1271
|
-
get zyxx() {
|
|
1272
|
-
return new this._Vec4(this[2], this[1], this[0], this[0]);
|
|
1273
|
-
}
|
|
1274
|
-
get zyxy() {
|
|
1275
|
-
return new this._Vec4(this[2], this[1], this[0], this[1]);
|
|
1276
|
-
}
|
|
1277
|
-
get zyxz() {
|
|
1278
|
-
return new this._Vec4(this[2], this[1], this[0], this[2]);
|
|
1279
|
-
}
|
|
1280
|
-
get zyxw() {
|
|
1281
|
-
return new this._Vec4(this[2], this[1], this[0], this[3]);
|
|
1282
|
-
}
|
|
1283
|
-
get zyyx() {
|
|
1284
|
-
return new this._Vec4(this[2], this[1], this[1], this[0]);
|
|
1285
|
-
}
|
|
1286
|
-
get zyyy() {
|
|
1287
|
-
return new this._Vec4(this[2], this[1], this[1], this[1]);
|
|
1288
|
-
}
|
|
1289
|
-
get zyyz() {
|
|
1290
|
-
return new this._Vec4(this[2], this[1], this[1], this[2]);
|
|
1291
|
-
}
|
|
1292
|
-
get zyyw() {
|
|
1293
|
-
return new this._Vec4(this[2], this[1], this[1], this[3]);
|
|
1294
|
-
}
|
|
1295
|
-
get zyzx() {
|
|
1296
|
-
return new this._Vec4(this[2], this[1], this[2], this[0]);
|
|
1297
|
-
}
|
|
1298
|
-
get zyzy() {
|
|
1299
|
-
return new this._Vec4(this[2], this[1], this[2], this[1]);
|
|
1300
|
-
}
|
|
1301
|
-
get zyzz() {
|
|
1302
|
-
return new this._Vec4(this[2], this[1], this[2], this[2]);
|
|
1303
|
-
}
|
|
1304
|
-
get zyzw() {
|
|
1305
|
-
return new this._Vec4(this[2], this[1], this[2], this[3]);
|
|
1306
|
-
}
|
|
1307
|
-
get zywx() {
|
|
1308
|
-
return new this._Vec4(this[2], this[1], this[3], this[0]);
|
|
1309
|
-
}
|
|
1310
|
-
get zywy() {
|
|
1311
|
-
return new this._Vec4(this[2], this[1], this[3], this[1]);
|
|
1312
|
-
}
|
|
1313
|
-
get zywz() {
|
|
1314
|
-
return new this._Vec4(this[2], this[1], this[3], this[2]);
|
|
1315
|
-
}
|
|
1316
|
-
get zyww() {
|
|
1317
|
-
return new this._Vec4(this[2], this[1], this[3], this[3]);
|
|
1318
|
-
}
|
|
1319
|
-
get zzxx() {
|
|
1320
|
-
return new this._Vec4(this[2], this[2], this[0], this[0]);
|
|
1321
|
-
}
|
|
1322
|
-
get zzxy() {
|
|
1323
|
-
return new this._Vec4(this[2], this[2], this[0], this[1]);
|
|
1324
|
-
}
|
|
1325
|
-
get zzxz() {
|
|
1326
|
-
return new this._Vec4(this[2], this[2], this[0], this[2]);
|
|
1327
|
-
}
|
|
1328
|
-
get zzxw() {
|
|
1329
|
-
return new this._Vec4(this[2], this[2], this[0], this[3]);
|
|
1330
|
-
}
|
|
1331
|
-
get zzyx() {
|
|
1332
|
-
return new this._Vec4(this[2], this[2], this[1], this[0]);
|
|
1333
|
-
}
|
|
1334
|
-
get zzyy() {
|
|
1335
|
-
return new this._Vec4(this[2], this[2], this[1], this[1]);
|
|
1336
|
-
}
|
|
1337
|
-
get zzyz() {
|
|
1338
|
-
return new this._Vec4(this[2], this[2], this[1], this[2]);
|
|
1339
|
-
}
|
|
1340
|
-
get zzyw() {
|
|
1341
|
-
return new this._Vec4(this[2], this[2], this[1], this[3]);
|
|
1342
|
-
}
|
|
1343
|
-
get zzzx() {
|
|
1344
|
-
return new this._Vec4(this[2], this[2], this[2], this[0]);
|
|
1345
|
-
}
|
|
1346
|
-
get zzzy() {
|
|
1347
|
-
return new this._Vec4(this[2], this[2], this[2], this[1]);
|
|
1348
|
-
}
|
|
1349
|
-
get zzzz() {
|
|
1350
|
-
return new this._Vec4(this[2], this[2], this[2], this[2]);
|
|
1351
|
-
}
|
|
1352
|
-
get zzzw() {
|
|
1353
|
-
return new this._Vec4(this[2], this[2], this[2], this[3]);
|
|
1354
|
-
}
|
|
1355
|
-
get zzwx() {
|
|
1356
|
-
return new this._Vec4(this[2], this[2], this[3], this[0]);
|
|
1357
|
-
}
|
|
1358
|
-
get zzwy() {
|
|
1359
|
-
return new this._Vec4(this[2], this[2], this[3], this[1]);
|
|
1360
|
-
}
|
|
1361
|
-
get zzwz() {
|
|
1362
|
-
return new this._Vec4(this[2], this[2], this[3], this[2]);
|
|
1363
|
-
}
|
|
1364
|
-
get zzww() {
|
|
1365
|
-
return new this._Vec4(this[2], this[2], this[3], this[3]);
|
|
1366
|
-
}
|
|
1367
|
-
get zwxx() {
|
|
1368
|
-
return new this._Vec4(this[2], this[3], this[0], this[0]);
|
|
1369
|
-
}
|
|
1370
|
-
get zwxy() {
|
|
1371
|
-
return new this._Vec4(this[2], this[3], this[0], this[1]);
|
|
1372
|
-
}
|
|
1373
|
-
get zwxz() {
|
|
1374
|
-
return new this._Vec4(this[2], this[3], this[0], this[2]);
|
|
1375
|
-
}
|
|
1376
|
-
get zwxw() {
|
|
1377
|
-
return new this._Vec4(this[2], this[3], this[0], this[3]);
|
|
1378
|
-
}
|
|
1379
|
-
get zwyx() {
|
|
1380
|
-
return new this._Vec4(this[2], this[3], this[1], this[0]);
|
|
1381
|
-
}
|
|
1382
|
-
get zwyy() {
|
|
1383
|
-
return new this._Vec4(this[2], this[3], this[1], this[1]);
|
|
1384
|
-
}
|
|
1385
|
-
get zwyz() {
|
|
1386
|
-
return new this._Vec4(this[2], this[3], this[1], this[2]);
|
|
1387
|
-
}
|
|
1388
|
-
get zwyw() {
|
|
1389
|
-
return new this._Vec4(this[2], this[3], this[1], this[3]);
|
|
1390
|
-
}
|
|
1391
|
-
get zwzx() {
|
|
1392
|
-
return new this._Vec4(this[2], this[3], this[2], this[0]);
|
|
1393
|
-
}
|
|
1394
|
-
get zwzy() {
|
|
1395
|
-
return new this._Vec4(this[2], this[3], this[2], this[1]);
|
|
1396
|
-
}
|
|
1397
|
-
get zwzz() {
|
|
1398
|
-
return new this._Vec4(this[2], this[3], this[2], this[2]);
|
|
1399
|
-
}
|
|
1400
|
-
get zwzw() {
|
|
1401
|
-
return new this._Vec4(this[2], this[3], this[2], this[3]);
|
|
1402
|
-
}
|
|
1403
|
-
get zwwx() {
|
|
1404
|
-
return new this._Vec4(this[2], this[3], this[3], this[0]);
|
|
1405
|
-
}
|
|
1406
|
-
get zwwy() {
|
|
1407
|
-
return new this._Vec4(this[2], this[3], this[3], this[1]);
|
|
1408
|
-
}
|
|
1409
|
-
get zwwz() {
|
|
1410
|
-
return new this._Vec4(this[2], this[3], this[3], this[2]);
|
|
1411
|
-
}
|
|
1412
|
-
get zwww() {
|
|
1413
|
-
return new this._Vec4(this[2], this[3], this[3], this[3]);
|
|
1414
|
-
}
|
|
1415
|
-
get wxxx() {
|
|
1416
|
-
return new this._Vec4(this[3], this[0], this[0], this[0]);
|
|
1417
|
-
}
|
|
1418
|
-
get wxxy() {
|
|
1419
|
-
return new this._Vec4(this[3], this[0], this[0], this[1]);
|
|
1420
|
-
}
|
|
1421
|
-
get wxxz() {
|
|
1422
|
-
return new this._Vec4(this[3], this[0], this[0], this[2]);
|
|
1423
|
-
}
|
|
1424
|
-
get wxxw() {
|
|
1425
|
-
return new this._Vec4(this[3], this[0], this[0], this[3]);
|
|
1426
|
-
}
|
|
1427
|
-
get wxyx() {
|
|
1428
|
-
return new this._Vec4(this[3], this[0], this[1], this[0]);
|
|
1429
|
-
}
|
|
1430
|
-
get wxyy() {
|
|
1431
|
-
return new this._Vec4(this[3], this[0], this[1], this[1]);
|
|
1432
|
-
}
|
|
1433
|
-
get wxyz() {
|
|
1434
|
-
return new this._Vec4(this[3], this[0], this[1], this[2]);
|
|
1435
|
-
}
|
|
1436
|
-
get wxyw() {
|
|
1437
|
-
return new this._Vec4(this[3], this[0], this[1], this[3]);
|
|
1438
|
-
}
|
|
1439
|
-
get wxzx() {
|
|
1440
|
-
return new this._Vec4(this[3], this[0], this[2], this[0]);
|
|
1441
|
-
}
|
|
1442
|
-
get wxzy() {
|
|
1443
|
-
return new this._Vec4(this[3], this[0], this[2], this[1]);
|
|
1444
|
-
}
|
|
1445
|
-
get wxzz() {
|
|
1446
|
-
return new this._Vec4(this[3], this[0], this[2], this[2]);
|
|
1447
|
-
}
|
|
1448
|
-
get wxzw() {
|
|
1449
|
-
return new this._Vec4(this[3], this[0], this[2], this[3]);
|
|
1450
|
-
}
|
|
1451
|
-
get wxwx() {
|
|
1452
|
-
return new this._Vec4(this[3], this[0], this[3], this[0]);
|
|
1453
|
-
}
|
|
1454
|
-
get wxwy() {
|
|
1455
|
-
return new this._Vec4(this[3], this[0], this[3], this[1]);
|
|
1456
|
-
}
|
|
1457
|
-
get wxwz() {
|
|
1458
|
-
return new this._Vec4(this[3], this[0], this[3], this[2]);
|
|
1459
|
-
}
|
|
1460
|
-
get wxww() {
|
|
1461
|
-
return new this._Vec4(this[3], this[0], this[3], this[3]);
|
|
1462
|
-
}
|
|
1463
|
-
get wyxx() {
|
|
1464
|
-
return new this._Vec4(this[3], this[1], this[0], this[0]);
|
|
1465
|
-
}
|
|
1466
|
-
get wyxy() {
|
|
1467
|
-
return new this._Vec4(this[3], this[1], this[0], this[1]);
|
|
1468
|
-
}
|
|
1469
|
-
get wyxz() {
|
|
1470
|
-
return new this._Vec4(this[3], this[1], this[0], this[2]);
|
|
1471
|
-
}
|
|
1472
|
-
get wyxw() {
|
|
1473
|
-
return new this._Vec4(this[3], this[1], this[0], this[3]);
|
|
1474
|
-
}
|
|
1475
|
-
get wyyx() {
|
|
1476
|
-
return new this._Vec4(this[3], this[1], this[1], this[0]);
|
|
1477
|
-
}
|
|
1478
|
-
get wyyy() {
|
|
1479
|
-
return new this._Vec4(this[3], this[1], this[1], this[1]);
|
|
1480
|
-
}
|
|
1481
|
-
get wyyz() {
|
|
1482
|
-
return new this._Vec4(this[3], this[1], this[1], this[2]);
|
|
1483
|
-
}
|
|
1484
|
-
get wyyw() {
|
|
1485
|
-
return new this._Vec4(this[3], this[1], this[1], this[3]);
|
|
1486
|
-
}
|
|
1487
|
-
get wyzx() {
|
|
1488
|
-
return new this._Vec4(this[3], this[1], this[2], this[0]);
|
|
1489
|
-
}
|
|
1490
|
-
get wyzy() {
|
|
1491
|
-
return new this._Vec4(this[3], this[1], this[2], this[1]);
|
|
1492
|
-
}
|
|
1493
|
-
get wyzz() {
|
|
1494
|
-
return new this._Vec4(this[3], this[1], this[2], this[2]);
|
|
1495
|
-
}
|
|
1496
|
-
get wyzw() {
|
|
1497
|
-
return new this._Vec4(this[3], this[1], this[2], this[3]);
|
|
1498
|
-
}
|
|
1499
|
-
get wywx() {
|
|
1500
|
-
return new this._Vec4(this[3], this[1], this[3], this[0]);
|
|
1501
|
-
}
|
|
1502
|
-
get wywy() {
|
|
1503
|
-
return new this._Vec4(this[3], this[1], this[3], this[1]);
|
|
1504
|
-
}
|
|
1505
|
-
get wywz() {
|
|
1506
|
-
return new this._Vec4(this[3], this[1], this[3], this[2]);
|
|
1507
|
-
}
|
|
1508
|
-
get wyww() {
|
|
1509
|
-
return new this._Vec4(this[3], this[1], this[3], this[3]);
|
|
1510
|
-
}
|
|
1511
|
-
get wzxx() {
|
|
1512
|
-
return new this._Vec4(this[3], this[2], this[0], this[0]);
|
|
1513
|
-
}
|
|
1514
|
-
get wzxy() {
|
|
1515
|
-
return new this._Vec4(this[3], this[2], this[0], this[1]);
|
|
1516
|
-
}
|
|
1517
|
-
get wzxz() {
|
|
1518
|
-
return new this._Vec4(this[3], this[2], this[0], this[2]);
|
|
1519
|
-
}
|
|
1520
|
-
get wzxw() {
|
|
1521
|
-
return new this._Vec4(this[3], this[2], this[0], this[3]);
|
|
1522
|
-
}
|
|
1523
|
-
get wzyx() {
|
|
1524
|
-
return new this._Vec4(this[3], this[2], this[1], this[0]);
|
|
1525
|
-
}
|
|
1526
|
-
get wzyy() {
|
|
1527
|
-
return new this._Vec4(this[3], this[2], this[1], this[1]);
|
|
1528
|
-
}
|
|
1529
|
-
get wzyz() {
|
|
1530
|
-
return new this._Vec4(this[3], this[2], this[1], this[2]);
|
|
1531
|
-
}
|
|
1532
|
-
get wzyw() {
|
|
1533
|
-
return new this._Vec4(this[3], this[2], this[1], this[3]);
|
|
1534
|
-
}
|
|
1535
|
-
get wzzx() {
|
|
1536
|
-
return new this._Vec4(this[3], this[2], this[2], this[0]);
|
|
1537
|
-
}
|
|
1538
|
-
get wzzy() {
|
|
1539
|
-
return new this._Vec4(this[3], this[2], this[2], this[1]);
|
|
1540
|
-
}
|
|
1541
|
-
get wzzz() {
|
|
1542
|
-
return new this._Vec4(this[3], this[2], this[2], this[2]);
|
|
1543
|
-
}
|
|
1544
|
-
get wzzw() {
|
|
1545
|
-
return new this._Vec4(this[3], this[2], this[2], this[3]);
|
|
1546
|
-
}
|
|
1547
|
-
get wzwx() {
|
|
1548
|
-
return new this._Vec4(this[3], this[2], this[3], this[0]);
|
|
1549
|
-
}
|
|
1550
|
-
get wzwy() {
|
|
1551
|
-
return new this._Vec4(this[3], this[2], this[3], this[1]);
|
|
1552
|
-
}
|
|
1553
|
-
get wzwz() {
|
|
1554
|
-
return new this._Vec4(this[3], this[2], this[3], this[2]);
|
|
1555
|
-
}
|
|
1556
|
-
get wzww() {
|
|
1557
|
-
return new this._Vec4(this[3], this[2], this[3], this[3]);
|
|
1558
|
-
}
|
|
1559
|
-
get wwxx() {
|
|
1560
|
-
return new this._Vec4(this[3], this[3], this[0], this[0]);
|
|
1561
|
-
}
|
|
1562
|
-
get wwxy() {
|
|
1563
|
-
return new this._Vec4(this[3], this[3], this[0], this[1]);
|
|
1564
|
-
}
|
|
1565
|
-
get wwxz() {
|
|
1566
|
-
return new this._Vec4(this[3], this[3], this[0], this[2]);
|
|
1567
|
-
}
|
|
1568
|
-
get wwxw() {
|
|
1569
|
-
return new this._Vec4(this[3], this[3], this[0], this[3]);
|
|
1570
|
-
}
|
|
1571
|
-
get wwyx() {
|
|
1572
|
-
return new this._Vec4(this[3], this[3], this[1], this[0]);
|
|
1573
|
-
}
|
|
1574
|
-
get wwyy() {
|
|
1575
|
-
return new this._Vec4(this[3], this[3], this[1], this[1]);
|
|
1576
|
-
}
|
|
1577
|
-
get wwyz() {
|
|
1578
|
-
return new this._Vec4(this[3], this[3], this[1], this[2]);
|
|
1579
|
-
}
|
|
1580
|
-
get wwyw() {
|
|
1581
|
-
return new this._Vec4(this[3], this[3], this[1], this[3]);
|
|
1582
|
-
}
|
|
1583
|
-
get wwzx() {
|
|
1584
|
-
return new this._Vec4(this[3], this[3], this[2], this[0]);
|
|
1585
|
-
}
|
|
1586
|
-
get wwzy() {
|
|
1587
|
-
return new this._Vec4(this[3], this[3], this[2], this[1]);
|
|
1588
|
-
}
|
|
1589
|
-
get wwzz() {
|
|
1590
|
-
return new this._Vec4(this[3], this[3], this[2], this[2]);
|
|
1591
|
-
}
|
|
1592
|
-
get wwzw() {
|
|
1593
|
-
return new this._Vec4(this[3], this[3], this[2], this[3]);
|
|
1594
|
-
}
|
|
1595
|
-
get wwwx() {
|
|
1596
|
-
return new this._Vec4(this[3], this[3], this[3], this[0]);
|
|
1597
|
-
}
|
|
1598
|
-
get wwwy() {
|
|
1599
|
-
return new this._Vec4(this[3], this[3], this[3], this[1]);
|
|
1600
|
-
}
|
|
1601
|
-
get wwwz() {
|
|
1602
|
-
return new this._Vec4(this[3], this[3], this[3], this[2]);
|
|
1603
|
-
}
|
|
1604
|
-
get wwww() {
|
|
1605
|
-
return new this._Vec4(this[3], this[3], this[3], this[3]);
|
|
1606
|
-
}
|
|
1607
|
-
}, j = class extends rt {
|
|
1608
|
-
e0;
|
|
1609
|
-
e1;
|
|
1610
|
-
constructor(t, e) {
|
|
1611
|
-
super(2), this.e0 = this.castElement()(t), this.e1 = this.castElement()(e ?? t);
|
|
1612
|
-
}
|
|
1613
|
-
get 0() {
|
|
1614
|
-
return this.e0;
|
|
1615
|
-
}
|
|
1616
|
-
get 1() {
|
|
1617
|
-
return this.e1;
|
|
1618
|
-
}
|
|
1619
|
-
set 0(t) {
|
|
1620
|
-
this.e0 = this.castElement()(t);
|
|
1621
|
-
}
|
|
1622
|
-
set 1(t) {
|
|
1623
|
-
this.e1 = this.castElement()(t);
|
|
1624
|
-
}
|
|
1625
|
-
get x() {
|
|
1626
|
-
return this[0];
|
|
1627
|
-
}
|
|
1628
|
-
get y() {
|
|
1629
|
-
return this[1];
|
|
1630
|
-
}
|
|
1631
|
-
set x(t) {
|
|
1632
|
-
this[0] = this.castElement()(t);
|
|
1633
|
-
}
|
|
1634
|
-
set y(t) {
|
|
1635
|
-
this[1] = this.castElement()(t);
|
|
1636
|
-
}
|
|
1637
|
-
}, F = class extends rt {
|
|
1638
|
-
e0;
|
|
1639
|
-
e1;
|
|
1640
|
-
e2;
|
|
1641
|
-
constructor(t, e, s) {
|
|
1642
|
-
super(3), this.e0 = this.castElement()(t), this.e1 = this.castElement()(e ?? t), this.e2 = this.castElement()(s ?? t);
|
|
1643
|
-
}
|
|
1644
|
-
get 0() {
|
|
1645
|
-
return this.e0;
|
|
1646
|
-
}
|
|
1647
|
-
get 1() {
|
|
1648
|
-
return this.e1;
|
|
1649
|
-
}
|
|
1650
|
-
get 2() {
|
|
1651
|
-
return this.e2;
|
|
1652
|
-
}
|
|
1653
|
-
set 0(t) {
|
|
1654
|
-
this.e0 = this.castElement()(t);
|
|
1655
|
-
}
|
|
1656
|
-
set 1(t) {
|
|
1657
|
-
this.e1 = this.castElement()(t);
|
|
1658
|
-
}
|
|
1659
|
-
set 2(t) {
|
|
1660
|
-
this.e2 = this.castElement()(t);
|
|
1661
|
-
}
|
|
1662
|
-
get x() {
|
|
1663
|
-
return this[0];
|
|
1664
|
-
}
|
|
1665
|
-
get y() {
|
|
1666
|
-
return this[1];
|
|
1667
|
-
}
|
|
1668
|
-
get z() {
|
|
1669
|
-
return this[2];
|
|
1670
|
-
}
|
|
1671
|
-
set x(t) {
|
|
1672
|
-
this[0] = this.castElement()(t);
|
|
1673
|
-
}
|
|
1674
|
-
set y(t) {
|
|
1675
|
-
this[1] = this.castElement()(t);
|
|
1676
|
-
}
|
|
1677
|
-
set z(t) {
|
|
1678
|
-
this[2] = this.castElement()(t);
|
|
1679
|
-
}
|
|
1680
|
-
}, M = class extends rt {
|
|
1681
|
-
e0;
|
|
1682
|
-
e1;
|
|
1683
|
-
e2;
|
|
1684
|
-
e3;
|
|
1685
|
-
constructor(t, e, s, i) {
|
|
1686
|
-
super(4), this.e0 = this.castElement()(t), this.e1 = this.castElement()(e ?? t), this.e2 = this.castElement()(s ?? t), this.e3 = this.castElement()(i ?? t);
|
|
1687
|
-
}
|
|
1688
|
-
get 0() {
|
|
1689
|
-
return this.e0;
|
|
1690
|
-
}
|
|
1691
|
-
get 1() {
|
|
1692
|
-
return this.e1;
|
|
1693
|
-
}
|
|
1694
|
-
get 2() {
|
|
1695
|
-
return this.e2;
|
|
1696
|
-
}
|
|
1697
|
-
get 3() {
|
|
1698
|
-
return this.e3;
|
|
1699
|
-
}
|
|
1700
|
-
set 0(t) {
|
|
1701
|
-
this.e0 = this.castElement()(t);
|
|
1702
|
-
}
|
|
1703
|
-
set 1(t) {
|
|
1704
|
-
this.e1 = this.castElement()(t);
|
|
1705
|
-
}
|
|
1706
|
-
set 2(t) {
|
|
1707
|
-
this.e2 = this.castElement()(t);
|
|
1708
|
-
}
|
|
1709
|
-
set 3(t) {
|
|
1710
|
-
this.e3 = this.castElement()(t);
|
|
1711
|
-
}
|
|
1712
|
-
get x() {
|
|
1713
|
-
return this[0];
|
|
1714
|
-
}
|
|
1715
|
-
get y() {
|
|
1716
|
-
return this[1];
|
|
1717
|
-
}
|
|
1718
|
-
get z() {
|
|
1719
|
-
return this[2];
|
|
1720
|
-
}
|
|
1721
|
-
get w() {
|
|
1722
|
-
return this[3];
|
|
1723
|
-
}
|
|
1724
|
-
set x(t) {
|
|
1725
|
-
this[0] = t;
|
|
1726
|
-
}
|
|
1727
|
-
set y(t) {
|
|
1728
|
-
this[1] = t;
|
|
1729
|
-
}
|
|
1730
|
-
set z(t) {
|
|
1731
|
-
this[2] = t;
|
|
1732
|
-
}
|
|
1733
|
-
set w(t) {
|
|
1734
|
-
this[3] = t;
|
|
1735
|
-
}
|
|
1736
|
-
}, ht = class Kt extends j {
|
|
1737
|
-
get [u]() {
|
|
1738
|
-
return { elementSchema: _ };
|
|
1739
|
-
}
|
|
1740
|
-
get kind() {
|
|
1741
|
-
return "vec2f";
|
|
1742
|
-
}
|
|
1743
|
-
get _Vec2() {
|
|
1744
|
-
return Kt;
|
|
1745
|
-
}
|
|
1746
|
-
get _Vec3() {
|
|
1747
|
-
return wt;
|
|
1748
|
-
}
|
|
1749
|
-
get _Vec4() {
|
|
1750
|
-
return lt;
|
|
1751
|
-
}
|
|
1752
|
-
}, ut = class Jt extends j {
|
|
1753
|
-
get [u]() {
|
|
1754
|
-
return { elementSchema: I };
|
|
1755
|
-
}
|
|
1756
|
-
get kind() {
|
|
1757
|
-
return "vec2h";
|
|
1758
|
-
}
|
|
1759
|
-
get _Vec2() {
|
|
1760
|
-
return Jt;
|
|
1761
|
-
}
|
|
1762
|
-
get _Vec3() {
|
|
1763
|
-
return yt;
|
|
1764
|
-
}
|
|
1765
|
-
get _Vec4() {
|
|
1766
|
-
return pt;
|
|
1767
|
-
}
|
|
1768
|
-
}, ct = class Zt extends j {
|
|
1769
|
-
get [u]() {
|
|
1770
|
-
return { elementSchema: f };
|
|
1771
|
-
}
|
|
1772
|
-
get kind() {
|
|
1773
|
-
return "vec2i";
|
|
1774
|
-
}
|
|
1775
|
-
get _Vec2() {
|
|
1776
|
-
return Zt;
|
|
1777
|
-
}
|
|
1778
|
-
get _Vec3() {
|
|
1779
|
-
return gt;
|
|
1780
|
-
}
|
|
1781
|
-
get _Vec4() {
|
|
1782
|
-
return ft;
|
|
1783
|
-
}
|
|
1784
|
-
}, at = class Xt extends j {
|
|
1785
|
-
get [u]() {
|
|
1786
|
-
return { elementSchema: y };
|
|
1787
|
-
}
|
|
1788
|
-
get kind() {
|
|
1789
|
-
return "vec2u";
|
|
1790
|
-
}
|
|
1791
|
-
get _Vec2() {
|
|
1792
|
-
return Xt;
|
|
1793
|
-
}
|
|
1794
|
-
get _Vec3() {
|
|
1795
|
-
return xt;
|
|
1796
|
-
}
|
|
1797
|
-
get _Vec4() {
|
|
1798
|
-
return Vt;
|
|
1799
|
-
}
|
|
1800
|
-
}, ot = class Qt extends j {
|
|
1801
|
-
get [u]() {
|
|
1802
|
-
return { elementSchema: d };
|
|
1803
|
-
}
|
|
1804
|
-
get kind() {
|
|
1805
|
-
return "vec2<bool>";
|
|
1806
|
-
}
|
|
1807
|
-
get _Vec2() {
|
|
1808
|
-
return Qt;
|
|
1809
|
-
}
|
|
1810
|
-
get _Vec3() {
|
|
1811
|
-
return _t;
|
|
1812
|
-
}
|
|
1813
|
-
get _Vec4() {
|
|
1814
|
-
return zt;
|
|
1815
|
-
}
|
|
1816
|
-
}, wt = class qt extends F {
|
|
1817
|
-
get [u]() {
|
|
1818
|
-
return { elementSchema: _ };
|
|
1819
|
-
}
|
|
1820
|
-
get kind() {
|
|
1821
|
-
return "vec3f";
|
|
1822
|
-
}
|
|
1823
|
-
get _Vec2() {
|
|
1824
|
-
return ht;
|
|
1825
|
-
}
|
|
1826
|
-
get _Vec3() {
|
|
1827
|
-
return qt;
|
|
1828
|
-
}
|
|
1829
|
-
get _Vec4() {
|
|
1830
|
-
return lt;
|
|
1831
|
-
}
|
|
1832
|
-
}, yt = class te extends F {
|
|
1833
|
-
get [u]() {
|
|
1834
|
-
return { elementSchema: I };
|
|
1835
|
-
}
|
|
1836
|
-
get kind() {
|
|
1837
|
-
return "vec3h";
|
|
1838
|
-
}
|
|
1839
|
-
get _Vec2() {
|
|
1840
|
-
return ut;
|
|
1841
|
-
}
|
|
1842
|
-
get _Vec3() {
|
|
1843
|
-
return te;
|
|
1844
|
-
}
|
|
1845
|
-
get _Vec4() {
|
|
1846
|
-
return pt;
|
|
1847
|
-
}
|
|
1848
|
-
}, gt = class ee extends F {
|
|
1849
|
-
get [u]() {
|
|
1850
|
-
return { elementSchema: f };
|
|
1851
|
-
}
|
|
1852
|
-
get kind() {
|
|
1853
|
-
return "vec3i";
|
|
1854
|
-
}
|
|
1855
|
-
get _Vec2() {
|
|
1856
|
-
return ct;
|
|
1857
|
-
}
|
|
1858
|
-
get _Vec3() {
|
|
1859
|
-
return ee;
|
|
1860
|
-
}
|
|
1861
|
-
get _Vec4() {
|
|
1862
|
-
return ft;
|
|
1863
|
-
}
|
|
1864
|
-
}, xt = class se extends F {
|
|
1865
|
-
get [u]() {
|
|
1866
|
-
return { elementSchema: y };
|
|
1867
|
-
}
|
|
1868
|
-
get kind() {
|
|
1869
|
-
return "vec3u";
|
|
1870
|
-
}
|
|
1871
|
-
get _Vec2() {
|
|
1872
|
-
return at;
|
|
1873
|
-
}
|
|
1874
|
-
get _Vec3() {
|
|
1875
|
-
return se;
|
|
1876
|
-
}
|
|
1877
|
-
get _Vec4() {
|
|
1878
|
-
return Vt;
|
|
1879
|
-
}
|
|
1880
|
-
}, _t = class ie extends F {
|
|
1881
|
-
get [u]() {
|
|
1882
|
-
return { elementSchema: d };
|
|
1883
|
-
}
|
|
1884
|
-
get kind() {
|
|
1885
|
-
return "vec3<bool>";
|
|
1886
|
-
}
|
|
1887
|
-
get _Vec2() {
|
|
1888
|
-
return ot;
|
|
1889
|
-
}
|
|
1890
|
-
get _Vec3() {
|
|
1891
|
-
return ie;
|
|
1892
|
-
}
|
|
1893
|
-
get _Vec4() {
|
|
1894
|
-
return zt;
|
|
1895
|
-
}
|
|
1896
|
-
}, lt = class ne extends M {
|
|
1897
|
-
get [u]() {
|
|
1898
|
-
return { elementSchema: _ };
|
|
1899
|
-
}
|
|
1900
|
-
get kind() {
|
|
1901
|
-
return "vec4f";
|
|
1902
|
-
}
|
|
1903
|
-
get _Vec2() {
|
|
1904
|
-
return ht;
|
|
1905
|
-
}
|
|
1906
|
-
get _Vec3() {
|
|
1907
|
-
return wt;
|
|
1908
|
-
}
|
|
1909
|
-
get _Vec4() {
|
|
1910
|
-
return ne;
|
|
1911
|
-
}
|
|
1912
|
-
}, pt = class re extends M {
|
|
1913
|
-
get [u]() {
|
|
1914
|
-
return { elementSchema: I };
|
|
1915
|
-
}
|
|
1916
|
-
get kind() {
|
|
1917
|
-
return "vec4h";
|
|
1918
|
-
}
|
|
1919
|
-
get _Vec2() {
|
|
1920
|
-
return ut;
|
|
1921
|
-
}
|
|
1922
|
-
get _Vec3() {
|
|
1923
|
-
return yt;
|
|
1924
|
-
}
|
|
1925
|
-
get _Vec4() {
|
|
1926
|
-
return re;
|
|
1927
|
-
}
|
|
1928
|
-
}, ft = class he extends M {
|
|
1929
|
-
get [u]() {
|
|
1930
|
-
return { elementSchema: f };
|
|
1931
|
-
}
|
|
1932
|
-
get kind() {
|
|
1933
|
-
return "vec4i";
|
|
1934
|
-
}
|
|
1935
|
-
get _Vec2() {
|
|
1936
|
-
return ct;
|
|
1937
|
-
}
|
|
1938
|
-
get _Vec3() {
|
|
1939
|
-
return gt;
|
|
1940
|
-
}
|
|
1941
|
-
get _Vec4() {
|
|
1942
|
-
return he;
|
|
1943
|
-
}
|
|
1944
|
-
}, Vt = class ue extends M {
|
|
1945
|
-
get [u]() {
|
|
1946
|
-
return { elementSchema: y };
|
|
1947
|
-
}
|
|
1948
|
-
get kind() {
|
|
1949
|
-
return "vec4u";
|
|
1950
|
-
}
|
|
1951
|
-
get _Vec2() {
|
|
1952
|
-
return at;
|
|
1953
|
-
}
|
|
1954
|
-
get _Vec3() {
|
|
1955
|
-
return xt;
|
|
1956
|
-
}
|
|
1957
|
-
get _Vec4() {
|
|
1958
|
-
return ue;
|
|
1959
|
-
}
|
|
1960
|
-
}, zt = class ce extends M {
|
|
1961
|
-
get [u]() {
|
|
1962
|
-
return { elementSchema: d };
|
|
1963
|
-
}
|
|
1964
|
-
get kind() {
|
|
1965
|
-
return "vec4<bool>";
|
|
1966
|
-
}
|
|
1967
|
-
get _Vec2() {
|
|
1968
|
-
return ot;
|
|
1969
|
-
}
|
|
1970
|
-
get _Vec3() {
|
|
1971
|
-
return _t;
|
|
1972
|
-
}
|
|
1973
|
-
get _Vec4() {
|
|
1974
|
-
return ce;
|
|
1975
|
-
}
|
|
1976
|
-
}, b = l(ht, _), as = l(ut, I), A = l(ct, f), v = l(at, y), os = l(ot, d), ae = l(wt, _), ws = l(yt, I), oe = l(gt, f), we = l(xt, y), ys = l(_t, d), V = l(lt, _), gs = l(pt, I), G = l(ft, f), L = l(Vt, y), xs = l(zt, d), Ii = { vec2f: b, vec2h: as, vec2i: A, vec2u: v, "vec2<bool>": os, vec3f: ae, vec3h: ws, vec3i: oe, vec3u: we, "vec3<bool>": ys, vec4f: V, vec4h: gs, vec4i: G, vec4u: L, "vec4<bool>": xs };
|
|
1977
|
-
function l(t, e) {
|
|
1978
|
-
let { kind: s, length: i } = new t(), n = k({ name: s, signature: (...a) => ({ argTypes: a.map((w) => B(w) ? w : e), returnType: r }), normalImpl: (...a) => {
|
|
1979
|
-
let w = new Array(a.length), x = 0;
|
|
1980
|
-
for (let p of a) if (typeof p == "number" || typeof p == "boolean") w[x++] = p;
|
|
1981
|
-
else for (let O = 0; O < p.length; ++O) w[x++] = p[O];
|
|
1982
|
-
if (w.length <= 1 || w.length === i) return new t(...w);
|
|
1983
|
-
throw new Error(`'${s}' constructor called with invalid number of arguments.`);
|
|
1984
|
-
}, ignoreImplicitCastWarning: !0, codegenImpl: (...a) => a.length === 1 && a[0]?.dataType === r ? g`${a[0]}` : g`${s}(${a})` }), r = Object.assign(n, { type: s, primitive: e, [xe]: void 0 });
|
|
1985
|
-
return t.prototype.schema = r, r;
|
|
1986
|
-
}
|
|
1987
|
-
function _s(t) {
|
|
1988
|
-
return t >= 2 ** 63 || t < -9223372036854776e3 ? o(t, Tt, "constant") : Number.isInteger(t) ? (Number.isSafeInteger(t) || console.warn(`The integer ${t} exceeds the safe integer range and may have lost precision.`), o(t, Qe, "constant")) : o(t, Tt, "constant");
|
|
1989
|
-
}
|
|
1990
|
-
function ls(t) {
|
|
1991
|
-
return t.type === "abstractFloat" ? _ : t.type === "abstractInt" ? f : t;
|
|
1992
|
-
}
|
|
1993
|
-
function Oi(t) {
|
|
1994
|
-
return t.map((e) => o(e.value, ls(e.dataType), e.origin));
|
|
1995
|
-
}
|
|
1996
|
-
function ps(t) {
|
|
1997
|
-
if (tt(t)) return t;
|
|
1998
|
-
if (Be(t)) throw new Error("Cannot use refs (d.ref(...)) from the outer scope.");
|
|
1999
|
-
return Ut(t) || (X(t) || Ot(t) ? o(t, $e(t), "constant") : typeof t == "string" || typeof t == "function" || typeof t == "object" || typeof t == "symbol" || typeof t > "u" || t === null ? o(t, W, "constant") : typeof t == "number" ? _s(t) : typeof t == "boolean" ? o(t, d, "constant") : o(t, W, "constant"));
|
|
2000
|
-
}
|
|
2001
|
-
function $i(t) {
|
|
2002
|
-
let e = (...i) => {
|
|
2003
|
-
let n = i;
|
|
2004
|
-
if (!n.every((r) => J(r))) throw new q(`Called comptime function with runtime-known values: ${n.filter((r) => !J(r)).map((r) => `'${r.value}'`).join(", ")}`);
|
|
2005
|
-
return ps(t(...n.map((r) => r.value)));
|
|
2006
|
-
}, s = ((...i) => {
|
|
2007
|
-
let n = st();
|
|
2008
|
-
if (n?.mode.type === "codegen") {
|
|
2009
|
-
n.pushMode(new et());
|
|
2010
|
-
try {
|
|
2011
|
-
return e(...i);
|
|
2012
|
-
} finally {
|
|
2013
|
-
n.popMode("normal");
|
|
2014
|
-
}
|
|
2015
|
-
}
|
|
2016
|
-
return t(...i);
|
|
2017
|
-
});
|
|
2018
|
-
return s.toString = () => "comptime", s[Y] = t, s.$name = (i) => (N(t, i), s), Object.defineProperty(s, u, { value: { jsImpl: t, gpuImpl: e, argConversionHint: "keep" } }), s;
|
|
2019
|
-
}
|
|
2020
|
-
var h = class {
|
|
2021
|
-
constructor(t) {
|
|
2022
|
-
this.type = t;
|
|
2023
|
-
}
|
|
2024
|
-
[u] = !0;
|
|
2025
|
-
}, Z = { uint8: y, uint8x2: v, uint8x4: L, sint8: f, sint8x2: A, sint8x4: G, unorm8: _, unorm8x2: b, unorm8x4: V, snorm8: _, snorm8x2: b, snorm8x4: V, uint16: y, uint16x2: v, uint16x4: L, sint16: f, sint16x2: A, sint16x4: G, unorm16: _, unorm16x2: b, unorm16x4: V, snorm16: _, snorm16x2: b, snorm16x4: V, float16: _, float16x2: b, float16x4: V, float32: _, float32x2: b, float32x3: ae, float32x4: V, uint32: y, uint32x2: v, uint32x3: we, uint32x4: L, sint32: f, sint32x2: A, sint32x3: oe, sint32x4: G, "unorm10-10-10-2": V, "unorm8x4-bgra": V }, fs = new Set(Object.keys(Z)), Ni = new h("uint8"), ki = new h("uint8x2"), Pi = new h("uint8x4"), Si = new h("sint8"), ji = new h("sint8x2"), Fi = new h("sint8x4"), Mi = new h("unorm8"), Ci = new h("unorm8x2"), Ai = new h("unorm8x4"), Gi = new h("snorm8"), Li = new h("snorm8x2"), Ri = new h("snorm8x4"), Ui = new h("uint16"), Yi = new h("uint16x2"), Hi = new h("uint16x4"), Bi = new h("sint16"), Wi = new h("sint16x2"), Di = new h("sint16x4"), Ki = new h("unorm16"), Ji = new h("unorm16x2"), Zi = new h("unorm16x4"), Xi = new h("snorm16"), Qi = new h("snorm16x2"), qi = new h("snorm16x4"), tn = new h("float16"), en = new h("float16x2"), sn = new h("float16x4"), nn = new h("float32"), rn = new h("float32x2"), hn = new h("float32x3"), un = new h("float32x4"), cn = new h("uint32"), an = new h("uint32x2"), on = new h("uint32x3"), wn = new h("uint32x4"), yn = new h("sint32"), gn = new h("sint32x2"), xn = new h("sint32x3"), _n = new h("sint32x4"), ln = new h("unorm10-10-10-2"), pn = new h("unorm8x4-bgra");
|
|
2026
|
-
function fn(t) {
|
|
2027
|
-
return c(t) && fs.has(t?.type);
|
|
2028
|
-
}
|
|
2029
|
-
function Vs(t, e) {
|
|
2030
|
-
let s = t?.type, i = s in Z ? Z[s] : t;
|
|
2031
|
-
return typeof i != "function" ? e : e === void 0 ? i() : i(e);
|
|
2032
|
-
}
|
|
2033
|
-
function mt(t) {
|
|
2034
|
-
return ye(t, !1);
|
|
2035
|
-
}
|
|
2036
|
-
function Vn(t) {
|
|
2037
|
-
return ye(t, !0);
|
|
2038
|
-
}
|
|
2039
|
-
function ye(t, e) {
|
|
2040
|
-
let s = (i) => Object.fromEntries(Object.entries(t).map(([n, r]) => [n, Vs(r, i?.[n])]));
|
|
2041
|
-
return Object.setPrototypeOf(s, zs), s.propTypes = t, Object.defineProperty(s, u, { value: { isAbstruct: e } }), s;
|
|
2042
|
-
}
|
|
2043
|
-
var zs = { type: "struct", $name(t) {
|
|
2044
|
-
return N(this, t), this;
|
|
2045
|
-
}, toString() {
|
|
2046
|
-
return `struct:${E(this) ?? "<unnamed>"}`;
|
|
2047
|
-
} };
|
|
2048
|
-
function zn(t) {
|
|
2049
|
-
let e = String(t);
|
|
2050
|
-
if (e !== "[object Object]") return e;
|
|
2051
|
-
try {
|
|
2052
|
-
return JSON.stringify(t);
|
|
2053
|
-
} catch (s) {
|
|
2054
|
-
return console.error("Error parsing JSON:", s), "<invalid json>";
|
|
2055
|
-
}
|
|
2056
|
-
}
|
|
2057
|
-
function Et(t) {
|
|
2058
|
-
return X(t) || Ot(t) ? t.toString() : Array.isArray(t) ? `[${t.map(Et).join(", ")}]` : t && typeof t == "object" ? `{ ${Object.entries(t).map(([e, s]) => `${e}: ${Et(s)}`).join(", ")} }` : String(t);
|
|
2059
|
-
}
|
|
2060
|
-
var ms = /* @__PURE__ */ ((t) => (t.TOP_LEFT = "TOP_LEFT", t.TOP = "TOP", t.TOP_RIGHT = "TOP_RIGHT", t.LEFT = "LEFT", t.SELF = "SELF", t.RIGHT = "RIGHT", t.BOTTOM_LEFT = "BOTTOM_LEFT", t.BOTTOM = "BOTTOM", t.BOTTOM_RIGHT = "BOTTOM_RIGHT", t))(ms || {}), ds = /* @__PURE__ */ ((t) => (t.TOP = "TOP", t.LEFT = "LEFT", t.SELF = "SELF", t.RIGHT = "RIGHT", t.BOTTOM = "BOTTOM", t))(ds || {});
|
|
2061
|
-
const mn = {
|
|
2062
|
-
TOP_LEFT: { x: -1, y: -1 },
|
|
2063
|
-
TOP: { x: 0, y: -1 },
|
|
2064
|
-
TOP_RIGHT: { x: 1, y: -1 },
|
|
2065
|
-
LEFT: { x: -1, y: 0 },
|
|
2066
|
-
SELF: { x: 0, y: 0 },
|
|
2067
|
-
RIGHT: { x: 1, y: 0 },
|
|
2068
|
-
BOTTOM_LEFT: { x: -1, y: 1 },
|
|
2069
|
-
BOTTOM: { x: 0, y: 1 },
|
|
2070
|
-
BOTTOM_RIGHT: { x: 1, y: 1 }
|
|
2071
|
-
};
|
|
2072
|
-
var bs = /* @__PURE__ */ ((t) => (t[t.ELEMENT_ID = 0] = "ELEMENT_ID", t[t.POINT = 1] = "POINT", t))(bs || {}), vs = /* @__PURE__ */ ((t) => (t[t.NOOP = 0] = "NOOP", t[t.COUNT_ELEMENT = 1] = "COUNT_ELEMENT", t[t.COUNT_POINT = 2] = "COUNT_POINT", t[t.COUNT_KIND = 3] = "COUNT_KIND", t[t.IS_ELEMENT = 4] = "IS_ELEMENT", t[t.IS_POINT = 5] = "IS_POINT", t[t.IS_KIND = 6] = "IS_KIND", t[t.CHANCE = 7] = "CHANCE", t))(vs || {}), Ts = /* @__PURE__ */ ((t) => (t[t.ALL = 0] = "ALL", t[t.ANY = 1] = "ANY", t[t.ONE = 2] = "ONE", t[t.NONE = 3] = "NONE", t))(Ts || {});
|
|
2073
|
-
const dn = {
|
|
2074
|
-
all: 0,
|
|
2075
|
-
any: 1,
|
|
2076
|
-
one: 2,
|
|
2077
|
-
none: 3
|
|
2078
|
-
/* NONE */
|
|
2079
|
-
}, bn = (globalThis.__TYPEGPU_AUTONAME__ ?? ((t) => t))(mt({
|
|
2080
|
-
color: y,
|
|
2081
|
-
ruleStart: y,
|
|
2082
|
-
ruleEnd: y
|
|
2083
|
-
}), "GpuElement"), vn = (globalThis.__TYPEGPU_AUTONAME__ ?? ((t) => t))(mt({
|
|
2084
|
-
toType: y,
|
|
2085
|
-
toId: y,
|
|
2086
|
-
toNeighbor: v,
|
|
2087
|
-
accept: y,
|
|
2088
|
-
conditionsStart: y,
|
|
2089
|
-
conditionsEnd: y
|
|
2090
|
-
}), "GpuRule"), Tn = (globalThis.__TYPEGPU_AUTONAME__ ?? ((t) => t))(mt({
|
|
2091
|
-
opcode: y,
|
|
2092
|
-
checkId: y,
|
|
2093
|
-
countOrWithId: y,
|
|
2094
|
-
checkPointOrComparePoint: v,
|
|
2095
|
-
withPoint: v,
|
|
2096
|
-
chance: _
|
|
2097
|
-
}), "GpuCondition"), En = [8, 8];
|
|
2098
|
-
export {
|
|
2099
|
-
Oe as $,
|
|
2100
|
-
Ts as A,
|
|
2101
|
-
R as B,
|
|
2102
|
-
ds as C,
|
|
2103
|
-
Tt as D,
|
|
2104
|
-
o as E,
|
|
2105
|
-
oe as F,
|
|
2106
|
-
bn as G,
|
|
2107
|
-
W as H,
|
|
2108
|
-
$s as I,
|
|
2109
|
-
$i as J,
|
|
2110
|
-
y as K,
|
|
2111
|
-
Qe as L,
|
|
2112
|
-
Ee as M,
|
|
2113
|
-
xe as N,
|
|
2114
|
-
vs as O,
|
|
2115
|
-
we as P,
|
|
2116
|
-
dt as Q,
|
|
2117
|
-
Ii as R,
|
|
2118
|
-
ms as S,
|
|
2119
|
-
bs as T,
|
|
2120
|
-
Ks as U,
|
|
2121
|
-
Ns as V,
|
|
2122
|
-
Rs as W,
|
|
2123
|
-
$ as X,
|
|
2124
|
-
Ds as Y,
|
|
2125
|
-
hi as Z,
|
|
2126
|
-
I as _,
|
|
2127
|
-
vn as a,
|
|
2128
|
-
Hi as a$,
|
|
2129
|
-
de as a0,
|
|
2130
|
-
We as a1,
|
|
2131
|
-
d as a2,
|
|
2132
|
-
f as a3,
|
|
2133
|
-
J as a4,
|
|
2134
|
-
ps as a5,
|
|
2135
|
-
js as a6,
|
|
2136
|
-
Us as a7,
|
|
2137
|
-
Ss as a8,
|
|
2138
|
-
Fe as a9,
|
|
2139
|
-
ci as aA,
|
|
2140
|
-
gi as aB,
|
|
2141
|
-
ai as aC,
|
|
2142
|
-
wi as aD,
|
|
2143
|
-
yi as aE,
|
|
2144
|
-
oi as aF,
|
|
2145
|
-
bi as aG,
|
|
2146
|
-
Bi as aH,
|
|
2147
|
-
Wi as aI,
|
|
2148
|
-
Di as aJ,
|
|
2149
|
-
yn as aK,
|
|
2150
|
-
gn as aL,
|
|
2151
|
-
xn as aM,
|
|
2152
|
-
_n as aN,
|
|
2153
|
-
Si as aO,
|
|
2154
|
-
ji as aP,
|
|
2155
|
-
Fi as aQ,
|
|
2156
|
-
Xi as aR,
|
|
2157
|
-
Qi as aS,
|
|
2158
|
-
qi as aT,
|
|
2159
|
-
Gi as aU,
|
|
2160
|
-
Li as aV,
|
|
2161
|
-
Ri as aW,
|
|
2162
|
-
mt as aX,
|
|
2163
|
-
Ei as aY,
|
|
2164
|
-
Ui as aZ,
|
|
2165
|
-
Yi as a_,
|
|
2166
|
-
Vs as aa,
|
|
2167
|
-
Ys as ab,
|
|
2168
|
-
Ls as ac,
|
|
2169
|
-
fs as ad,
|
|
2170
|
-
zn as ae,
|
|
2171
|
-
Hs as af,
|
|
2172
|
-
be as ag,
|
|
2173
|
-
ve as ah,
|
|
2174
|
-
$t as ai,
|
|
2175
|
-
ks as aj,
|
|
2176
|
-
E as ak,
|
|
2177
|
-
N as al,
|
|
2178
|
-
rt as am,
|
|
2179
|
-
Is as an,
|
|
2180
|
-
tn as ao,
|
|
2181
|
-
en as ap,
|
|
2182
|
-
sn as aq,
|
|
2183
|
-
nn as ar,
|
|
2184
|
-
rn as as,
|
|
2185
|
-
hn as at,
|
|
2186
|
-
un as au,
|
|
2187
|
-
Z as av,
|
|
2188
|
-
Ws as aw,
|
|
2189
|
-
Ps as ax,
|
|
2190
|
-
Te as ay,
|
|
2191
|
-
fn as az,
|
|
2192
|
-
Tn as b,
|
|
2193
|
-
Oi as b$,
|
|
2194
|
-
cn as b0,
|
|
2195
|
-
an as b1,
|
|
2196
|
-
on as b2,
|
|
2197
|
-
wn as b3,
|
|
2198
|
-
Ni as b4,
|
|
2199
|
-
ki as b5,
|
|
2200
|
-
Pi as b6,
|
|
2201
|
-
ln as b7,
|
|
2202
|
-
Ki as b8,
|
|
2203
|
-
Ji as b9,
|
|
2204
|
-
Me as bA,
|
|
2205
|
-
Ce as bB,
|
|
2206
|
-
et as bC,
|
|
2207
|
-
Zs as bD,
|
|
2208
|
-
Ye as bE,
|
|
2209
|
-
c as bF,
|
|
2210
|
-
_i as bG,
|
|
2211
|
-
_s as bH,
|
|
2212
|
-
q as bI,
|
|
2213
|
-
He as bJ,
|
|
2214
|
-
it as bK,
|
|
2215
|
-
Xe as bL,
|
|
2216
|
-
Wt as bM,
|
|
2217
|
-
Js as bN,
|
|
2218
|
-
tt as bO,
|
|
2219
|
-
Ti as bP,
|
|
2220
|
-
Gs as bQ,
|
|
2221
|
-
Re as bR,
|
|
2222
|
-
xi as bS,
|
|
2223
|
-
It as bT,
|
|
2224
|
-
Yt as bU,
|
|
2225
|
-
di as bV,
|
|
2226
|
-
ii as bW,
|
|
2227
|
-
De as bX,
|
|
2228
|
-
Ut as bY,
|
|
2229
|
-
st as bZ,
|
|
2230
|
-
Vi as b_,
|
|
2231
|
-
Zi as ba,
|
|
2232
|
-
Mi as bb,
|
|
2233
|
-
Ci as bc,
|
|
2234
|
-
Ai as bd,
|
|
2235
|
-
pn as be,
|
|
2236
|
-
Fs as bf,
|
|
2237
|
-
Bs as bg,
|
|
2238
|
-
Ne as bh,
|
|
2239
|
-
Y as bi,
|
|
2240
|
-
pi as bj,
|
|
2241
|
-
ke as bk,
|
|
2242
|
-
kt as bl,
|
|
2243
|
-
ti as bm,
|
|
2244
|
-
Ms as bn,
|
|
2245
|
-
ui as bo,
|
|
2246
|
-
vt as bp,
|
|
2247
|
-
Vn as bq,
|
|
2248
|
-
li as br,
|
|
2249
|
-
mi as bs,
|
|
2250
|
-
Es as bt,
|
|
2251
|
-
Pt as bu,
|
|
2252
|
-
Bt as bv,
|
|
2253
|
-
ls as bw,
|
|
2254
|
-
Qs as bx,
|
|
2255
|
-
Ae as by,
|
|
2256
|
-
ge as bz,
|
|
2257
|
-
dn as c,
|
|
2258
|
-
Ge as c0,
|
|
2259
|
-
Se as c1,
|
|
2260
|
-
As as c2,
|
|
2261
|
-
Xs as c3,
|
|
2262
|
-
ri as c4,
|
|
2263
|
-
ei as c5,
|
|
2264
|
-
si as c6,
|
|
2265
|
-
qs as c7,
|
|
2266
|
-
fi as c8,
|
|
2267
|
-
Cs as c9,
|
|
2268
|
-
le as ca,
|
|
2269
|
-
pe as cb,
|
|
2270
|
-
Ve as cc,
|
|
2271
|
-
ze as cd,
|
|
2272
|
-
fe as ce,
|
|
2273
|
-
ni as cf,
|
|
2274
|
-
zi as cg,
|
|
2275
|
-
Et as ch,
|
|
2276
|
-
Be as ci,
|
|
2277
|
-
En as cj,
|
|
2278
|
-
ae as d,
|
|
2279
|
-
Os as e,
|
|
2280
|
-
A as f,
|
|
2281
|
-
b as g,
|
|
2282
|
-
G as h,
|
|
2283
|
-
X as i,
|
|
2284
|
-
L as j,
|
|
2285
|
-
k,
|
|
2286
|
-
v as l,
|
|
2287
|
-
Ot as m,
|
|
2288
|
-
mn as n,
|
|
2289
|
-
u as o,
|
|
2290
|
-
g as p,
|
|
2291
|
-
gs as q,
|
|
2292
|
-
ys as r,
|
|
2293
|
-
B as s,
|
|
2294
|
-
ws as t,
|
|
2295
|
-
xs as u,
|
|
2296
|
-
V as v,
|
|
2297
|
-
os as w,
|
|
2298
|
-
_ as x,
|
|
2299
|
-
vi as y,
|
|
2300
|
-
as as z
|
|
2301
|
-
};
|