typegpu 0.5.7 → 0.5.9
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/chunk-734H4JWF.js +2 -0
- package/chunk-734H4JWF.js.map +1 -0
- package/chunk-BJSN5UVV.cjs +41 -0
- package/chunk-BJSN5UVV.cjs.map +1 -0
- package/chunk-BZVU4Q6A.cjs +2 -0
- package/chunk-BZVU4Q6A.cjs.map +1 -0
- package/chunk-CDUKTYES.cjs +2 -0
- package/chunk-CDUKTYES.cjs.map +1 -0
- package/chunk-CGVYLGBG.js +2 -0
- package/chunk-CGVYLGBG.js.map +1 -0
- package/chunk-SWJVYRFM.js +41 -0
- package/chunk-SWJVYRFM.js.map +1 -0
- package/data/index.cjs +1 -1
- package/data/index.cjs.map +1 -1
- package/data/index.d.cts +4 -77
- package/data/index.d.ts +4 -77
- package/data/index.js +1 -1
- package/index.cjs +21 -20
- package/index.cjs.map +1 -1
- package/index.d.cts +5 -3
- package/index.d.ts +5 -3
- package/index.js +21 -20
- package/index.js.map +1 -1
- package/matrix-BULDDGYa.d.ts +122 -0
- package/matrix-BnXitNJ7.d.cts +122 -0
- package/package.json +2 -2
- package/std/index.cjs +1 -1
- package/std/index.cjs.map +1 -1
- package/std/index.d.cts +104 -17
- package/std/index.d.ts +104 -17
- package/std/index.js +1 -1
- package/std/index.js.map +1 -1
- package/{tgpuComputeFn-DH8_PcIR.d.cts → tgpuComputeFn-BxPDI5hQ.d.cts} +178 -95
- package/{tgpuComputeFn-DH8_PcIR.d.ts → tgpuComputeFn-BxPDI5hQ.d.ts} +178 -95
- package/chunk-5RYM4COI.js +0 -4
- package/chunk-5RYM4COI.js.map +0 -1
- package/chunk-FHOQ6WZE.cjs +0 -2
- package/chunk-FHOQ6WZE.cjs.map +0 -1
- package/chunk-ODKBWWHU.cjs +0 -4
- package/chunk-ODKBWWHU.cjs.map +0 -1
- package/chunk-SMTSXYNG.js +0 -2
- package/chunk-SMTSXYNG.js.map +0 -1
@@ -0,0 +1,122 @@
|
|
1
|
+
import { bp as Mat2x2f, bq as Mat3x3f, br as Mat4x4f, bm as m2x2f, bn as m3x3f, bo as m4x4f, cT as TgpuDualFn, by as v3f } from './tgpuComputeFn-BxPDI5hQ.js';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Returns a 2-by-2 identity matrix.
|
5
|
+
* @returns {m2x2f} The result matrix.
|
6
|
+
*/
|
7
|
+
declare const identity2: TgpuDualFn<() => m2x2f>;
|
8
|
+
/**
|
9
|
+
* Returns a 3-by-3 identity matrix.
|
10
|
+
* @returns {m3x3f} The result matrix.
|
11
|
+
*/
|
12
|
+
declare const identity3: TgpuDualFn<() => m3x3f>;
|
13
|
+
/**
|
14
|
+
* Returns a 4-by-4 identity matrix.
|
15
|
+
* @returns {m4x4f} The result matrix.
|
16
|
+
*/
|
17
|
+
declare const identity4: TgpuDualFn<() => m4x4f>;
|
18
|
+
/**
|
19
|
+
* Creates a 4-by-4 matrix which translates by the given vector v.
|
20
|
+
* @param {v3f} vector - The vector by which to translate.
|
21
|
+
* @returns {m4x4f} The translation matrix.
|
22
|
+
*/
|
23
|
+
declare const translation4: TgpuDualFn<(vector: v3f) => m4x4f>;
|
24
|
+
/**
|
25
|
+
* Creates a 4-by-4 matrix which scales in each dimension by an amount given by the corresponding entry in the given vector.
|
26
|
+
* @param {v3f} vector - A vector of three entries specifying the factor by which to scale in each dimension.
|
27
|
+
* @returns {m4x4f} The scaling matrix.
|
28
|
+
*/
|
29
|
+
declare const scaling4: TgpuDualFn<(vector: v3f) => m4x4f>;
|
30
|
+
/**
|
31
|
+
* Creates a 4-by-4 matrix which rotates around the x-axis by the given angle.
|
32
|
+
* @param {number} angle - The angle by which to rotate (in radians).
|
33
|
+
* @returns {m4x4f} The rotation matrix.
|
34
|
+
*/
|
35
|
+
declare const rotationX4: TgpuDualFn<(a: number) => m4x4f>;
|
36
|
+
/**
|
37
|
+
* Creates a 4-by-4 matrix which rotates around the y-axis by the given angle.
|
38
|
+
* @param {number} angle - The angle by which to rotate (in radians).
|
39
|
+
* @returns {m4x4f} The rotation matrix.
|
40
|
+
*/
|
41
|
+
declare const rotationY4: TgpuDualFn<(a: number) => m4x4f>;
|
42
|
+
/**
|
43
|
+
* Creates a 4-by-4 matrix which rotates around the z-axis by the given angle.
|
44
|
+
* @param {number} angle - The angle by which to rotate (in radians).
|
45
|
+
* @returns {m4x4f} The rotation matrix.
|
46
|
+
*/
|
47
|
+
declare const rotationZ4: TgpuDualFn<(a: number) => m4x4f>;
|
48
|
+
/**
|
49
|
+
* Schema representing mat2x2f - a matrix with 2 rows and 2 columns, with elements of type f32.
|
50
|
+
* Also a constructor function for this matrix type.
|
51
|
+
*
|
52
|
+
* @example
|
53
|
+
* const zero2x2 = mat2x2f(); // filled with zeros
|
54
|
+
*
|
55
|
+
* @example
|
56
|
+
* const mat = mat2x2f(0, 1, 2, 3);
|
57
|
+
* mat.columns[0] // vec2f(0, 1)
|
58
|
+
* mat.columns[1] // vec2f(2, 3)
|
59
|
+
*
|
60
|
+
* @example
|
61
|
+
* const mat = mat2x2f(
|
62
|
+
* vec2f(0, 1), // column 0
|
63
|
+
* vec2f(1, 2), // column 1
|
64
|
+
* );
|
65
|
+
*
|
66
|
+
* @example
|
67
|
+
* 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))
|
68
|
+
*/
|
69
|
+
declare const mat2x2f: Mat2x2f;
|
70
|
+
/**
|
71
|
+
* Schema representing mat3x3f - a matrix with 3 rows and 3 columns, with elements of type f32.
|
72
|
+
* Also a constructor function for this matrix type.
|
73
|
+
*
|
74
|
+
* @example
|
75
|
+
* const zero3x3 = mat3x3f(); // filled with zeros
|
76
|
+
*
|
77
|
+
* @example
|
78
|
+
* const mat = mat3x3f(0, 1, 2, 3, 4, 5, 6, 7, 8);
|
79
|
+
* mat.columns[0] // vec3f(0, 1, 2)
|
80
|
+
* mat.columns[1] // vec3f(3, 4, 5)
|
81
|
+
* mat.columns[2] // vec3f(6, 7, 8)
|
82
|
+
*
|
83
|
+
* @example
|
84
|
+
* const mat = mat3x3f(
|
85
|
+
* vec3f(0, 1, 2), // column 0
|
86
|
+
* vec3f(2, 3, 4), // column 1
|
87
|
+
* vec3f(5, 6, 7), // column 2
|
88
|
+
* );
|
89
|
+
*
|
90
|
+
* @example
|
91
|
+
* const buffer = root.createBuffer(d.mat3x3f, d.mat3x3f()); // buffer holding a d.mat3x3f value, with an initial value of mat3x3f filled with zeros
|
92
|
+
*/
|
93
|
+
declare const mat3x3f: Mat3x3f;
|
94
|
+
/**
|
95
|
+
* Schema representing mat4x4f - a matrix with 4 rows and 4 columns, with elements of type f32.
|
96
|
+
* Also a constructor function for this matrix type.
|
97
|
+
*
|
98
|
+
* @example
|
99
|
+
* const zero4x4 = mat4x4f(); // filled with zeros
|
100
|
+
*
|
101
|
+
* @example
|
102
|
+
* const mat = mat4x4f(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
|
103
|
+
* mat.columns[0] // vec4f(0, 1, 2, 3)
|
104
|
+
* mat.columns[1] // vec4f(4, 5, 6, 7)
|
105
|
+
* mat.columns[2] // vec4f(8, 9, 10, 11)
|
106
|
+
* mat.columns[3] // vec4f(12, 13, 14, 15)
|
107
|
+
*
|
108
|
+
* @example
|
109
|
+
* const mat = mat4x4f(
|
110
|
+
* vec4f(0, 1, 2, 3), // column 0
|
111
|
+
* vec4f(4, 5, 6, 7), // column 1
|
112
|
+
* vec4f(8, 9, 10, 11), // column 2
|
113
|
+
* vec4f(12, 13, 14, 15), // column 3
|
114
|
+
* );
|
115
|
+
*
|
116
|
+
* @example
|
117
|
+
* const buffer = root.createBuffer(d.mat4x4f, d.mat4x4f()); // buffer holding a d.mat4x4f value, with an initial value of mat4x4f filled with zeros
|
118
|
+
*/
|
119
|
+
declare const mat4x4f: Mat4x4f;
|
120
|
+
declare function matToArray(mat: m2x2f | m3x3f | m4x4f): number[];
|
121
|
+
|
122
|
+
export { mat3x3f as a, mat4x4f as b, matToArray as c, identity3 as d, identity4 as e, rotationY4 as f, rotationZ4 as g, identity2 as i, mat2x2f as m, rotationX4 as r, scaling4 as s, translation4 as t };
|
@@ -0,0 +1,122 @@
|
|
1
|
+
import { bp as Mat2x2f, bq as Mat3x3f, br as Mat4x4f, bm as m2x2f, bn as m3x3f, bo as m4x4f, cT as TgpuDualFn, by as v3f } from './tgpuComputeFn-BxPDI5hQ.cjs';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Returns a 2-by-2 identity matrix.
|
5
|
+
* @returns {m2x2f} The result matrix.
|
6
|
+
*/
|
7
|
+
declare const identity2: TgpuDualFn<() => m2x2f>;
|
8
|
+
/**
|
9
|
+
* Returns a 3-by-3 identity matrix.
|
10
|
+
* @returns {m3x3f} The result matrix.
|
11
|
+
*/
|
12
|
+
declare const identity3: TgpuDualFn<() => m3x3f>;
|
13
|
+
/**
|
14
|
+
* Returns a 4-by-4 identity matrix.
|
15
|
+
* @returns {m4x4f} The result matrix.
|
16
|
+
*/
|
17
|
+
declare const identity4: TgpuDualFn<() => m4x4f>;
|
18
|
+
/**
|
19
|
+
* Creates a 4-by-4 matrix which translates by the given vector v.
|
20
|
+
* @param {v3f} vector - The vector by which to translate.
|
21
|
+
* @returns {m4x4f} The translation matrix.
|
22
|
+
*/
|
23
|
+
declare const translation4: TgpuDualFn<(vector: v3f) => m4x4f>;
|
24
|
+
/**
|
25
|
+
* Creates a 4-by-4 matrix which scales in each dimension by an amount given by the corresponding entry in the given vector.
|
26
|
+
* @param {v3f} vector - A vector of three entries specifying the factor by which to scale in each dimension.
|
27
|
+
* @returns {m4x4f} The scaling matrix.
|
28
|
+
*/
|
29
|
+
declare const scaling4: TgpuDualFn<(vector: v3f) => m4x4f>;
|
30
|
+
/**
|
31
|
+
* Creates a 4-by-4 matrix which rotates around the x-axis by the given angle.
|
32
|
+
* @param {number} angle - The angle by which to rotate (in radians).
|
33
|
+
* @returns {m4x4f} The rotation matrix.
|
34
|
+
*/
|
35
|
+
declare const rotationX4: TgpuDualFn<(a: number) => m4x4f>;
|
36
|
+
/**
|
37
|
+
* Creates a 4-by-4 matrix which rotates around the y-axis by the given angle.
|
38
|
+
* @param {number} angle - The angle by which to rotate (in radians).
|
39
|
+
* @returns {m4x4f} The rotation matrix.
|
40
|
+
*/
|
41
|
+
declare const rotationY4: TgpuDualFn<(a: number) => m4x4f>;
|
42
|
+
/**
|
43
|
+
* Creates a 4-by-4 matrix which rotates around the z-axis by the given angle.
|
44
|
+
* @param {number} angle - The angle by which to rotate (in radians).
|
45
|
+
* @returns {m4x4f} The rotation matrix.
|
46
|
+
*/
|
47
|
+
declare const rotationZ4: TgpuDualFn<(a: number) => m4x4f>;
|
48
|
+
/**
|
49
|
+
* Schema representing mat2x2f - a matrix with 2 rows and 2 columns, with elements of type f32.
|
50
|
+
* Also a constructor function for this matrix type.
|
51
|
+
*
|
52
|
+
* @example
|
53
|
+
* const zero2x2 = mat2x2f(); // filled with zeros
|
54
|
+
*
|
55
|
+
* @example
|
56
|
+
* const mat = mat2x2f(0, 1, 2, 3);
|
57
|
+
* mat.columns[0] // vec2f(0, 1)
|
58
|
+
* mat.columns[1] // vec2f(2, 3)
|
59
|
+
*
|
60
|
+
* @example
|
61
|
+
* const mat = mat2x2f(
|
62
|
+
* vec2f(0, 1), // column 0
|
63
|
+
* vec2f(1, 2), // column 1
|
64
|
+
* );
|
65
|
+
*
|
66
|
+
* @example
|
67
|
+
* 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))
|
68
|
+
*/
|
69
|
+
declare const mat2x2f: Mat2x2f;
|
70
|
+
/**
|
71
|
+
* Schema representing mat3x3f - a matrix with 3 rows and 3 columns, with elements of type f32.
|
72
|
+
* Also a constructor function for this matrix type.
|
73
|
+
*
|
74
|
+
* @example
|
75
|
+
* const zero3x3 = mat3x3f(); // filled with zeros
|
76
|
+
*
|
77
|
+
* @example
|
78
|
+
* const mat = mat3x3f(0, 1, 2, 3, 4, 5, 6, 7, 8);
|
79
|
+
* mat.columns[0] // vec3f(0, 1, 2)
|
80
|
+
* mat.columns[1] // vec3f(3, 4, 5)
|
81
|
+
* mat.columns[2] // vec3f(6, 7, 8)
|
82
|
+
*
|
83
|
+
* @example
|
84
|
+
* const mat = mat3x3f(
|
85
|
+
* vec3f(0, 1, 2), // column 0
|
86
|
+
* vec3f(2, 3, 4), // column 1
|
87
|
+
* vec3f(5, 6, 7), // column 2
|
88
|
+
* );
|
89
|
+
*
|
90
|
+
* @example
|
91
|
+
* const buffer = root.createBuffer(d.mat3x3f, d.mat3x3f()); // buffer holding a d.mat3x3f value, with an initial value of mat3x3f filled with zeros
|
92
|
+
*/
|
93
|
+
declare const mat3x3f: Mat3x3f;
|
94
|
+
/**
|
95
|
+
* Schema representing mat4x4f - a matrix with 4 rows and 4 columns, with elements of type f32.
|
96
|
+
* Also a constructor function for this matrix type.
|
97
|
+
*
|
98
|
+
* @example
|
99
|
+
* const zero4x4 = mat4x4f(); // filled with zeros
|
100
|
+
*
|
101
|
+
* @example
|
102
|
+
* const mat = mat4x4f(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
|
103
|
+
* mat.columns[0] // vec4f(0, 1, 2, 3)
|
104
|
+
* mat.columns[1] // vec4f(4, 5, 6, 7)
|
105
|
+
* mat.columns[2] // vec4f(8, 9, 10, 11)
|
106
|
+
* mat.columns[3] // vec4f(12, 13, 14, 15)
|
107
|
+
*
|
108
|
+
* @example
|
109
|
+
* const mat = mat4x4f(
|
110
|
+
* vec4f(0, 1, 2, 3), // column 0
|
111
|
+
* vec4f(4, 5, 6, 7), // column 1
|
112
|
+
* vec4f(8, 9, 10, 11), // column 2
|
113
|
+
* vec4f(12, 13, 14, 15), // column 3
|
114
|
+
* );
|
115
|
+
*
|
116
|
+
* @example
|
117
|
+
* const buffer = root.createBuffer(d.mat4x4f, d.mat4x4f()); // buffer holding a d.mat4x4f value, with an initial value of mat4x4f filled with zeros
|
118
|
+
*/
|
119
|
+
declare const mat4x4f: Mat4x4f;
|
120
|
+
declare function matToArray(mat: m2x2f | m3x3f | m4x4f): number[];
|
121
|
+
|
122
|
+
export { mat3x3f as a, mat4x4f as b, matToArray as c, identity3 as d, identity4 as e, rotationY4 as f, rotationZ4 as g, identity2 as i, mat2x2f as m, rotationX4 as r, scaling4 as s, translation4 as t };
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "typegpu",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.5.
|
4
|
+
"version": "0.5.9",
|
5
5
|
"description": "A thin layer between JS and WebGPU/WGSL that improves development experience and allows for faster iteration.",
|
6
6
|
"license": "MIT",
|
7
7
|
"type": "module",
|
@@ -49,7 +49,7 @@
|
|
49
49
|
},
|
50
50
|
"homepage": "https://typegpu.com",
|
51
51
|
"dependencies": {
|
52
|
-
"tinyest": "~0.1.
|
52
|
+
"tinyest": "~0.1.1",
|
53
53
|
"typed-binary": "^4.3.1"
|
54
54
|
},
|
55
55
|
"main": "./index.js",
|
package/std/index.cjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkODKBWWHUcjs = require('../chunk-ODKBWWHU.cjs');var Ae=_chunkODKBWWHUcjs.N.call(void 0, ()=>{throw new Error("discard() can only be used on the GPU.")},()=>({value:"discard;",dataType:_chunkODKBWWHUcjs.t}));var K=e=>Math.sqrt(e.x**2+e.y**2),_=e=>Math.sqrt(e.x**2+e.y**2+e.z**2),W=e=>Math.sqrt(e.x**2+e.y**2+e.z**2+e.w**2),j=(e,t)=>e.x*t.x+e.y*t.y,X=(e,t)=>e.x*t.x+e.y*t.y+e.z*t.z,Z=(e,t)=>e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w,c=(e,t,n)=>Math.min(Math.max(t,e),n),z=e=>t=>_chunkODKBWWHUcjs.V.call(void 0, e(t.x),e(t.y)),h=e=>t=>_chunkODKBWWHUcjs.W.call(void 0, e(t.x),e(t.y)),P=e=>t=>_chunkODKBWWHUcjs.X.call(void 0, e(t.x),e(t.y)),H=e=>t=>_chunkODKBWWHUcjs.Y.call(void 0, e(t.x),e(t.y)),b=e=>t=>_chunkODKBWWHUcjs._.call(void 0, e(t.x),e(t.y),e(t.z)),M=e=>t=>_chunkODKBWWHUcjs.$.call(void 0, e(t.x),e(t.y),e(t.z)),C=e=>t=>_chunkODKBWWHUcjs.aa.call(void 0, e(t.x),e(t.y),e(t.z)),Q=e=>t=>_chunkODKBWWHUcjs.ba.call(void 0, e(t.x),e(t.y),e(t.z)),A=e=>t=>_chunkODKBWWHUcjs.da.call(void 0, e(t.x),e(t.y),e(t.z),e(t.w)),V=e=>t=>_chunkODKBWWHUcjs.ea.call(void 0, e(t.x),e(t.y),e(t.z),e(t.w)),G=e=>t=>_chunkODKBWWHUcjs.fa.call(void 0, e(t.x),e(t.y),e(t.z),e(t.w)),Y=e=>t=>_chunkODKBWWHUcjs.ga.call(void 0, e(t.x),e(t.y),e(t.z),e(t.w)),ee=e=>(t,n)=>_chunkODKBWWHUcjs.V.call(void 0, e(t.x,n.x),e(t.y,n.y)),te=e=>(t,n)=>_chunkODKBWWHUcjs.W.call(void 0, e(t.x,n.x),e(t.y,n.y)),le=e=>(t,n)=>_chunkODKBWWHUcjs.X.call(void 0, e(t.x,n.x),e(t.y,n.y)),xe=e=>(t,n)=>_chunkODKBWWHUcjs.Y.call(void 0, e(t.x,n.x),e(t.y,n.y)),ne=e=>(t,n)=>_chunkODKBWWHUcjs._.call(void 0, e(t.x,n.x),e(t.y,n.y),e(t.z,n.z)),ae=e=>(t,n)=>_chunkODKBWWHUcjs.$.call(void 0, e(t.x,n.x),e(t.y,n.y),e(t.z,n.z)),Te=e=>(t,n)=>_chunkODKBWWHUcjs.aa.call(void 0, e(t.x,n.x),e(t.y,n.y),e(t.z,n.z)),ie=e=>(t,n)=>_chunkODKBWWHUcjs.ba.call(void 0, e(t.x,n.x),e(t.y,n.y),e(t.z,n.z)),re=e=>(t,n)=>_chunkODKBWWHUcjs.da.call(void 0, e(t.x,n.x),e(t.y,n.y),e(t.z,n.z),e(t.w,n.w)),se=e=>(t,n)=>_chunkODKBWWHUcjs.ea.call(void 0, e(t.x,n.x),e(t.y,n.y),e(t.z,n.z),e(t.w,n.w)),we=e=>(t,n)=>_chunkODKBWWHUcjs.fa.call(void 0, e(t.x,n.x),e(t.y,n.y),e(t.z,n.z),e(t.w,n.w)),de=e=>(t,n)=>_chunkODKBWWHUcjs.ga.call(void 0, e(t.x,n.x),e(t.y,n.y),e(t.z,n.z),e(t.w,n.w)),s={eq:{vec2f:(e,t)=>_chunkODKBWWHUcjs.Z.call(void 0, e.x===t.x,e.y===t.y),vec2h:(e,t)=>_chunkODKBWWHUcjs.Z.call(void 0, e.x===t.x,e.y===t.y),vec2i:(e,t)=>_chunkODKBWWHUcjs.Z.call(void 0, e.x===t.x,e.y===t.y),vec2u:(e,t)=>_chunkODKBWWHUcjs.Z.call(void 0, e.x===t.x,e.y===t.y),"vec2<bool>":(e,t)=>_chunkODKBWWHUcjs.Z.call(void 0, e.x===t.x,e.y===t.y),vec3f:(e,t)=>_chunkODKBWWHUcjs.ca.call(void 0, e.x===t.x,e.y===t.y,e.z===t.z),vec3h:(e,t)=>_chunkODKBWWHUcjs.ca.call(void 0, e.x===t.x,e.y===t.y,e.z===t.z),vec3i:(e,t)=>_chunkODKBWWHUcjs.ca.call(void 0, e.x===t.x,e.y===t.y,e.z===t.z),vec3u:(e,t)=>_chunkODKBWWHUcjs.ca.call(void 0, e.x===t.x,e.y===t.y,e.z===t.z),"vec3<bool>":(e,t)=>_chunkODKBWWHUcjs.ca.call(void 0, e.x===t.x,e.y===t.y,e.z===t.z),vec4f:(e,t)=>_chunkODKBWWHUcjs.ha.call(void 0, e.x===t.x,e.y===t.y,e.z===t.z,e.w===t.w),vec4h:(e,t)=>_chunkODKBWWHUcjs.ha.call(void 0, e.x===t.x,e.y===t.y,e.z===t.z,e.w===t.w),vec4i:(e,t)=>_chunkODKBWWHUcjs.ha.call(void 0, e.x===t.x,e.y===t.y,e.z===t.z,e.w===t.w),vec4u:(e,t)=>_chunkODKBWWHUcjs.ha.call(void 0, e.x===t.x,e.y===t.y,e.z===t.z,e.w===t.w),"vec4<bool>":(e,t)=>_chunkODKBWWHUcjs.ha.call(void 0, e.x===t.x,e.y===t.y,e.z===t.z,e.w===t.w)},lt:{vec2f:(e,t)=>_chunkODKBWWHUcjs.Z.call(void 0, e.x<t.x,e.y<t.y),vec2h:(e,t)=>_chunkODKBWWHUcjs.Z.call(void 0, e.x<t.x,e.y<t.y),vec2i:(e,t)=>_chunkODKBWWHUcjs.Z.call(void 0, e.x<t.x,e.y<t.y),vec2u:(e,t)=>_chunkODKBWWHUcjs.Z.call(void 0, e.x<t.x,e.y<t.y),vec3f:(e,t)=>_chunkODKBWWHUcjs.ca.call(void 0, e.x<t.x,e.y<t.y,e.z<t.z),vec3h:(e,t)=>_chunkODKBWWHUcjs.ca.call(void 0, e.x<t.x,e.y<t.y,e.z<t.z),vec3i:(e,t)=>_chunkODKBWWHUcjs.ca.call(void 0, e.x<t.x,e.y<t.y,e.z<t.z),vec3u:(e,t)=>_chunkODKBWWHUcjs.ca.call(void 0, e.x<t.x,e.y<t.y,e.z<t.z),vec4f:(e,t)=>_chunkODKBWWHUcjs.ha.call(void 0, e.x<t.x,e.y<t.y,e.z<t.z,e.w<t.w),vec4h:(e,t)=>_chunkODKBWWHUcjs.ha.call(void 0, e.x<t.x,e.y<t.y,e.z<t.z,e.w<t.w),vec4i:(e,t)=>_chunkODKBWWHUcjs.ha.call(void 0, e.x<t.x,e.y<t.y,e.z<t.z,e.w<t.w),vec4u:(e,t)=>_chunkODKBWWHUcjs.ha.call(void 0, e.x<t.x,e.y<t.y,e.z<t.z,e.w<t.w)},or:{"vec2<bool>":(e,t)=>_chunkODKBWWHUcjs.Z.call(void 0, e.x||t.x,e.y||t.y),"vec3<bool>":(e,t)=>_chunkODKBWWHUcjs.ca.call(void 0, e.x||t.x,e.y||t.y,e.z||t.z),"vec4<bool>":(e,t)=>_chunkODKBWWHUcjs.ha.call(void 0, e.x||t.x,e.y||t.y,e.z||t.z,e.w||t.w)},all:{"vec2<bool>":e=>e.x&&e.y,"vec3<bool>":e=>e.x&&e.y&&e.z,"vec4<bool>":e=>e.x&&e.y&&e.z&&e.w},abs:{vec2f:z(Math.abs),vec2h:h(Math.abs),vec2i:P(Math.abs),vec2u:H(Math.abs),vec3f:b(Math.abs),vec3h:M(Math.abs),vec3i:C(Math.abs),vec3u:Q(Math.abs),vec4f:A(Math.abs),vec4h:V(Math.abs),vec4i:G(Math.abs),vec4u:Y(Math.abs)},atan2:{vec2f:ee(Math.atan2),vec2h:te(Math.atan2),vec3f:ne(Math.atan2),vec3h:ae(Math.atan2),vec4f:re(Math.atan2),vec4h:se(Math.atan2)},acos:{vec2f:z(Math.acos),vec2h:h(Math.acos),vec2i:P(Math.acos),vec2u:H(Math.acos),vec3f:b(Math.acos),vec3h:M(Math.acos),vec3i:C(Math.acos),vec3u:Q(Math.acos),vec4f:A(Math.acos),vec4h:V(Math.acos),vec4i:G(Math.acos),vec4u:Y(Math.acos)},asin:{vec2f:z(Math.asin),vec2h:h(Math.asin),vec2i:P(Math.asin),vec2u:H(Math.asin),vec3f:b(Math.asin),vec3h:M(Math.asin),vec3i:C(Math.asin),vec3u:Q(Math.asin),vec4f:A(Math.asin),vec4h:V(Math.asin),vec4i:G(Math.asin),vec4u:Y(Math.asin)},ceil:{vec2f:z(Math.ceil),vec2h:h(Math.ceil),vec3f:b(Math.ceil),vec3h:M(Math.ceil),vec4f:A(Math.ceil),vec4h:V(Math.ceil)},clamp:{vec2f:(e,t,n)=>_chunkODKBWWHUcjs.V.call(void 0, c(e.x,t.x,n.x),c(e.y,t.y,n.y)),vec2h:(e,t,n)=>_chunkODKBWWHUcjs.W.call(void 0, c(e.x,t.x,n.x),c(e.y,t.y,n.y)),vec2i:(e,t,n)=>_chunkODKBWWHUcjs.X.call(void 0, c(e.x,t.x,n.x),c(e.y,t.y,n.y)),vec2u:(e,t,n)=>_chunkODKBWWHUcjs.Y.call(void 0, c(e.x,t.x,n.x),c(e.y,t.y,n.y)),vec3f:(e,t,n)=>_chunkODKBWWHUcjs._.call(void 0, c(e.x,t.x,n.x),c(e.y,t.y,n.y),c(e.z,t.z,n.z)),vec3h:(e,t,n)=>_chunkODKBWWHUcjs.$.call(void 0, c(e.x,t.x,n.x),c(e.y,t.y,n.y),c(e.z,t.z,n.z)),vec3i:(e,t,n)=>_chunkODKBWWHUcjs.aa.call(void 0, c(e.x,t.x,n.x),c(e.y,t.y,n.y),c(e.z,t.z,n.z)),vec3u:(e,t,n)=>_chunkODKBWWHUcjs.ba.call(void 0, c(e.x,t.x,n.x),c(e.y,t.y,n.y),c(e.z,t.z,n.z)),vec4f:(e,t,n)=>_chunkODKBWWHUcjs.da.call(void 0, c(e.x,t.x,n.x),c(e.y,t.y,n.y),c(e.z,t.z,n.z),c(e.w,t.w,n.w)),vec4h:(e,t,n)=>_chunkODKBWWHUcjs.ea.call(void 0, c(e.x,t.x,n.x),c(e.y,t.y,n.y),c(e.z,t.z,n.z),c(e.w,t.w,n.w)),vec4i:(e,t,n)=>_chunkODKBWWHUcjs.fa.call(void 0, c(e.x,t.x,n.x),c(e.y,t.y,n.y),c(e.z,t.z,n.z),c(e.w,t.w,n.w)),vec4u:(e,t,n)=>_chunkODKBWWHUcjs.ga.call(void 0, c(e.x,t.x,n.x),c(e.y,t.y,n.y),c(e.z,t.z,n.z),c(e.w,t.w,n.w))},length:{vec2f:K,vec2h:K,vec3f:_,vec3h:_,vec4f:W,vec4h:W},add:{vec2f:(e,t)=>_chunkODKBWWHUcjs.V.call(void 0, e.x+t.x,e.y+t.y),vec2h:(e,t)=>_chunkODKBWWHUcjs.W.call(void 0, e.x+t.x,e.y+t.y),vec2i:(e,t)=>_chunkODKBWWHUcjs.X.call(void 0, e.x+t.x,e.y+t.y),vec2u:(e,t)=>_chunkODKBWWHUcjs.Y.call(void 0, e.x+t.x,e.y+t.y),vec3f:(e,t)=>_chunkODKBWWHUcjs._.call(void 0, e.x+t.x,e.y+t.y,e.z+t.z),vec3h:(e,t)=>_chunkODKBWWHUcjs.$.call(void 0, e.x+t.x,e.y+t.y,e.z+t.z),vec3i:(e,t)=>_chunkODKBWWHUcjs.aa.call(void 0, e.x+t.x,e.y+t.y,e.z+t.z),vec3u:(e,t)=>_chunkODKBWWHUcjs.ba.call(void 0, e.x+t.x,e.y+t.y,e.z+t.z),vec4f:(e,t)=>_chunkODKBWWHUcjs.da.call(void 0, e.x+t.x,e.y+t.y,e.z+t.z,e.w+t.w),vec4h:(e,t)=>_chunkODKBWWHUcjs.ea.call(void 0, e.x+t.x,e.y+t.y,e.z+t.z,e.w+t.w),vec4i:(e,t)=>_chunkODKBWWHUcjs.fa.call(void 0, e.x+t.x,e.y+t.y,e.z+t.z,e.w+t.w),vec4u:(e,t)=>_chunkODKBWWHUcjs.ga.call(void 0, e.x+t.x,e.y+t.y,e.z+t.z,e.w+t.w)},sub:{vec2f:(e,t)=>_chunkODKBWWHUcjs.V.call(void 0, e.x-t.x,e.y-t.y),vec2h:(e,t)=>_chunkODKBWWHUcjs.W.call(void 0, e.x-t.x,e.y-t.y),vec2i:(e,t)=>_chunkODKBWWHUcjs.X.call(void 0, e.x-t.x,e.y-t.y),vec2u:(e,t)=>_chunkODKBWWHUcjs.Y.call(void 0, e.x-t.x,e.y-t.y),vec3f:(e,t)=>_chunkODKBWWHUcjs._.call(void 0, e.x-t.x,e.y-t.y,e.z-t.z),vec3h:(e,t)=>_chunkODKBWWHUcjs.$.call(void 0, e.x-t.x,e.y-t.y,e.z-t.z),vec3i:(e,t)=>_chunkODKBWWHUcjs.aa.call(void 0, e.x-t.x,e.y-t.y,e.z-t.z),vec3u:(e,t)=>_chunkODKBWWHUcjs.ba.call(void 0, e.x-t.x,e.y-t.y,e.z-t.z),vec4f:(e,t)=>_chunkODKBWWHUcjs.da.call(void 0, e.x-t.x,e.y-t.y,e.z-t.z,e.w-t.w),vec4h:(e,t)=>_chunkODKBWWHUcjs.ea.call(void 0, e.x-t.x,e.y-t.y,e.z-t.z,e.w-t.w),vec4i:(e,t)=>_chunkODKBWWHUcjs.fa.call(void 0, e.x-t.x,e.y-t.y,e.z-t.z,e.w-t.w),vec4u:(e,t)=>_chunkODKBWWHUcjs.ga.call(void 0, e.x-t.x,e.y-t.y,e.z-t.z,e.w-t.w)},mulSxV:{vec2f:(e,t)=>_chunkODKBWWHUcjs.V.call(void 0, e*t.x,e*t.y),vec2h:(e,t)=>_chunkODKBWWHUcjs.W.call(void 0, e*t.x,e*t.y),vec2i:(e,t)=>_chunkODKBWWHUcjs.X.call(void 0, e*t.x,e*t.y),vec2u:(e,t)=>_chunkODKBWWHUcjs.Y.call(void 0, e*t.x,e*t.y),vec3f:(e,t)=>_chunkODKBWWHUcjs._.call(void 0, e*t.x,e*t.y,e*t.z),vec3h:(e,t)=>_chunkODKBWWHUcjs.$.call(void 0, e*t.x,e*t.y,e*t.z),vec3i:(e,t)=>_chunkODKBWWHUcjs.aa.call(void 0, e*t.x,e*t.y,e*t.z),vec3u:(e,t)=>_chunkODKBWWHUcjs.ba.call(void 0, e*t.x,e*t.y,e*t.z),vec4f:(e,t)=>_chunkODKBWWHUcjs.da.call(void 0, e*t.x,e*t.y,e*t.z,e*t.w),vec4h:(e,t)=>_chunkODKBWWHUcjs.ea.call(void 0, e*t.x,e*t.y,e*t.z,e*t.w),vec4i:(e,t)=>_chunkODKBWWHUcjs.fa.call(void 0, e*t.x,e*t.y,e*t.z,e*t.w),vec4u:(e,t)=>_chunkODKBWWHUcjs.ga.call(void 0, e*t.x,e*t.y,e*t.z,e*t.w),mat2x2f:(e,t)=>{let n=t.columns;return _chunkODKBWWHUcjs.ja.call(void 0, e*n[0].x,e*n[0].y,e*n[1].x,e*n[1].y)},mat3x3f:(e,t)=>{let n=t.columns;return _chunkODKBWWHUcjs.ka.call(void 0, e*n[0].x,e*n[0].y,e*n[0].z,e*n[1].x,e*n[1].y,e*n[1].z,e*n[2].x,e*n[2].y,e*n[2].z)},mat4x4f:(e,t)=>{let n=t.columns;return _chunkODKBWWHUcjs.la.call(void 0, e*n[0].x,e*n[0].y,e*n[0].z,e*n[0].w,e*n[1].x,e*n[1].y,e*n[1].z,e*n[1].w,e*n[2].x,e*n[2].y,e*n[2].z,e*n[2].w,e*n[3].x,e*n[3].y,e*n[3].z,e*n[3].w)}},mulVxV:{vec2f:(e,t)=>_chunkODKBWWHUcjs.V.call(void 0, e.x*t.x,e.y*t.y),vec2h:(e,t)=>_chunkODKBWWHUcjs.W.call(void 0, e.x*t.x,e.y*t.y),vec2i:(e,t)=>_chunkODKBWWHUcjs.X.call(void 0, e.x*t.x,e.y*t.y),vec2u:(e,t)=>_chunkODKBWWHUcjs.Y.call(void 0, e.x*t.x,e.y*t.y),vec3f:(e,t)=>_chunkODKBWWHUcjs._.call(void 0, e.x*t.x,e.y*t.y,e.z*t.z),vec3h:(e,t)=>_chunkODKBWWHUcjs.$.call(void 0, e.x*t.x,e.y*t.y,e.z*t.z),vec3i:(e,t)=>_chunkODKBWWHUcjs.aa.call(void 0, e.x*t.x,e.y*t.y,e.z*t.z),vec3u:(e,t)=>_chunkODKBWWHUcjs.ba.call(void 0, e.x*t.x,e.y*t.y,e.z*t.z),vec4f:(e,t)=>_chunkODKBWWHUcjs.da.call(void 0, e.x*t.x,e.y*t.y,e.z*t.z,e.w*t.w),vec4h:(e,t)=>_chunkODKBWWHUcjs.ea.call(void 0, e.x*t.x,e.y*t.y,e.z*t.z,e.w*t.w),vec4i:(e,t)=>_chunkODKBWWHUcjs.fa.call(void 0, e.x*t.x,e.y*t.y,e.z*t.z,e.w*t.w),vec4u:(e,t)=>_chunkODKBWWHUcjs.ga.call(void 0, e.x*t.x,e.y*t.y,e.z*t.z,e.w*t.w),mat2x2f:(e,t)=>{let n=e.columns,a=t.columns;return _chunkODKBWWHUcjs.ja.call(void 0, n[0].x*a[0].x+n[1].x*a[0].y,n[0].y*a[0].x+n[1].y*a[0].y,n[0].x*a[1].x+n[1].x*a[1].y,n[0].y*a[1].x+n[1].y*a[1].y)},mat3x3f:(e,t)=>{let n=e.columns,a=t.columns;return _chunkODKBWWHUcjs.ka.call(void 0, n[0].x*a[0].x+n[1].x*a[0].y+n[2].x*a[0].z,n[0].y*a[0].x+n[1].y*a[0].y+n[2].y*a[0].z,n[0].z*a[0].x+n[1].z*a[0].y+n[2].z*a[0].z,n[0].x*a[1].x+n[1].x*a[1].y+n[2].x*a[1].z,n[0].y*a[1].x+n[1].y*a[1].y+n[2].y*a[1].z,n[0].z*a[1].x+n[1].z*a[1].y+n[2].z*a[1].z,n[0].x*a[2].x+n[1].x*a[2].y+n[2].x*a[2].z,n[0].y*a[2].x+n[1].y*a[2].y+n[2].y*a[2].z,n[0].z*a[2].x+n[1].z*a[2].y+n[2].z*a[2].z)},mat4x4f:(e,t)=>{let n=e.columns,a=t.columns;return _chunkODKBWWHUcjs.la.call(void 0, n[0].x*a[0].x+n[1].x*a[0].y+n[2].x*a[0].z+n[3].x*a[0].w,n[0].y*a[0].x+n[1].y*a[0].y+n[2].y*a[0].z+n[3].y*a[0].w,n[0].z*a[0].x+n[1].z*a[0].y+n[2].z*a[0].z+n[3].z*a[0].w,n[0].w*a[0].x+n[1].w*a[0].y+n[2].w*a[0].z+n[3].w*a[0].w,n[0].x*a[1].x+n[1].x*a[1].y+n[2].x*a[1].z+n[3].x*a[1].w,n[0].y*a[1].x+n[1].y*a[1].y+n[2].y*a[1].z+n[3].y*a[1].w,n[0].z*a[1].x+n[1].z*a[1].y+n[2].z*a[1].z+n[3].z*a[1].w,n[0].w*a[1].x+n[1].w*a[1].y+n[2].w*a[1].z+n[3].w*a[1].w,n[0].x*a[2].x+n[1].x*a[2].y+n[2].x*a[2].z+n[3].x*a[2].w,n[0].y*a[2].x+n[1].y*a[2].y+n[2].y*a[2].z+n[3].y*a[2].w,n[0].z*a[2].x+n[1].z*a[2].y+n[2].z*a[2].z+n[3].z*a[2].w,n[0].w*a[2].x+n[1].w*a[2].y+n[2].w*a[2].z+n[3].w*a[2].w,n[0].x*a[3].x+n[1].x*a[3].y+n[2].x*a[3].z+n[3].x*a[3].w,n[0].y*a[3].x+n[1].y*a[3].y+n[2].y*a[3].z+n[3].y*a[3].w,n[0].z*a[3].x+n[1].z*a[3].y+n[2].z*a[3].z+n[3].z*a[3].w,n[0].w*a[3].x+n[1].w*a[3].y+n[2].w*a[3].z+n[3].w*a[3].w)}},mulMxV:{mat2x2f:(e,t)=>{let n=e.columns;return _chunkODKBWWHUcjs.V.call(void 0, n[0].x*t.x+n[1].x*t.y,n[0].y*t.x+n[1].y*t.y)},mat3x3f:(e,t)=>{let n=e.columns;return _chunkODKBWWHUcjs._.call(void 0, n[0].x*t.x+n[1].x*t.y+n[2].x*t.z,n[0].y*t.x+n[1].y*t.y+n[2].y*t.z,n[0].z*t.x+n[1].z*t.y+n[2].z*t.z)},mat4x4f:(e,t)=>{let n=e.columns;return _chunkODKBWWHUcjs.da.call(void 0, n[0].x*t.x+n[1].x*t.y+n[2].x*t.z+n[3].x*t.w,n[0].y*t.x+n[1].y*t.y+n[2].y*t.z+n[3].y*t.w,n[0].z*t.x+n[1].z*t.y+n[2].z*t.z+n[3].z*t.w,n[0].w*t.x+n[1].w*t.y+n[2].w*t.z+n[3].w*t.w)}},mulVxM:{mat2x2f:(e,t)=>{let n=t.columns;return _chunkODKBWWHUcjs.V.call(void 0, e.x*n[0].x+e.y*n[0].y,e.x*n[1].x+e.y*n[1].y)},mat3x3f:(e,t)=>{let n=t.columns;return _chunkODKBWWHUcjs._.call(void 0, e.x*n[0].x+e.y*n[0].y+e.z*n[0].z,e.x*n[1].x+e.y*n[1].y+e.z*n[1].z,e.x*n[2].x+e.y*n[2].y+e.z*n[2].z)},mat4x4f:(e,t)=>{let n=t.columns;return _chunkODKBWWHUcjs.da.call(void 0, e.x*n[0].x+e.y*n[0].y+e.z*n[0].z+e.w*n[0].w,e.x*n[1].x+e.y*n[1].y+e.z*n[1].z+e.w*n[1].w,e.x*n[2].x+e.y*n[2].y+e.z*n[2].z+e.w*n[2].w,e.x*n[3].x+e.y*n[3].y+e.z*n[3].z+e.w*n[3].w)}},dot:{vec2f:j,vec2h:j,vec2i:j,vec2u:j,vec3f:X,vec3h:X,vec3i:X,vec3u:X,vec4f:Z,vec4h:Z,vec4i:Z,vec4u:Z},normalize:{vec2f:e=>{let t=K(e);return _chunkODKBWWHUcjs.V.call(void 0, e.x/t,e.y/t)},vec2h:e=>{let t=K(e);return _chunkODKBWWHUcjs.W.call(void 0, e.x/t,e.y/t)},vec2i:e=>{let t=K(e);return _chunkODKBWWHUcjs.X.call(void 0, e.x/t,e.y/t)},vec2u:e=>{let t=K(e);return _chunkODKBWWHUcjs.Y.call(void 0, e.x/t,e.y/t)},vec3f:e=>{let t=_(e);return _chunkODKBWWHUcjs._.call(void 0, e.x/t,e.y/t,e.z/t)},vec3h:e=>{let t=_(e);return _chunkODKBWWHUcjs.$.call(void 0, e.x/t,e.y/t,e.z/t)},vec3i:e=>{let t=_(e);return _chunkODKBWWHUcjs.aa.call(void 0, e.x/t,e.y/t,e.z/t)},vec3u:e=>{let t=_(e);return _chunkODKBWWHUcjs.ba.call(void 0, e.x/t,e.y/t,e.z/t)},vec4f:e=>{let t=W(e);return _chunkODKBWWHUcjs.da.call(void 0, e.x/t,e.y/t,e.z/t,e.w/t)},vec4h:e=>{let t=W(e);return _chunkODKBWWHUcjs.ea.call(void 0, e.x/t,e.y/t,e.z/t,e.w/t)},vec4i:e=>{let t=W(e);return _chunkODKBWWHUcjs.fa.call(void 0, e.x/t,e.y/t,e.z/t,e.w/t)},vec4u:e=>{let t=W(e);return _chunkODKBWWHUcjs.ga.call(void 0, e.x/t,e.y/t,e.z/t,e.w/t)}},cross:{vec3f:(e,t)=>_chunkODKBWWHUcjs._.call(void 0, e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x),vec3h:(e,t)=>_chunkODKBWWHUcjs.$.call(void 0, e.y*t.z-e.z*t.y,e.z*t.x-e.x*t.z,e.x*t.y-e.y*t.x)},floor:{vec2f:z(Math.floor),vec2h:h(Math.floor),vec3f:b(Math.floor),vec3h:M(Math.floor),vec4f:A(Math.floor),vec4h:V(Math.floor)},max:{vec2f:ee(Math.max),vec2h:te(Math.max),vec2i:le(Math.max),vec2u:xe(Math.max),vec3f:ne(Math.max),vec3h:ae(Math.max),vec3i:Te(Math.max),vec3u:ie(Math.max),vec4f:re(Math.max),vec4h:se(Math.max),vec4i:we(Math.max),vec4u:de(Math.max)},min:{vec2f:ee(Math.min),vec2h:te(Math.min),vec2i:le(Math.min),vec2u:xe(Math.min),vec3f:ne(Math.min),vec3h:ae(Math.min),vec3i:Te(Math.min),vec3u:ie(Math.min),vec4f:re(Math.min),vec4h:se(Math.min),vec4i:we(Math.min),vec4u:de(Math.min)},pow:{vec2f:(e,t)=>_chunkODKBWWHUcjs.V.call(void 0, e.x**t.x,e.y**t.y),vec2h:(e,t)=>_chunkODKBWWHUcjs.W.call(void 0, e.x**t.x,e.y**t.y),vec3f:(e,t)=>_chunkODKBWWHUcjs._.call(void 0, e.x**t.x,e.y**t.y,e.z**t.z),vec3h:(e,t)=>_chunkODKBWWHUcjs.$.call(void 0, e.x**t.x,e.y**t.y,e.z**t.z),vec4f:(e,t)=>_chunkODKBWWHUcjs.da.call(void 0, e.x**t.x,e.y**t.y,e.z**t.z,e.w**t.w),vec4h:(e,t)=>_chunkODKBWWHUcjs.ea.call(void 0, e.x**t.x,e.y**t.y,e.z**t.z,e.w**t.w)},sign:{vec2f:z(Math.sign),vec2h:h(Math.sign),vec2i:P(Math.sign),vec3f:b(Math.sign),vec3h:M(Math.sign),vec3i:C(Math.sign),vec4f:A(Math.sign),vec4h:V(Math.sign),vec4i:G(Math.sign)},sqrt:{vec2f:z(Math.sqrt),vec2h:h(Math.sqrt),vec3f:b(Math.sqrt),vec3h:M(Math.sqrt),vec4f:A(Math.sqrt),vec4h:V(Math.sqrt)},div:{vec2f:ee((e,t)=>e/t),vec2h:te((e,t)=>e/t),vec2i:le((e,t)=>e/t),vec2u:xe((e,t)=>e/t),vec3f:ne((e,t)=>e/t),vec3h:ae((e,t)=>e/t),vec3i:Te((e,t)=>e/t),vec3u:ie((e,t)=>e/t),vec4f:re((e,t)=>e/t),vec4h:se((e,t)=>e/t),vec4i:we((e,t)=>e/t),vec4u:de((e,t)=>e/t)},mix:{vec2f:(e,t,n)=>typeof n=="number"?_chunkODKBWWHUcjs.V.call(void 0, e.x*(1-n)+t.x*n,e.y*(1-n)+t.y*n):_chunkODKBWWHUcjs.V.call(void 0, e.x*(1-n.x)+t.x*n.x,e.y*(1-n.y)+t.y*n.y),vec2h:(e,t,n)=>typeof n=="number"?_chunkODKBWWHUcjs.W.call(void 0, e.x*(1-n)+t.x*n,e.y*(1-n)+t.y*n):_chunkODKBWWHUcjs.W.call(void 0, e.x*(1-n.x)+t.x*n.x,e.y*(1-n.y)+t.y*n.y),vec3f:(e,t,n)=>typeof n=="number"?_chunkODKBWWHUcjs._.call(void 0, e.x*(1-n)+t.x*n,e.y*(1-n)+t.y*n,e.z*(1-n)+t.z*n):_chunkODKBWWHUcjs._.call(void 0, e.x*(1-n.x)+t.x*n.x,e.y*(1-n.y)+t.y*n.y,e.z*(1-n.z)+t.z*n.z),vec3h:(e,t,n)=>typeof n=="number"?_chunkODKBWWHUcjs.$.call(void 0, e.x*(1-n)+t.x*n,e.y*(1-n)+t.y*n,e.z*(1-n)+t.z*n):_chunkODKBWWHUcjs.$.call(void 0, e.x*(1-n.x)+t.x*n.x,e.y*(1-n.y)+t.y*n.y,e.z*(1-n.z)+t.z*n.z),vec4f:(e,t,n)=>typeof n=="number"?_chunkODKBWWHUcjs.da.call(void 0, e.x*(1-n)+t.x*n,e.y*(1-n)+t.y*n,e.z*(1-n)+t.z*n,e.w*(1-n)+t.w*n):_chunkODKBWWHUcjs.da.call(void 0, e.x*(1-n.x)+t.x*n.x,e.y*(1-n.y)+t.y*n.y,e.z*(1-n.z)+t.z*n.z,e.w*(1-n.w)+t.w*n.w),vec4h:(e,t,n)=>typeof n=="number"?_chunkODKBWWHUcjs.ea.call(void 0, e.x*(1-n)+t.x*n,e.y*(1-n)+t.y*n,e.z*(1-n)+t.z*n,e.w*(1-n)+t.w*n):_chunkODKBWWHUcjs.ea.call(void 0, e.x*(1-n.x)+t.x*n.x,e.y*(1-n.y)+t.y*n.y,e.z*(1-n.z)+t.z*n.z,e.w*(1-n.w)+t.w*n.w)},sin:{vec2f:z(Math.sin),vec2h:h(Math.sin),vec3f:b(Math.sin),vec3h:M(Math.sin),vec4f:A(Math.sin),vec4h:V(Math.sin)},cos:{vec2f:z(Math.cos),vec2h:h(Math.cos),vec3f:b(Math.cos),vec3h:M(Math.cos),vec4f:A(Math.cos),vec4h:V(Math.cos)},exp:{vec2f:z(Math.exp),vec2h:h(Math.exp),vec3f:b(Math.exp),vec3h:M(Math.exp),vec4f:A(Math.exp),vec4h:V(Math.exp)},fract:{vec2f:z(e=>e-Math.floor(e)),vec2h:h(e=>e-Math.floor(e)),vec3f:b(e=>e-Math.floor(e)),vec3h:M(e=>e-Math.floor(e)),vec4f:A(e=>e-Math.floor(e)),vec4h:V(e=>e-Math.floor(e))},isCloseToZero:{vec2f:(e,t)=>Math.abs(e.x)<=t&&Math.abs(e.y)<=t,vec2h:(e,t)=>Math.abs(e.x)<=t&&Math.abs(e.y)<=t,vec3f:(e,t)=>Math.abs(e.x)<=t&&Math.abs(e.y)<=t&&Math.abs(e.z)<=t,vec3h:(e,t)=>Math.abs(e.x)<=t&&Math.abs(e.y)<=t&&Math.abs(e.z)<=t,vec4f:(e,t)=>Math.abs(e.x)<=t&&Math.abs(e.y)<=t&&Math.abs(e.z)<=t&&Math.abs(e.w)<=t,vec4h:(e,t)=>Math.abs(e.x)<=t&&Math.abs(e.y)<=t&&Math.abs(e.z)<=t&&Math.abs(e.w)<=t},neg:{vec2f:z(e=>-e),vec2h:h(e=>-e),vec2i:P(e=>-e),vec2u:H(e=>-e),"vec2<bool>":e=>_chunkODKBWWHUcjs.Z.call(void 0, !e.x,!e.y),vec3f:b(e=>-e),vec3h:M(e=>-e),vec3i:C(e=>-e),vec3u:Q(e=>-e),"vec3<bool>":e=>_chunkODKBWWHUcjs.ca.call(void 0, !e.x,!e.y,!e.z),vec4f:A(e=>-e),vec4h:V(e=>-e),vec4i:G(e=>-e),vec4u:Y(e=>-e),"vec4<bool>":e=>_chunkODKBWWHUcjs.ha.call(void 0, !e.x,!e.y,!e.z,!e.w)},select:{vec2f:(e,t,n)=>_chunkODKBWWHUcjs.V.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y),vec2h:(e,t,n)=>_chunkODKBWWHUcjs.W.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y),vec2i:(e,t,n)=>_chunkODKBWWHUcjs.X.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y),vec2u:(e,t,n)=>_chunkODKBWWHUcjs.Y.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y),"vec2<bool>":(e,t,n)=>_chunkODKBWWHUcjs.Z.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y),vec3f:(e,t,n)=>_chunkODKBWWHUcjs._.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y,n.z?t.z:e.z),vec3h:(e,t,n)=>_chunkODKBWWHUcjs.$.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y,n.z?t.z:e.z),vec3i:(e,t,n)=>_chunkODKBWWHUcjs.aa.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y,n.z?t.z:e.z),vec3u:(e,t,n)=>_chunkODKBWWHUcjs.ba.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y,n.z?t.z:e.z),"vec3<bool>":(e,t,n)=>_chunkODKBWWHUcjs.ca.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y,n.z?t.z:e.z),vec4f:(e,t,n)=>_chunkODKBWWHUcjs.da.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y,n.z?t.z:e.z,n.w?t.w:e.w),vec4h:(e,t,n)=>_chunkODKBWWHUcjs.ea.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y,n.z?t.z:e.z,n.w?t.w:e.w),vec4i:(e,t,n)=>_chunkODKBWWHUcjs.fa.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y,n.z?t.z:e.z,n.w?t.w:e.w),vec4u:(e,t,n)=>_chunkODKBWWHUcjs.ga.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y,n.z?t.z:e.z,n.w?t.w:e.w),"vec4<bool>":(e,t,n)=>_chunkODKBWWHUcjs.ha.call(void 0, n.x?t.x:e.x,n.y?t.y:e.y,n.z?t.z:e.z,n.w?t.w:e.w)}};function E(e){let t=e.dataType.type;return t==="abstractInt"||t==="abstractFloat"||t==="f32"||t==="f16"||t==="i32"||t==="u32"}var Ve=_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>s.add[e.kind](e,t),(e,t)=>({value:`(${e.value} + ${t.value})`,dataType:e.dataType}),"coerce"),L= exports.sub =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>s.sub[e.kind](e,t),(e,t)=>({value:`(${e.value} - ${t.value})`,dataType:e.dataType}),"coerce"),ze= exports.mul =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>{if(typeof e=="number")return s.mulSxV[t.kind](e,t);if(typeof e=="object"&&typeof t=="object"&&"kind"in e&&"kind"in t){let n=!e.kind.startsWith("mat"),a=!t.kind.startsWith("mat");if(!n&&a)return s.mulMxV[e.kind](e,t);if(n&&!a)return s.mulVxM[t.kind](e,t)}return s.mulVxV[t.kind](e,t)},(e,t)=>{let n=E(e)?t.dataType:e.dataType.type.startsWith("mat")?t.dataType.type.startsWith("mat")?e.dataType:t.dataType:e.dataType;return{value:`(${e.value} * ${t.value})`,dataType:n}}),Ie= exports.abs =_chunkODKBWWHUcjs.N.call(void 0, e=>typeof e=="number"?Math.abs(e):s.abs[e.kind](e),e=>({value:`abs(${e.value})`,dataType:e.dataType})),Se= exports.atan2 =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>typeof e=="number"&&typeof t=="number"?Math.atan2(e,t):s.atan2[e.kind](e,t),(e,t)=>({value:`atan2(${e.value}, ${t.value})`,dataType:e.dataType})),$e= exports.acos =_chunkODKBWWHUcjs.N.call(void 0, e=>typeof e=="number"?Math.acos(e):s.acos[e.kind](e),e=>({value:`acos(${e.value})`,dataType:e.dataType})),Be= exports.asin =_chunkODKBWWHUcjs.N.call(void 0, e=>typeof e=="number"?Math.asin(e):s.asin[e.kind](e),e=>({value:`asin(${e.value})`,dataType:e.dataType})),ke= exports.ceil =_chunkODKBWWHUcjs.N.call(void 0, e=>typeof e=="number"?Math.ceil(e):s.ceil[e.kind](e),e=>({value:`ceil(${e.value})`,dataType:e.dataType})),Oe= exports.clamp =_chunkODKBWWHUcjs.N.call(void 0, (e,t,n)=>typeof e=="number"?Math.min(Math.max(t,e),n):s.clamp[e.kind](e,t,n),(e,t,n)=>({value:`clamp(${e.value}, ${t.value}, ${n.value})`,dataType:e.dataType})),De= exports.cos =_chunkODKBWWHUcjs.N.call(void 0, e=>typeof e=="number"?Math.cos(e):s.cos[e.kind](e),e=>({value:`cos(${e.value})`,dataType:e.dataType})),Fe= exports.cross =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>s.cross[e.kind](e,t),(e,t)=>({value:`cross(${e.value}, ${t.value})`,dataType:e.dataType})),he= exports.dot =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>s.dot[e.kind](e,t),(e,t)=>({value:`dot(${e.value}, ${t.value})`,dataType:_chunkODKBWWHUcjs.T})),Ue= exports.normalize =_chunkODKBWWHUcjs.N.call(void 0, e=>s.normalize[e.kind](e),e=>({value:`normalize(${e.value})`,dataType:e.dataType})),Ne= exports.floor =_chunkODKBWWHUcjs.N.call(void 0, e=>typeof e=="number"?Math.floor(e):s.floor[e.kind](e),e=>({value:`floor(${e.value})`,dataType:e.dataType})),Re= exports.fract =_chunkODKBWWHUcjs.N.call(void 0, e=>typeof e=="number"?e-Math.floor(e):s.fract[e.kind](e),e=>({value:`fract(${e.value})`,dataType:e.dataType})),be= exports.length =_chunkODKBWWHUcjs.N.call(void 0, e=>typeof e=="number"?Math.abs(e):s.length[e.kind](e),e=>({value:`length(${e.value})`,dataType:_chunkODKBWWHUcjs.T})),Ke= exports.max =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>typeof e=="number"?Math.max(e,t):s.max[e.kind](e,t),(e,t)=>({value:`max(${e.value}, ${t.value})`,dataType:e.dataType}),"coerce"),_e= exports.min =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>typeof e=="number"?Math.min(e,t):s.min[e.kind](e,t),(e,t)=>({value:`min(${e.value}, ${t.value})`,dataType:e.dataType}),"coerce"),We= exports.sign =_chunkODKBWWHUcjs.N.call(void 0, e=>typeof e=="number"?Math.sign(e):s.sign[e.kind](e),e=>({value:`sign(${e.value})`,dataType:e.dataType})),Ee= exports.sin =_chunkODKBWWHUcjs.N.call(void 0, e=>typeof e=="number"?Math.sin(e):s.sin[e.kind](e),e=>({value:`sin(${e.value})`,dataType:e.dataType})),qe= exports.exp =_chunkODKBWWHUcjs.N.call(void 0, e=>typeof e=="number"?Math.exp(e):s.exp[e.kind](e),e=>({value:`exp(${e.value})`,dataType:e.dataType})),Pe= exports.pow =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>{if(typeof e=="number"&&typeof t=="number")return e**t;if(typeof e=="object"&&typeof t=="object"&&"kind"in e&&"kind"in t)return s.pow[e.kind](e,t);throw new Error("Invalid arguments to pow()")},(e,t)=>({value:`pow(${e.value}, ${t.value})`,dataType:e.dataType})),Ce= exports.mix =_chunkODKBWWHUcjs.N.call(void 0, (e,t,n)=>{if(typeof e=="number"){if(typeof n!="number"||typeof t!="number")throw new Error("When e1 and e2 are numbers, the blend factor must be a number.");return e*(1-n)+t*n}if(typeof e=="number"||typeof t=="number")throw new Error("e1 and e2 need to both be vectors of the same kind.");return s.mix[e.kind](e,t,n)},(e,t,n)=>({value:`mix(${e.value}, ${t.value}, ${n.value})`,dataType:e.dataType})),Ge= exports.reflect =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>L(e,ze(2*he(t,e),t)),(e,t)=>({value:`reflect(${e.value}, ${t.value})`,dataType:e.dataType})),Le= exports.distance =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>typeof e=="number"&&typeof t=="number"?Math.abs(e-t):be(L(e,t)),(e,t)=>({value:`distance(${e.value}, ${t.value})`,dataType:_chunkODKBWWHUcjs.T})),Je= exports.neg =_chunkODKBWWHUcjs.N.call(void 0, e=>typeof e=="number"?-e:s.neg[e.kind](e),e=>({value:`-(${e.value})`,dataType:e.dataType})),je= exports.sqrt =_chunkODKBWWHUcjs.N.call(void 0, e=>typeof e=="number"?Math.sqrt(e):s.sqrt[e.kind](e),e=>({value:`sqrt(${e.value})`,dataType:e.dataType})),Xe= exports.div =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>typeof e=="number"&&typeof t=="number"?e/t:typeof t=="number"?s.mulSxV[e.kind](1/t,e):s.div[e.kind](e,t),(e,t)=>({value:`(${e.value} / ${t.value})`,dataType:e.dataType}));function q(e){return e.dataType.type.includes("2")?_chunkODKBWWHUcjs.Z:e.dataType.type.includes("3")?_chunkODKBWWHUcjs.ca:_chunkODKBWWHUcjs.ha}var Ze=_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>me(J(e,t)),(e,t)=>({value:`all(${e.value} == ${t.value})`,dataType:_chunkODKBWWHUcjs.Q})),J= exports.eq =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>s.eq[e.kind](e,t),(e,t)=>({value:`(${e.value} == ${t.value})`,dataType:q(e)})),He= exports.ne =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>D(J(e,t)),(e,t)=>({value:`(${e.value} != ${t.value})`,dataType:q(e)})),ce= exports.lt =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>s.lt[e.kind](e,t),(e,t)=>({value:`(${e.value} < ${t.value})`,dataType:q(e)})),Qe= exports.le =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>pe(ce(e,t),J(e,t)),(e,t)=>({value:`(${e.value} <= ${t.value})`,dataType:q(e)})),Ye= exports.gt =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>Me(D(ce(e,t)),D(J(e,t))),(e,t)=>({value:`(${e.value} > ${t.value})`,dataType:q(e)})),et= exports.ge =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>D(ce(e,t)),(e,t)=>({value:`(${e.value} >= ${t.value})`,dataType:q(e)})),D= exports.not =_chunkODKBWWHUcjs.N.call(void 0, e=>s.neg[e.kind](e),e=>({value:`!(${e.value})`,dataType:e.dataType})),pe= exports.or =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>s.or[e.kind](e,t),(e,t)=>({value:`(${e.value} | ${t.value})`,dataType:e.dataType})),Me= exports.and =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>D(pe(D(e),D(t))),(e,t)=>({value:`(${e.value} & ${t.value})`,dataType:e.dataType})),me= exports.all =_chunkODKBWWHUcjs.N.call(void 0, e=>s.all[e.kind](e),e=>({value:`all(${e.value})`,dataType:_chunkODKBWWHUcjs.Q})),tt= exports.any =_chunkODKBWWHUcjs.N.call(void 0, e=>!me(D(e)),e=>({value:`any(${e.value})`,dataType:_chunkODKBWWHUcjs.Q})),nt= exports.isCloseTo =_chunkODKBWWHUcjs.N.call(void 0, (e,t,n=.01)=>typeof e=="number"&&typeof t=="number"?Math.abs(e-t)<n:typeof e!="number"&&typeof t!="number"?s.isCloseToZero[e.kind](L(e,t),n):!1,(e,t,n={value:.01,dataType:_chunkODKBWWHUcjs.T})=>E(e)&&E(t)?{value:`(abs(f32(${e.value}) - f32(${t.value})) <= ${n.value})`,dataType:_chunkODKBWWHUcjs.Q}:!E(e)&&!E(t)?{value:`all(abs(${e.value} - ${t.value}) <= (${e.value} - ${e.value}) + ${n.value})`,dataType:_chunkODKBWWHUcjs.Q}:{value:"false",dataType:_chunkODKBWWHUcjs.Q}),at= exports.select =_chunkODKBWWHUcjs.N.call(void 0, (e,t,n)=>typeof n=="boolean"?n?t:e:s.select[e.kind](e,t,n),(e,t,n)=>({value:`select(${e.value}, ${t.value}, ${n.value})`,dataType:e.dataType}));var rt=_chunkODKBWWHUcjs.N.call(void 0, ()=>console.warn("workgroupBarrier is a no-op outside of GPU mode."),()=>({value:"workgroupBarrier()",dataType:_chunkODKBWWHUcjs.t})),st= exports.storageBarrier =_chunkODKBWWHUcjs.N.call(void 0, ()=>console.warn("storageBarrier is a no-op outside of GPU mode."),()=>({value:"storageBarrier()",dataType:_chunkODKBWWHUcjs.t})),ct= exports.textureBarrier =_chunkODKBWWHUcjs.N.call(void 0, ()=>console.warn("textureBarrier is a no-op outside of GPU mode."),()=>({value:"textureBarrier()",dataType:_chunkODKBWWHUcjs.t})),ot= exports.atomicLoad =_chunkODKBWWHUcjs.N.call(void 0, e=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},e=>{if(_chunkODKBWWHUcjs.A.call(void 0, e.dataType)&&e.dataType.type==="atomic")return{value:`atomicLoad(&${e.value})`,dataType:e.dataType.inner};throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)}),ut= exports.atomicStore =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(!_chunkODKBWWHUcjs.A.call(void 0, e.dataType)||e.dataType.type!=="atomic")throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`);return{value:`atomicStore(&${e.value}, ${t.value})`,dataType:_chunkODKBWWHUcjs.t}}),N=(e,t)=>e.dataType.type==="atomic"&&e.dataType.inner.type==="i32"?[e.dataType,_chunkODKBWWHUcjs.S]:[e.dataType,_chunkODKBWWHUcjs.R],yt= exports.atomicAdd =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(_chunkODKBWWHUcjs.A.call(void 0, e.dataType)&&e.dataType.type==="atomic")return{value:`atomicAdd(&${e.value}, ${t.value})`,dataType:e.dataType.inner};throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},N),vt= exports.atomicSub =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(_chunkODKBWWHUcjs.A.call(void 0, e.dataType)&&e.dataType.type==="atomic")return{value:`atomicSub(&${e.value}, ${t.value})`,dataType:e.dataType.inner};throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},N),lt= exports.atomicMax =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(_chunkODKBWWHUcjs.A.call(void 0, e.dataType)&&e.dataType.type==="atomic")return{value:`atomicMax(&${e.value}, ${t.value})`,dataType:e.dataType.inner};throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},N),xt= exports.atomicMin =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(_chunkODKBWWHUcjs.A.call(void 0, e.dataType)&&e.dataType.type==="atomic")return{value:`atomicMin(&${e.value}, ${t.value})`,dataType:e.dataType.inner};throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},N),Tt= exports.atomicAnd =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(_chunkODKBWWHUcjs.A.call(void 0, e.dataType)&&e.dataType.type==="atomic")return{value:`atomicAnd(&${e.value}, ${t.value})`,dataType:e.dataType.inner};throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},N),it= exports.atomicOr =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(_chunkODKBWWHUcjs.A.call(void 0, e.dataType)&&e.dataType.type==="atomic")return{value:`atomicOr(&${e.value}, ${t.value})`,dataType:e.dataType.inner};throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},N),wt= exports.atomicXor =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(_chunkODKBWWHUcjs.A.call(void 0, e.dataType)&&e.dataType.type==="atomic")return{value:`atomicXor(&${e.value}, ${t.value})`,dataType:e.dataType.inner};throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},N);var dt=_chunkODKBWWHUcjs.N.call(void 0, e=>e.length,e=>({value:`arrayLength(${e.value})`,dataType:_chunkODKBWWHUcjs.R}),e=>[_chunkODKBWWHUcjs.na.call(void 0, e.dataType)]);var _typedbinary = require('typed-binary'); var k = _interopRequireWildcard(_typedbinary);var pt=_chunkODKBWWHUcjs.N.call(void 0, e=>{let t=new ArrayBuffer(4);new k.BufferWriter(t).writeUint32(e);let a=new k.BufferReader(t);return _chunkODKBWWHUcjs.V.call(void 0, a.readFloat16(),a.readFloat16())},e=>({value:`unpack2x16float(${e.value})`,dataType:_chunkODKBWWHUcjs.V})),mt= exports.pack2x16float =_chunkODKBWWHUcjs.N.call(void 0, e=>{let t=new ArrayBuffer(4),n=new k.BufferWriter(t);n.writeFloat16(e.x),n.writeFloat16(e.y);let a=new k.BufferReader(t);return _chunkODKBWWHUcjs.R.call(void 0, a.readUint32())},e=>({value:`pack2x16float(${e.value})`,dataType:_chunkODKBWWHUcjs.R})),gt= exports.unpack4x8unorm =_chunkODKBWWHUcjs.N.call(void 0, e=>{let t=new ArrayBuffer(4);new k.BufferWriter(t).writeUint32(e);let a=new k.BufferReader(t);return _chunkODKBWWHUcjs.da.call(void 0, a.readUint8()/255,a.readUint8()/255,a.readUint8()/255,a.readUint8()/255)},e=>({value:`unpack4x8unorm(${e.value})`,dataType:_chunkODKBWWHUcjs.da})),ft= exports.pack4x8unorm =_chunkODKBWWHUcjs.N.call(void 0, e=>{let t=new ArrayBuffer(4),n=new k.BufferWriter(t);n.writeUint8(e.x*255),n.writeUint8(e.y*255),n.writeUint8(e.z*255),n.writeUint8(e.w*255);let a=new k.BufferReader(t);return _chunkODKBWWHUcjs.R.call(void 0, a.readUint32())},e=>({value:`pack4x8unorm(${e.value})`,dataType:_chunkODKBWWHUcjs.R}));var zt=_chunkODKBWWHUcjs.N.call(void 0, (e,t,n,a,v)=>{throw new Error("Texture sampling is not supported outside of GPU mode.")},(e,t,n,a,v)=>{let F=[e,t,n];return a!==void 0&&F.push(a),v!==void 0&&F.push(v),{value:`textureSample(${F.map(oe=>oe.value).join(", ")})`,dataType:_chunkODKBWWHUcjs.da}}),ht= exports.textureSampleLevel =_chunkODKBWWHUcjs.N.call(void 0, (e,t,n,a,v)=>{throw new Error("Texture sampling is not supported outside of GPU mode.")},(e,t,n,a,v)=>{let F=[e,t,n,a];return v!==void 0&&F.push(v),{value:`textureSampleLevel(${F.map(oe=>oe.value).join(", ")})`,dataType:_chunkODKBWWHUcjs.da}}),bt={u32:_chunkODKBWWHUcjs.ga,i32:_chunkODKBWWHUcjs.fa,f32:_chunkODKBWWHUcjs.da},Mt= exports.textureLoad =_chunkODKBWWHUcjs.N.call(void 0, (e,t,n)=>{throw new Error("Texture loading is not supported outside of GPU mode.")},(e,t,n)=>{let a=[e,t];n!==void 0&&a.push(n);let v=e.dataType;return{value:`textureLoad(${a.map(F=>F.value).join(", ")})`,dataType:"texelDataType"in v?v.texelDataType:bt[v.channelDataType.type]}}),At= exports.textureStore =_chunkODKBWWHUcjs.N.call(void 0, (e,t,n,a)=>{throw new Error("Texture storing is not supported outside of GPU mode.")},(e,t,n,a)=>({value:`textureStore(${[e,t,n,a].filter(v=>v!==void 0).map(v=>v.value).join(", ")})`,dataType:_chunkODKBWWHUcjs.t})),Vt= exports.textureDimensions =_chunkODKBWWHUcjs.N.call(void 0, (e,t)=>{throw new Error("Texture dimensions are not supported outside of GPU mode.")},(e,t)=>{let n=e.dataType.dimension;return{value:`textureDimensions(${e.value}${t!==void 0?`, ${t.value}`:""})`,dataType:n==="1d"?_chunkODKBWWHUcjs.R:n==="3d"?_chunkODKBWWHUcjs.ba:_chunkODKBWWHUcjs.Y}});exports.abs = Ie; exports.acos = $e; exports.add = Ve; exports.all = me; exports.allEq = Ze; exports.and = Me; exports.any = tt; exports.arrayLength = dt; exports.asin = Be; exports.atan2 = Se; exports.atomicAdd = yt; exports.atomicAnd = Tt; exports.atomicLoad = ot; exports.atomicMax = lt; exports.atomicMin = xt; exports.atomicOr = it; exports.atomicStore = ut; exports.atomicSub = vt; exports.atomicXor = wt; exports.ceil = ke; exports.clamp = Oe; exports.cos = De; exports.cross = Fe; exports.discard = Ae; exports.distance = Le; exports.div = Xe; exports.dot = he; exports.eq = J; exports.exp = qe; exports.floor = Ne; exports.fract = Re; exports.ge = et; exports.gt = Ye; exports.isCloseTo = nt; exports.le = Qe; exports.length = be; exports.lt = ce; exports.max = Ke; exports.min = _e; exports.mix = Ce; exports.mul = ze; exports.ne = He; exports.neg = Je; exports.normalize = Ue; exports.not = D; exports.or = pe; exports.pack2x16float = mt; exports.pack4x8unorm = ft; exports.pow = Pe; exports.reflect = Ge; exports.select = at; exports.sign = We; exports.sin = Ee; exports.sqrt = je; exports.storageBarrier = st; exports.sub = L; exports.textureBarrier = ct; exports.textureDimensions = Vt; exports.textureLoad = Mt; exports.textureSample = zt; exports.textureSampleLevel = ht; exports.textureStore = At; exports.unpack2x16float = pt; exports.unpack4x8unorm = gt; exports.workgroupBarrier = rt;
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkCDUKTYEScjs = require('../chunk-CDUKTYES.cjs');var _chunkBJSN5UVVcjs = require('../chunk-BJSN5UVV.cjs');var Ve=_chunkBJSN5UVVcjs.ga.call(void 0, ()=>{throw new Error("discard() can only be used on the GPU.")},()=>_chunkBJSN5UVVcjs.da.call(void 0, "discard;",_chunkBJSN5UVVcjs.A),"discard");var Ue=_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>_chunkCDUKTYEScjs.f.call(void 0, _chunkBJSN5UVVcjs.Oa.translation(t),e),(e,t)=>({value:`(${_chunkBJSN5UVVcjs.Oa.translation(t).value} * ${e.value})`,dataType:e.dataType}),"translate4"),Ee= exports.scale4 =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>_chunkCDUKTYEScjs.f.call(void 0, _chunkBJSN5UVVcjs.Oa.scaling(t),e),(e,t)=>({value:`(${_chunkBJSN5UVVcjs.Oa.scaling(t).value} * ${e.value})`,dataType:e.dataType}),"scale4"),Oe= exports.rotateX4 =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>_chunkCDUKTYEScjs.f.call(void 0, _chunkBJSN5UVVcjs.Oa.rotationX(t),e),(e,t)=>({value:`(${_chunkBJSN5UVVcjs.Oa.rotationX(t).value} * ${e.value})`,dataType:e.dataType}),"rotateX4"),Le= exports.rotateY4 =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>_chunkCDUKTYEScjs.f.call(void 0, _chunkBJSN5UVVcjs.Oa.rotationY(t),e),(e,t)=>({value:`(${_chunkBJSN5UVVcjs.Oa.rotationY(t).value} * ${e.value})`,dataType:e.dataType}),"rotateY4"),_e= exports.rotateZ4 =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>_chunkCDUKTYEScjs.f.call(void 0, _chunkBJSN5UVVcjs.Oa.rotationZ(t),e),(e,t)=>({value:`(${_chunkBJSN5UVVcjs.Oa.rotationZ(t).value} * ${e.value})`,dataType:e.dataType}),"rotateZ4");function g(e){return e.dataType.type.includes("2")?_chunkBJSN5UVVcjs.sa:e.dataType.type.includes("3")?_chunkBJSN5UVVcjs.xa:_chunkBJSN5UVVcjs.Ca}var Pe=_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>k(b(e,t)),(e,t)=>_chunkBJSN5UVVcjs.da.call(void 0, `all(${e.value} == ${t.value})`,_chunkBJSN5UVVcjs.ja),"allEq"),b= exports.eq =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>_chunkCDUKTYEScjs.a.eq[e.kind](e,t),(e,t)=>_chunkBJSN5UVVcjs.da.call(void 0, `(${e.value} == ${t.value})`,g(e)),"eq"),he= exports.ne =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>m(b(e,t)),(e,t)=>_chunkBJSN5UVVcjs.da.call(void 0, `(${e.value} != ${t.value})`,g(e)),"ne"),w= exports.lt =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>_chunkCDUKTYEScjs.a.lt[e.kind](e,t),(e,t)=>_chunkBJSN5UVVcjs.da.call(void 0, `(${e.value} < ${t.value})`,g(e)),"lt"),Ge= exports.le =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>B(w(e,t),b(e,t)),(e,t)=>_chunkBJSN5UVVcjs.da.call(void 0, `(${e.value} <= ${t.value})`,g(e)),"le"),Ne= exports.gt =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>J(m(w(e,t)),m(b(e,t))),(e,t)=>_chunkBJSN5UVVcjs.da.call(void 0, `(${e.value} > ${t.value})`,g(e)),"gt"),Fe= exports.ge =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>m(w(e,t)),(e,t)=>_chunkBJSN5UVVcjs.da.call(void 0, `(${e.value} >= ${t.value})`,g(e)),"ge"),m= exports.not =_chunkBJSN5UVVcjs.ga.call(void 0, e=>_chunkCDUKTYEScjs.a.neg[e.kind](e),e=>_chunkBJSN5UVVcjs.da.call(void 0, `!(${e.value})`,e.dataType),"not"),B= exports.or =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>_chunkCDUKTYEScjs.a.or[e.kind](e,t),(e,t)=>_chunkBJSN5UVVcjs.da.call(void 0, `(${e.value} | ${t.value})`,e.dataType),"or"),J= exports.and =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>m(B(m(e),m(t))),(e,t)=>_chunkBJSN5UVVcjs.da.call(void 0, `(${e.value} & ${t.value})`,e.dataType),"and"),k= exports.all =_chunkBJSN5UVVcjs.ga.call(void 0, e=>_chunkCDUKTYEScjs.a.all[e.kind](e),e=>_chunkBJSN5UVVcjs.da.call(void 0, `all(${e.value})`,_chunkBJSN5UVVcjs.ja),"all"),We= exports.any =_chunkBJSN5UVVcjs.ga.call(void 0, e=>!k(m(e)),e=>_chunkBJSN5UVVcjs.da.call(void 0, `any(${e.value})`,_chunkBJSN5UVVcjs.ja),"any"),Xe= exports.isCloseTo =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t,o=.01)=>typeof e=="number"&&typeof t=="number"?Math.abs(e-t)<o:_chunkBJSN5UVVcjs.B.call(void 0, e)&&_chunkBJSN5UVVcjs.B.call(void 0, t)?_chunkCDUKTYEScjs.a.isCloseToZero[e.kind](_chunkCDUKTYEScjs.e.call(void 0, e,t),o):!1,(e,t,o=_chunkBJSN5UVVcjs.da.call(void 0, .01,_chunkBJSN5UVVcjs.ma))=>_chunkCDUKTYEScjs.b.call(void 0, e)&&_chunkCDUKTYEScjs.b.call(void 0, t)?_chunkBJSN5UVVcjs.da.call(void 0, `(abs(f32(${e.value}) - f32(${t.value})) <= ${o.value})`,_chunkBJSN5UVVcjs.ja):!_chunkCDUKTYEScjs.b.call(void 0, e)&&!_chunkCDUKTYEScjs.b.call(void 0, t)?_chunkBJSN5UVVcjs.da.call(void 0, `all(abs(${e.value} - ${t.value}) <= (${e.value} - ${e.value}) + ${o.value})`,_chunkBJSN5UVVcjs.ja):_chunkBJSN5UVVcjs.da.call(void 0, "false",_chunkBJSN5UVVcjs.ja),"isCloseTo"),Je= exports.select =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t,o)=>typeof o=="boolean"?o?t:e:_chunkCDUKTYEScjs.a.select[e.kind](e,t,o),(e,t,o)=>_chunkBJSN5UVVcjs.da.call(void 0, `select(${e.value}, ${t.value}, ${o.value})`,e.dataType),"select");var Me=_chunkBJSN5UVVcjs.ga.call(void 0, ()=>console.warn("workgroupBarrier is a no-op outside of GPU mode."),()=>_chunkBJSN5UVVcjs.da.call(void 0, "workgroupBarrier()",_chunkBJSN5UVVcjs.A),"workgroupBarrier"),qe= exports.storageBarrier =_chunkBJSN5UVVcjs.ga.call(void 0, ()=>console.warn("storageBarrier is a no-op outside of GPU mode."),()=>_chunkBJSN5UVVcjs.da.call(void 0, "storageBarrier()",_chunkBJSN5UVVcjs.A),"storageBarrier"),Ce= exports.textureBarrier =_chunkBJSN5UVVcjs.ga.call(void 0, ()=>console.warn("textureBarrier is a no-op outside of GPU mode."),()=>_chunkBJSN5UVVcjs.da.call(void 0, "textureBarrier()",_chunkBJSN5UVVcjs.A),"textureBarrier"),Ze= exports.atomicLoad =_chunkBJSN5UVVcjs.ga.call(void 0, e=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},e=>{if(_chunkBJSN5UVVcjs.K.call(void 0, e.dataType)&&e.dataType.type==="atomic")return _chunkBJSN5UVVcjs.da.call(void 0, `atomicLoad(&${e.value})`,e.dataType.inner);throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},"atomicLoad"),Ye= exports.atomicStore =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(!_chunkBJSN5UVVcjs.K.call(void 0, e.dataType)||e.dataType.type!=="atomic")throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`);return _chunkBJSN5UVVcjs.da.call(void 0, `atomicStore(&${e.value}, ${t.value})`,_chunkBJSN5UVVcjs.A)},"atomicStore"),f=(e,t)=>e.dataType.type==="atomic"&&e.dataType.inner.type==="i32"?[e.dataType,_chunkBJSN5UVVcjs.la]:[e.dataType,_chunkBJSN5UVVcjs.ka],je= exports.atomicAdd =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(_chunkBJSN5UVVcjs.K.call(void 0, e.dataType)&&e.dataType.type==="atomic")return _chunkBJSN5UVVcjs.da.call(void 0, `atomicAdd(&${e.value}, ${t.value})`,e.dataType.inner);throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},"atomicAdd",f),Re= exports.atomicSub =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(_chunkBJSN5UVVcjs.K.call(void 0, e.dataType)&&e.dataType.type==="atomic")return _chunkBJSN5UVVcjs.da.call(void 0, `atomicSub(&${e.value}, ${t.value})`,e.dataType.inner);throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},"atomicSub",f),ze= exports.atomicMax =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(_chunkBJSN5UVVcjs.K.call(void 0, e.dataType)&&e.dataType.type==="atomic")return _chunkBJSN5UVVcjs.da.call(void 0, `atomicMax(&${e.value}, ${t.value})`,e.dataType.inner);throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},"atomicMax",f),He= exports.atomicMin =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(_chunkBJSN5UVVcjs.K.call(void 0, e.dataType)&&e.dataType.type==="atomic")return _chunkBJSN5UVVcjs.da.call(void 0, `atomicMin(&${e.value}, ${t.value})`,e.dataType.inner);throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},"atomicMin",f),Ke= exports.atomicAnd =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(_chunkBJSN5UVVcjs.K.call(void 0, e.dataType)&&e.dataType.type==="atomic")return _chunkBJSN5UVVcjs.da.call(void 0, `atomicAnd(&${e.value}, ${t.value})`,e.dataType.inner);throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},"atomicAnd",f),Qe= exports.atomicOr =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(_chunkBJSN5UVVcjs.K.call(void 0, e.dataType)&&e.dataType.type==="atomic")return _chunkBJSN5UVVcjs.da.call(void 0, `atomicOr(&${e.value}, ${t.value})`,e.dataType.inner);throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},"atomicOr",f),et= exports.atomicXor =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>{throw new Error("Atomic operations are not supported outside of GPU mode.")},(e,t)=>{if(_chunkBJSN5UVVcjs.K.call(void 0, e.dataType)&&e.dataType.type==="atomic")return _chunkBJSN5UVVcjs.da.call(void 0, `atomicXor(&${e.value}, ${t.value})`,e.dataType.inner);throw new Error(`Invalid atomic type: ${JSON.stringify(e.dataType,null,2)}`)},"atomicXor",f);var tt=_chunkBJSN5UVVcjs.ga.call(void 0, e=>e.length,e=>_chunkBJSN5UVVcjs.N.call(void 0, e.dataType)&&_chunkBJSN5UVVcjs.L.call(void 0, e.dataType.inner)&&e.dataType.inner.elementCount>0?_chunkBJSN5UVVcjs.da.call(void 0, String(e.dataType.inner.elementCount),_chunkBJSN5UVVcjs.ha):_chunkBJSN5UVVcjs.da.call(void 0, `arrayLength(${e.value})`,_chunkBJSN5UVVcjs.ka),"arrayLength",e=>[_chunkBJSN5UVVcjs.Qa.call(void 0, e.dataType)]);var _typedbinary = require('typed-binary'); var d = _interopRequireWildcard(_typedbinary);var rt=_chunkBJSN5UVVcjs.ga.call(void 0, e=>{let t=new ArrayBuffer(4);new d.BufferWriter(t).writeUint32(e);let n=new d.BufferReader(t);return _chunkBJSN5UVVcjs.oa.call(void 0, n.readFloat16(),n.readFloat16())},e=>_chunkBJSN5UVVcjs.da.call(void 0, `unpack2x16float(${e.value})`,_chunkBJSN5UVVcjs.oa),"unpack2x16float"),at= exports.pack2x16float =_chunkBJSN5UVVcjs.ga.call(void 0, e=>{let t=new ArrayBuffer(4),o=new d.BufferWriter(t);o.writeFloat16(e.x),o.writeFloat16(e.y);let n=new d.BufferReader(t);return _chunkBJSN5UVVcjs.ka.call(void 0, n.readUint32())},e=>_chunkBJSN5UVVcjs.da.call(void 0, `pack2x16float(${e.value})`,_chunkBJSN5UVVcjs.ka),"pack2x16float"),ot= exports.unpack4x8unorm =_chunkBJSN5UVVcjs.ga.call(void 0, e=>{let t=new ArrayBuffer(4);new d.BufferWriter(t).writeUint32(e);let n=new d.BufferReader(t);return _chunkBJSN5UVVcjs.ya.call(void 0, n.readUint8()/255,n.readUint8()/255,n.readUint8()/255,n.readUint8()/255)},e=>_chunkBJSN5UVVcjs.da.call(void 0, `unpack4x8unorm(${e.value})`,_chunkBJSN5UVVcjs.ya),"unpack4x8unorm"),nt= exports.pack4x8unorm =_chunkBJSN5UVVcjs.ga.call(void 0, e=>{let t=new ArrayBuffer(4),o=new d.BufferWriter(t);o.writeUint8(e.x*255),o.writeUint8(e.y*255),o.writeUint8(e.z*255),o.writeUint8(e.w*255);let n=new d.BufferReader(t);return _chunkBJSN5UVVcjs.ka.call(void 0, n.readUint32())},e=>_chunkBJSN5UVVcjs.da.call(void 0, `pack4x8unorm(${e.value})`,_chunkBJSN5UVVcjs.ka),"pack4x8unorm");var ut=_chunkBJSN5UVVcjs.ga.call(void 0, (e,t,o,n,u)=>{throw new Error("Texture sampling is not supported outside of GPU mode.")},(e,t,o,n,u)=>{let l=[e,t,o];return n!==void 0&&l.push(n),u!==void 0&&l.push(u),_chunkBJSN5UVVcjs.da.call(void 0, `textureSample(${l.map($=>$.value).join(", ")})`,_chunkBJSN5UVVcjs.ya)},"textureSample"),pt= exports.textureSampleLevel =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t,o,n,u)=>{throw new Error("Texture sampling is not supported outside of GPU mode.")},(e,t,o,n,u)=>{let l=[e,t,o,n];return u!==void 0&&l.push(u),_chunkBJSN5UVVcjs.da.call(void 0, `textureSampleLevel(${l.map($=>$.value).join(", ")})`,_chunkBJSN5UVVcjs.ya)},"textureSampleLevel"),it={u32:_chunkBJSN5UVVcjs.Ba,i32:_chunkBJSN5UVVcjs.Aa,f32:_chunkBJSN5UVVcjs.ya},Tt= exports.textureLoad =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t,o)=>{throw new Error("Texture loading is not supported outside of GPU mode.")},(e,t,o)=>{let n=[e,t];o!==void 0&&n.push(o);let u=e.dataType;return _chunkBJSN5UVVcjs.da.call(void 0, `textureLoad(${n.map(l=>l.value).join(", ")})`,"texelDataType"in u?u.texelDataType:it[u.channelDataType.type])},"textureLoad"),dt= exports.textureStore =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t,o,n)=>{throw new Error("Texture storing is not supported outside of GPU mode.")},(e,t,o,n)=>_chunkBJSN5UVVcjs.da.call(void 0, `textureStore(${[e,t,o,n].filter(u=>u!==void 0).map(u=>u.value).join(", ")})`,_chunkBJSN5UVVcjs.A),"textureStore"),st= exports.textureDimensions =_chunkBJSN5UVVcjs.ga.call(void 0, (e,t)=>{throw new Error("Texture dimensions are not supported outside of GPU mode.")},(e,t)=>{let o=e.dataType.dimension;return _chunkBJSN5UVVcjs.da.call(void 0, `textureDimensions(${e.value}${t!==void 0?`, ${t.value}`:""})`,o==="1d"?_chunkBJSN5UVVcjs.ka:o==="3d"?_chunkBJSN5UVVcjs.wa:_chunkBJSN5UVVcjs.ra)},"textureDimensions");exports.abs = _chunkCDUKTYEScjs.h; exports.acos = _chunkCDUKTYEScjs.j; exports.acosh = _chunkCDUKTYEScjs.k; exports.add = _chunkCDUKTYEScjs.d; exports.all = k; exports.allEq = Pe; exports.and = J; exports.any = We; exports.arrayLength = tt; exports.asin = _chunkCDUKTYEScjs.l; exports.atan2 = _chunkCDUKTYEScjs.i; exports.atomicAdd = je; exports.atomicAnd = Ke; exports.atomicLoad = Ze; exports.atomicMax = ze; exports.atomicMin = He; exports.atomicOr = Qe; exports.atomicStore = Ye; exports.atomicSub = Re; exports.atomicXor = et; exports.ceil = _chunkCDUKTYEScjs.m; exports.clamp = _chunkCDUKTYEScjs.n; exports.cos = _chunkCDUKTYEScjs.o; exports.cosh = _chunkCDUKTYEScjs.p; exports.cross = _chunkCDUKTYEScjs.q; exports.discard = Ve; exports.distance = _chunkCDUKTYEScjs.H; exports.div = _chunkCDUKTYEScjs.g; exports.dot = _chunkCDUKTYEScjs.r; exports.eq = b; exports.exp = _chunkCDUKTYEScjs.C; exports.exp2 = _chunkCDUKTYEScjs.D; exports.floor = _chunkCDUKTYEScjs.t; exports.fract = _chunkCDUKTYEScjs.u; exports.ge = Fe; exports.gt = Ne; exports.identity2 = _chunkBJSN5UVVcjs.Ea; exports.identity3 = _chunkBJSN5UVVcjs.Fa; exports.identity4 = _chunkBJSN5UVVcjs.Ga; exports.isCloseTo = Xe; exports.le = Ge; exports.length = _chunkCDUKTYEScjs.v; exports.log = _chunkCDUKTYEScjs.w; exports.log2 = _chunkCDUKTYEScjs.x; exports.lt = w; exports.max = _chunkCDUKTYEScjs.y; exports.min = _chunkCDUKTYEScjs.z; exports.mix = _chunkCDUKTYEScjs.F; exports.mul = _chunkCDUKTYEScjs.f; exports.ne = he; exports.neg = _chunkCDUKTYEScjs.I; exports.normalize = _chunkCDUKTYEScjs.s; exports.not = m; exports.or = B; exports.pack2x16float = at; exports.pack4x8unorm = nt; exports.pow = _chunkCDUKTYEScjs.E; exports.reflect = _chunkCDUKTYEScjs.G; exports.rotateX4 = Oe; exports.rotateY4 = Le; exports.rotateZ4 = _e; exports.rotationX4 = _chunkBJSN5UVVcjs.Ja; exports.rotationY4 = _chunkBJSN5UVVcjs.Ka; exports.rotationZ4 = _chunkBJSN5UVVcjs.La; exports.scale4 = Ee; exports.scaling4 = _chunkBJSN5UVVcjs.Ia; exports.select = Je; exports.sign = _chunkCDUKTYEScjs.A; exports.sin = _chunkCDUKTYEScjs.B; exports.sqrt = _chunkCDUKTYEScjs.J; exports.storageBarrier = qe; exports.sub = _chunkCDUKTYEScjs.e; exports.tanh = _chunkCDUKTYEScjs.K; exports.textureBarrier = Ce; exports.textureDimensions = st; exports.textureLoad = Tt; exports.textureSample = ut; exports.textureSampleLevel = pt; exports.textureStore = dt; exports.translate4 = Ue; exports.translation4 = _chunkBJSN5UVVcjs.Ha; exports.unpack2x16float = rt; exports.unpack4x8unorm = ot; exports.workgroupBarrier = Me;
|
2
2
|
//# sourceMappingURL=index.cjs.map
|