isard 1.15.0 → 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.
Files changed (105) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/README.md +4 -4
  3. package/dist/basemap/vectortiles/placed.js +7 -4
  4. package/dist/basemap/vectortiles/placed.js.map +1 -1
  5. package/dist/basemap/vectortiles/tiles.d.ts +1 -1
  6. package/dist/basemap/vectortiles/tiles.js.map +1 -1
  7. package/dist/basemap/workerpool.d.ts +1 -1
  8. package/dist/basemap/workerpool.js.map +1 -1
  9. package/dist/bind/layers.js +3 -1
  10. package/dist/bind/layers.js.map +1 -1
  11. package/dist/decoder.worker.js +4 -5
  12. package/dist/decoder.worker.js.map +6 -6
  13. package/dist/decoding/decoders.d.ts +1 -1
  14. package/dist/decoding/decoders.js.map +1 -1
  15. package/dist/decoding/loader.d.ts +6 -3
  16. package/dist/decoding/loader.js +7 -5
  17. package/dist/decoding/loader.js.map +1 -1
  18. package/dist/decoding/protocol.d.ts +3 -2
  19. package/dist/decoding/protocol.js.map +1 -1
  20. package/dist/engine-loader.d.ts +20 -18
  21. package/dist/engine-loader.js +45 -42
  22. package/dist/engine-loader.js.map +1 -1
  23. package/dist/index.d.ts +3 -3
  24. package/dist/index.js.map +1 -1
  25. package/dist/isard_tess_bg.wasm +0 -0
  26. package/dist/isard_tiles3d_bg.wasm +0 -0
  27. package/dist/isard_webgl2_bg.wasm +0 -0
  28. package/dist/isard_webgpu_bg.wasm +0 -0
  29. package/dist/layers/custom.d.ts +35 -29
  30. package/dist/layers/custom.js +60 -46
  31. package/dist/layers/custom.js.map +1 -1
  32. package/dist/layers/extrusions.js.map +1 -1
  33. package/dist/layers/features.js.map +1 -1
  34. package/dist/layers/flow.js.map +1 -1
  35. package/dist/layers/glyphs.d.ts +1 -1
  36. package/dist/layers/glyphs.js.map +1 -1
  37. package/dist/layers/ground.d.ts +20 -13
  38. package/dist/layers/ground.js +29 -8
  39. package/dist/layers/ground.js.map +1 -1
  40. package/dist/layers/icons.d.ts +1 -1
  41. package/dist/layers/icons.js.map +1 -1
  42. package/dist/layers/layers.d.ts +1 -2
  43. package/dist/layers/layers.js +2 -11
  44. package/dist/layers/layers.js.map +1 -1
  45. package/dist/layers/models.js +0 -4
  46. package/dist/layers/models.js.map +1 -1
  47. package/dist/layers/network.d.ts +1 -1
  48. package/dist/layers/network.js.map +1 -1
  49. package/dist/layers/panoramas.d.ts +1 -0
  50. package/dist/layers/panoramas.js +3 -2
  51. package/dist/layers/panoramas.js.map +1 -1
  52. package/dist/layers/pointclouds.d.ts +1 -1
  53. package/dist/layers/pointclouds.js +0 -4
  54. package/dist/layers/pointclouds.js.map +1 -1
  55. package/dist/layers/raster.js +2 -2
  56. package/dist/layers/raster.js.map +1 -1
  57. package/dist/layers/symbols.js.map +1 -1
  58. package/dist/layers/tiles3d.d.ts +6 -2
  59. package/dist/layers/tiles3d.js +23 -5
  60. package/dist/layers/tiles3d.js.map +1 -1
  61. package/dist/layers/vectors.d.ts +4 -5
  62. package/dist/layers/vectors.js +7 -15
  63. package/dist/layers/vectors.js.map +1 -1
  64. package/dist/map/engine-settings.d.ts +1 -1
  65. package/dist/map/engine-settings.js.map +1 -1
  66. package/dist/map/engines.d.ts +11 -26
  67. package/dist/map/engines.js +10 -48
  68. package/dist/map/engines.js.map +1 -1
  69. package/dist/map/frame-loop.d.ts +1 -3
  70. package/dist/map/frame-loop.js +3 -3
  71. package/dist/map/frame-loop.js.map +1 -1
  72. package/dist/map/hover-pick.d.ts +9 -3
  73. package/dist/map/hover-pick.js +29 -6
  74. package/dist/map/hover-pick.js.map +1 -1
  75. package/dist/map/layer-stack.d.ts +2 -2
  76. package/dist/map/layer-stack.js +1 -3
  77. package/dist/map/layer-stack.js.map +1 -1
  78. package/dist/map/symbol-atlases.d.ts +5 -4
  79. package/dist/map/symbol-atlases.js +8 -13
  80. package/dist/map/symbol-atlases.js.map +1 -1
  81. package/dist/map/viewshed.d.ts +1 -1
  82. package/dist/map/viewshed.js.map +1 -1
  83. package/dist/map.d.ts +26 -20
  84. package/dist/map.js +97 -82
  85. package/dist/map.js.map +1 -1
  86. package/dist/react/IsardMap.d.ts +1 -1
  87. package/dist/react/IsardMap.js.map +1 -1
  88. package/dist/react/index.d.ts +1 -1
  89. package/dist/react/index.js.map +1 -1
  90. package/dist/types.d.ts +49 -18
  91. package/dist/types.js.map +1 -1
  92. package/dist/ui/interaction.d.ts +1 -1
  93. package/dist/ui/interaction.js.map +1 -1
  94. package/dist/util/animation.d.ts +1 -1
  95. package/dist/util/animation.js.map +1 -1
  96. package/dist/wasm/isard_tiles3d.d.ts +181 -0
  97. package/dist/wasm/isard_tiles3d.js +387 -0
  98. package/dist/wasm/{isard_core.d.ts → isard_webgl2.d.ts} +375 -184
  99. package/dist/wasm/{isard_core.js → isard_webgl2.js} +2167 -415
  100. package/dist/wasm/{isard.d.ts → isard_webgpu.d.ts} +183 -355
  101. package/dist/wasm/{isard.js → isard_webgpu.js} +1374 -1097
  102. package/package.json +4 -3
  103. package/vite.js +5 -4
  104. package/dist/isard_bg.wasm +0 -0
  105. package/dist/isard_core_bg.wasm +0 -0
@@ -1,10 +1,16 @@
1
- /* @ts-self-types="./isard.d.ts" */
1
+ /* @ts-self-types="./isard_webgpu.d.ts" */
2
2
 
3
3
  /**
4
- * A map on one canvas: its WebGL2 context, camera, ground (raster layers over the relief) and the layers over it.
5
- * Draws only when `render` is called (the JavaScript side calls it after `redraw` asks for a frame)
4
+ * A map on one canvas: its device, its camera, what it draws. Draws only when `render` is called (the JavaScript
5
+ * side calls it after `redraw` asks for a frame)
6
6
  */
7
7
  export class Engine {
8
+ static __wrap(ptr) {
9
+ const obj = Object.create(Engine.prototype);
10
+ obj.__wbg_ptr = ptr;
11
+ EngineFinalization.register(obj, obj.__wbg_ptr, obj);
12
+ return obj;
13
+ }
8
14
  __destroy_into_raw() {
9
15
  const ptr = this.__wbg_ptr;
10
16
  this.__wbg_ptr = 0;
@@ -20,8 +26,7 @@ export class Engine {
20
26
  *
21
27
  * # Errors
22
28
  *
23
- * Throws (to JavaScript) when a WebGL object cannot be created or a shader fails to compile (the error carries its
24
- * info log), or when `feature_count` features need a table texture past the GPU's `MAX_TEXTURE_SIZE`
29
+ * Throws (to JavaScript) when `feature_count` features need a table past the GPU's largest texture
25
30
  * @param {Float64Array} points
26
31
  * @param {Uint32Array} feature
27
32
  * @param {number} feature_count
@@ -39,10 +44,10 @@ export class Engine {
39
44
  return ret[0] >>> 0;
40
45
  }
41
46
  /**
42
- * A layer drawn by the page: `render()` is called at its place in every frame (`customMatrix` gives the
43
- * matrices of that frame meanwhile); `depth`: with the depth buffer of the 3D layers (`3d` mode), else over
44
- * what is drawn before it
45
- * @param {() => void} render
47
+ * A layer drawn by the page: `render(target)` is called before every frame's pass with its targets (the device,
48
+ * the color, the depth in `'3d'`: `customMatrix` gives the matrices of that frame meanwhile), what it drew laid over
49
+ * the frame at the layer's place; `depth`: with the depth of the solid scene (`'3d'` mode)
50
+ * @param {(target: CustomTarget) => void} render
46
51
  * @param {boolean} depth
47
52
  * @returns {number}
48
53
  */
@@ -55,8 +60,7 @@ export class Engine {
55
60
  *
56
61
  * # Errors
57
62
  *
58
- * Throws (to JavaScript) when a WebGL object cannot be created or a shader fails to compile (the error carries its
59
- * info log)
63
+ * Never in practice: the layer starts empty
60
64
  * @returns {number}
61
65
  */
62
66
  addExtrusions() {
@@ -73,8 +77,7 @@ export class Engine {
73
77
  *
74
78
  * # Errors
75
79
  *
76
- * Throws (to JavaScript) when a WebGL object cannot be created or a shader fails to compile (the error carries its
77
- * info log), or when `feature_count` features need a table texture past the GPU's `MAX_TEXTURE_SIZE`
80
+ * Throws (to JavaScript) when `feature_count` features need a table past the GPU's largest texture
78
81
  * @param {Float64Array} points
79
82
  * @param {Uint32Array} ring_start
80
83
  * @param {Uint32Array} polygon_start
@@ -103,8 +106,7 @@ export class Engine {
103
106
  *
104
107
  * # Errors
105
108
  *
106
- * Throws (to JavaScript) when a WebGL object cannot be created, a shader fails to compile or the trails need a
107
- * table texture past the GPU's `MAX_TEXTURE_SIZE`
109
+ * Throws (to JavaScript) when the trails need a table past the GPU's largest texture
108
110
  * @param {number} particles
109
111
  * @param {number} trail
110
112
  * @returns {number}
@@ -117,14 +119,17 @@ export class Engine {
117
119
  return ret[0] >>> 0;
118
120
  }
119
121
  /**
120
- * Ground layer running `code` (GLSL ES 3.0 defining `vec4 ground(vec2 offset)`, see `render::ground`) over the
121
- * ground; `anchor`: Mercator point the offsets are taken from; bounds: Mercator box it shows in. Compilation errors
122
- * come back with the shader's info log (line numbers of `code`)
122
+ * Ground layer running `code` (WGSL defining `fn ground(offset: vec2f) -> vec4f`, see `render::ground`) over the
123
+ * ground; `names` and `types`: its uniforms (`f32`, `vec2f`, `vec4<u32>`, `mat4x4f`…), read as `u.<name>`;
124
+ * `anchor`: Mercator point the offsets are taken from; bounds: Mercator box it shows in. Compilation errors are
125
+ * reported in the console when the layer is first drawn
123
126
  *
124
127
  * # Errors
125
128
  *
126
- * Throws (to JavaScript) when `code` does not compile or link, with the shader's info log
129
+ * Throws (to JavaScript) on a uniform's name or type WGSL does not take
127
130
  * @param {string} code
131
+ * @param {string[]} names
132
+ * @param {string[]} types
128
133
  * @param {number} anchor_x
129
134
  * @param {number} anchor_y
130
135
  * @param {number} min_x
@@ -133,10 +138,14 @@ export class Engine {
133
138
  * @param {number} max_y
134
139
  * @returns {number}
135
140
  */
136
- addGround(code, anchor_x, anchor_y, min_x, min_y, max_x, max_y) {
141
+ addGround(code, names, types, anchor_x, anchor_y, min_x, min_y, max_x, max_y) {
137
142
  const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
138
143
  const len0 = WASM_VECTOR_LEN;
139
- const ret = wasm.engine_addGround(this.__wbg_ptr, ptr0, len0, anchor_x, anchor_y, min_x, min_y, max_x, max_y);
144
+ const ptr1 = passArrayJsValueToWasm0(names, wasm.__wbindgen_malloc);
145
+ const len1 = WASM_VECTOR_LEN;
146
+ const ptr2 = passArrayJsValueToWasm0(types, wasm.__wbindgen_malloc);
147
+ const len2 = WASM_VECTOR_LEN;
148
+ const ret = wasm.engine_addGround(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, anchor_x, anchor_y, min_x, min_y, max_x, max_y);
140
149
  if (ret[2]) {
141
150
  throw takeFromExternrefTable0(ret[1]);
142
151
  }
@@ -148,8 +157,7 @@ export class Engine {
148
157
  *
149
158
  * # Errors
150
159
  *
151
- * Throws (to JavaScript) when a WebGL object cannot be created or a shader fails to compile (the error carries its
152
- * info log), or when the features or the lines need a table texture past the GPU's `MAX_TEXTURE_SIZE`
160
+ * Throws (to JavaScript) when the features or the lines need a table past the GPU's largest texture
153
161
  * @param {Float64Array} points
154
162
  * @param {Uint32Array} start
155
163
  * @param {Uint32Array} feature
@@ -175,13 +183,9 @@ export class Engine {
175
183
  }
176
184
  /**
177
185
  * A glTF / GLB model (its URL, a `blob:` one for data of the page) drawn at each instance of `instances`
178
- * (`INSTANCE_NUMBERS` numbers each: longitude, latitude, altitude, heading, pitch, roll in degrees, scale);
179
- * `ground`: altitudes above the relief, else above the ellipsoid
180
- *
181
- * # Errors
182
- *
183
- * Throws (to JavaScript) when a WebGL object cannot be created or a shader fails to compile (the error carries its
184
- * info log). A model that fails to load or decode does not throw: the layer stays empty
186
+ * (`geo::models::INSTANCE_NUMBERS` numbers each: longitude, latitude, altitude, heading, pitch, roll in degrees,
187
+ * scale); `ground`: altitudes above the relief, else above the ellipsoid. A model that fails to load or decode
188
+ * leaves the layer empty
185
189
  * @param {string} url
186
190
  * @param {Float64Array} instances
187
191
  * @param {boolean} ground
@@ -193,23 +197,20 @@ export class Engine {
193
197
  const ptr1 = passArrayF64ToWasm0(instances, wasm.__wbindgen_malloc);
194
198
  const len1 = WASM_VECTOR_LEN;
195
199
  const ret = wasm.engine_addModels(this.__wbg_ptr, ptr0, len0, ptr1, len1, ground);
196
- if (ret[2]) {
197
- throw takeFromExternrefTable0(ret[1]);
198
- }
199
- return ret[0] >>> 0;
200
+ return ret >>> 0;
200
201
  }
201
202
  /**
202
203
  * Network of `mercator.length / 2` nodes (Mercator [0, 1], y towards the south, interleaved: converted by the
203
204
  * JavaScript side, where `Math.tan` and `Math.log` are much faster than in WebAssembly) and `edges.length / 2`
204
- * edges (node index pairs, interleaved). `line_start` and `line_points`: the line of each edge from A to B, points
205
- * `line_start[e] .. line_start[e + 1]` of `line_points` (Mercator, interleaved; straight if fewer than two). `costs`: per edge, the
206
- * cost of travelling it from A to B then from B to A; without, values are interpolated along the edges.
205
+ * edges (node index pairs, interleaved). `line_start` and `line_points`: the line of each edge from A to B,
206
+ * points `line_start[e] .. line_start[e + 1]` of `line_points` (Mercator, interleaved; straight if fewer than
207
+ * two). `costs`: per edge, the cost of travelling it from A to B then from B to A; without, values are
208
+ * interpolated along the edges.
207
209
  *
208
210
  * # Errors
209
211
  *
210
- * Throws (to JavaScript) when `style` is not 25 numbers, `edges` is not node pairs or names a node past
211
- * those of `mercator`, the nodes or edges need a table texture past the GPU's `MAX_TEXTURE_SIZE`, or when
212
- * a WebGL object cannot be created or a shader fails to compile (the error carries its info log)
212
+ * Throws (to JavaScript) when `style` is not 25 numbers, `edges` is not node pairs or names a node past those of
213
+ * `mercator`, or the nodes or edges need a table past the GPU's largest texture
213
214
  * @param {Float64Array} mercator
214
215
  * @param {Uint32Array} edges
215
216
  * @param {Uint32Array | null | undefined} line_start
@@ -241,11 +242,7 @@ export class Engine {
241
242
  * A COPC point cloud from its URL (HTTP range requests). `resolve(wkt)` gives the CRS of the file from its WKT
242
243
  * (undefined if it has none): its inverse projection, whether its altitudes are above the geoid, the metres of
243
244
  * a unit of z; it may throw (an unknown CRS), the layer then stays empty
244
- *
245
- * # Errors
246
- *
247
- * Throws (to JavaScript) when a WebGL object cannot be created or a shader fails to compile (the error carries its
248
- * info log). The file itself is read later: a bad file, or a `resolve` that throws, leaves the layer empty
245
+ * The file is read later: a bad file, or a `resolve` that throws, leaves the layer empty
249
246
  * @param {string} url
250
247
  * @param {(wkt: string | undefined) => PointCloudCrs} resolve
251
248
  * @returns {number}
@@ -254,19 +251,12 @@ export class Engine {
254
251
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
255
252
  const len0 = WASM_VECTOR_LEN;
256
253
  const ret = wasm.engine_addPointCloud(this.__wbg_ptr, ptr0, len0, resolve);
257
- if (ret[2]) {
258
- throw takeFromExternrefTable0(ret[1]);
259
- }
260
- return ret[0] >>> 0;
254
+ return ret >>> 0;
261
255
  }
262
256
  /**
263
257
  * Raster tiles in Web Mercator; `url` holds {z}, {x} and {y}. `size`: side of the tiles' textures (256 by
264
258
  * default); `loader`: draws each tile instead of fetching `url`, `(z, x, y, signal) => Promise<ImageBitmap |
265
- * null>`, an image of `size` × `size` (null: nothing there)
266
- *
267
- * # Errors
268
- *
269
- * Throws (to JavaScript) when the texture holding the layer's tiles cannot be created
259
+ * null>`, an image of `size` × `size` (null: nothing there); `ground: false`: draped on 3D layers only
270
260
  * @param {string} url
271
261
  * @param {number} min_z
272
262
  * @param {number} max_z
@@ -274,24 +264,21 @@ export class Engine {
274
264
  * @param {number} saturation
275
265
  * @param {number | null | undefined} size
276
266
  * @param {((z: number, x: number, y: number, signal: AbortSignal) => Promise<ImageBitmap | null>) | undefined} loader
267
+ * @param {boolean | null} [ground]
277
268
  * @returns {number}
278
269
  */
279
- addRaster(url, min_z, max_z, opacity, saturation, size, loader) {
270
+ addRaster(url, min_z, max_z, opacity, saturation, size, loader, ground) {
280
271
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
281
272
  const len0 = WASM_VECTOR_LEN;
282
- const ret = wasm.engine_addRaster(this.__wbg_ptr, ptr0, len0, min_z, max_z, opacity, saturation, isLikeNone(size) ? Number.MAX_SAFE_INTEGER : (size) >> 0, isLikeNone(loader) ? 0 : addToExternrefTable0(loader));
283
- if (ret[2]) {
284
- throw takeFromExternrefTable0(ret[1]);
285
- }
286
- return ret[0] >>> 0;
273
+ const ret = wasm.engine_addRaster(this.__wbg_ptr, ptr0, len0, min_z, max_z, opacity, saturation, isLikeNone(size) ? Number.MAX_SAFE_INTEGER : (size) >> 0, isLikeNone(loader) ? 0 : addToExternrefTable0(loader), isLikeNone(ground) ? 0xFFFFFF : ground ? 1 : 0);
274
+ return ret >>> 0;
287
275
  }
288
276
  /**
289
277
  * An empty symbol layer
290
278
  *
291
279
  * # Errors
292
280
  *
293
- * Throws (to JavaScript) when a WebGL object cannot be created or a shader fails to compile (the error carries its
294
- * info log)
281
+ * Never in practice: its tables start empty
295
282
  * @returns {number}
296
283
  */
297
284
  addSymbols() {
@@ -306,10 +293,7 @@ export class Engine {
306
293
  * screen-space error (CSS pixels) above which a tile is refined; 16 is the usual value, lower is finer.
307
294
  * `geoid`: its heights are altitudes (NGF-IGN69), each tile raised by the RAF20 geoid onto the relief.
308
295
  *
309
- * # Errors
310
- *
311
- * Throws (to JavaScript) when one of the layer's programs fails to compile or link (the error carries
312
- * its info log). The tileset itself is read later: a bad one leaves the layer empty, it does not throw
296
+ * The tileset is read later: a bad one leaves the layer empty
313
297
  * @param {string} url
314
298
  * @param {number} max_error
315
299
  * @param {boolean | null} [geoid]
@@ -319,18 +303,15 @@ export class Engine {
319
303
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
320
304
  const len0 = WASM_VECTOR_LEN;
321
305
  const ret = wasm.engine_addTiles3d(this.__wbg_ptr, ptr0, len0, max_error, isLikeNone(geoid) ? 0xFFFFFF : geoid ? 1 : 0);
322
- if (ret[2]) {
323
- throw takeFromExternrefTable0(ret[1]);
324
- }
325
- return ret[0] >>> 0;
306
+ return ret >>> 0;
326
307
  }
327
308
  /**
328
309
  * An empty layer of vector tiles drawn as geometry: its style layers come with `setVectorSublayers`, its tiles
329
- * with `setVectorTile`
310
+ * with `setVectorTile` or `setVectorTileMesh`
330
311
  *
331
312
  * # Errors
332
313
  *
333
- * Throws (to JavaScript) when a shader fails to compile (the error carries its info log)
314
+ * Never in practice: the layer starts empty
334
315
  * @returns {number}
335
316
  */
336
317
  addVectorTiles() {
@@ -340,6 +321,22 @@ export class Engine {
340
321
  }
341
322
  return ret[0] >>> 0;
342
323
  }
324
+ /**
325
+ * The backend drawing: "browserwebgpu" or "gl"
326
+ * @returns {string}
327
+ */
328
+ backend() {
329
+ let deferred1_0;
330
+ let deferred1_1;
331
+ try {
332
+ const ret = wasm.engine_backend(this.__wbg_ptr);
333
+ deferred1_0 = ret[0];
334
+ deferred1_1 = ret[1];
335
+ return getStringFromWasm0(ret[0], ret[1]);
336
+ } finally {
337
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
338
+ }
339
+ }
343
340
  /**
344
341
  * Longitudes and latitudes the view covers on the ground, `[west, south, east, north]` (degrees): the screen's
345
342
  * border cast on the ground, or on the far plane where it passes the horizon
@@ -384,7 +381,23 @@ export class Engine {
384
381
  wasm.engine_clearViewshed(this.__wbg_ptr);
385
382
  }
386
383
  /**
387
- * Model-view-projection matrix (16 numbers, column-major, for `uniformMatrix4fv`) of the local frame at a
384
+ * The engine of `canvas`, `redraw` called when it needs a new frame; `antialias`: the 3D multisampled (default
385
+ * true). Asynchronous: the device is asked for
386
+ *
387
+ * # Errors
388
+ *
389
+ * Throws (to JavaScript) when the canvas gives no device ("WebGPU is not available" through WebGPU)
390
+ * @param {HTMLCanvasElement} canvas
391
+ * @param {() => void} redraw
392
+ * @param {boolean | null} [antialias]
393
+ * @returns {Promise<Engine>}
394
+ */
395
+ static create(canvas, redraw, antialias) {
396
+ const ret = wasm.engine_create(canvas, redraw, isLikeNone(antialias) ? 0xFFFFFF : antialias ? 1 : 0);
397
+ return ret;
398
+ }
399
+ /**
400
+ * Model-view-projection matrix (16 numbers, column-major, WebGPU's clip depth from 0 to 1) of the local frame at a
388
401
  * longitude, latitude (degrees) and altitude (metres): x east, y north, z up, in metres. Undefined outside the
389
402
  * callback of a custom layer. Static: the engine is borrowed while it draws
390
403
  * @param {number} lon
@@ -424,9 +437,15 @@ export class Engine {
424
437
  return ret;
425
438
  }
426
439
  /**
427
- * Position under a screen point (CSS pixels), undefined above the horizon; on the relief itself: from the copy of
428
- * its tiles kept on the CPU, the drawn ground read back from the GPU only where none is there (a read back waits
429
- * for the frame: called during a move, it stalls it)
440
+ * The `GPUDevice` the engine draws with, for the custom layers' objects; undefined on the WebGL2 fallback
441
+ * @returns {GPUDevice | undefined}
442
+ */
443
+ gpuDevice() {
444
+ const ret = wasm.engine_gpuDevice(this.__wbg_ptr);
445
+ return ret;
446
+ }
447
+ /**
448
+ * Position under a screen point (CSS pixels), undefined above the horizon
430
449
  * @param {number} x
431
450
  * @param {number} y
432
451
  * @returns {[lon: number, lat: number] | undefined}
@@ -436,8 +455,8 @@ export class Engine {
436
455
  return ret;
437
456
  }
438
457
  /**
439
- * Colors an extrusion layer by the node values of network layer `network` (undefined: by its own values):
440
- * each block takes min(value(A) + cost from A, value(B) + cost from B) from its anchors (`setExtrusionAnchors`),
458
+ * Colors an extrusion layer by the node values of network layer `network` (undefined: by its own values): each
459
+ * block takes min(value(A) + cost from A, value(B) + cost from B) from its anchors (`setExtrusionAnchors`),
441
460
  * through the layer's ramp, up to `max` (above: its own color)
442
461
  * @param {number} id
443
462
  * @param {number | null | undefined} network
@@ -447,9 +466,9 @@ export class Engine {
447
466
  wasm.engine_linkExtrusionNetwork(this.__wbg_ptr, id, isLikeNone(network) ? Number.MAX_SAFE_INTEGER : (network) >>> 0, max);
448
467
  }
449
468
  /**
450
- * Model-view-projection matrix (16 numbers, column-major) of the local frame at a longitude, latitude (degrees)
451
- * and altitude (metres), x east, y north, z up, in metres, for the last frame drawn (else the camera): the 3D
452
- * overlays of the page (`Panel`) placed with it after each frame
469
+ * Model-view-projection matrix (16 numbers, column-major, WebGL's clip depth) of the local frame at a longitude,
470
+ * latitude (degrees) and altitude (metres), x east, y north, z up, in metres, for the last frame drawn (else the
471
+ * camera): the 3D overlays of the page (`Panel`) placed with it after each frame
453
472
  * @param {number} lon
454
473
  * @param {number} lat
455
474
  * @param {number} altitude
@@ -461,6 +480,14 @@ export class Engine {
461
480
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
462
481
  return v1;
463
482
  }
483
+ /**
484
+ * The largest texture the device takes (pixels a side): the symbol layers' atlases stay within it
485
+ * @returns {number}
486
+ */
487
+ maxTextureSize() {
488
+ const ret = wasm.engine_maxTextureSize(this.__wbg_ptr);
489
+ return ret >>> 0;
490
+ }
464
491
  /**
465
492
  * Moves a layer to a drawing position (0 = bottom)
466
493
  * @param {number} id
@@ -478,25 +505,6 @@ export class Engine {
478
505
  const ret = wasm.engine_networkStats(this.__wbg_ptr, id);
479
506
  return ret;
480
507
  }
481
- /**
482
- * `redraw` is called when the engine needs a new frame (a tile arrived)
483
- *
484
- * # Errors
485
- *
486
- * Throws (to JavaScript) when the canvas gives no WebGL2 context ("WebGL2 is not available"), or when a WebGL
487
- * object of the globe, the sky or the raster pass cannot be created or one of their shaders fails to compile
488
- * @param {HTMLCanvasElement} canvas
489
- * @param {() => void} redraw
490
- */
491
- constructor(canvas, redraw) {
492
- const ret = wasm.engine_new(canvas, redraw);
493
- if (ret[2]) {
494
- throw takeFromExternrefTable0(ret[1]);
495
- }
496
- this.__wbg_ptr = ret[0];
497
- EngineFinalization.register(this, this.__wbg_ptr, this);
498
- return this;
499
- }
500
508
  /**
501
509
  * Drags the ground from one screen point to another (CSS pixels); in relief, the ground point grabbed stays
502
510
  * under the cursor
@@ -508,24 +516,6 @@ export class Engine {
508
516
  pan(x0, y0, x1, y1) {
509
517
  wasm.engine_pan(this.__wbg_ptr, x0, y0, x1, y1);
510
518
  }
511
- /**
512
- * Feature under a screen point (CSS pixels), or the nearest one within `radius` CSS pixels: its layer and its
513
- * index there (the edge of a network, the feature of a line, circle or fill layer), undefined if none. The
514
- * pickable layers are drawn with each feature colored by its number; then the fills are tested on the ground.
515
- * `only`: the ids of the layers to look in (all if undefined): the others are not drawn and hide nothing.
516
- * Reads the pixels back at once (the GPU finishes its work first): for clicks; `requestPick` for the hover
517
- * @param {number} x
518
- * @param {number} y
519
- * @param {number | null} [radius]
520
- * @param {Uint32Array | null} [only]
521
- * @returns {PickHit | undefined}
522
- */
523
- pick(x, y, radius, only) {
524
- var ptr0 = isLikeNone(only) ? 0 : passArray32ToWasm0(only, wasm.__wbindgen_malloc);
525
- var len0 = WASM_VECTOR_LEN;
526
- const ret = wasm.engine_pick(this.__wbg_ptr, x, y, !isLikeNone(radius), isLikeNone(radius) ? 0 : radius, ptr0, len0);
527
- return ret;
528
- }
529
519
  /**
530
520
  * What a point cloud says of itself, undefined before its head is read
531
521
  * @param {number} id
@@ -536,8 +526,8 @@ export class Engine {
536
526
  return ret;
537
527
  }
538
528
  /**
539
- * The point of a point cloud picked by `pick` or `pollPick` (its index there), read back from the GPU; undefined
540
- * once it is no longer drawn
529
+ * The point of a point cloud picked by `pollPick` (its index there): read back with the answer; undefined for
530
+ * another
541
531
  * @param {number} id
542
532
  * @param {number} index
543
533
  * @returns {PointCloudPoint | undefined}
@@ -556,12 +546,13 @@ export class Engine {
556
546
  return ret;
557
547
  }
558
548
  /**
559
- * The answer to the last `requestPick` once the GPU has delivered it (then forgotten), undefined while it is not
560
- * there yet (or nothing was asked, or the context was lost)
549
+ * The answer to request `id` once the GPU has delivered it (then forgotten), undefined while it is not there yet
550
+ * (or for a request given up)
551
+ * @param {number} id
561
552
  * @returns {PickResult | undefined}
562
553
  */
563
- pollPick() {
564
- const ret = wasm.engine_pollPick(this.__wbg_ptr);
554
+ pollPick(id) {
555
+ const ret = wasm.engine_pollPick(this.__wbg_ptr, id);
565
556
  return ret;
566
557
  }
567
558
  /**
@@ -603,7 +594,7 @@ export class Engine {
603
594
  wasm.engine_removeExtrusionBatch(this.__wbg_ptr, id, key);
604
595
  }
605
596
  /**
606
- * Removes a layer and frees its GPU objects; the other layers forget it (a layer that referred to it)
597
+ * Removes a layer and frees its GPU objects (as it drops)
607
598
  * @param {number} id
608
599
  */
609
600
  removeLayer(id) {
@@ -618,8 +609,8 @@ export class Engine {
618
609
  wasm.engine_removeVectorTile(this.__wbg_ptr, id, key);
619
610
  }
620
611
  /**
621
- * Draws a frame: the backdrop, the ground and the layers over it bottom to top, then the panorama and the
622
- * viewshed; returns true while tiles are still loading (a new frame will be asked through `redraw`)
612
+ * Draws a frame: the backdrop, the ground; returns true while tiles are still loading (a new frame will be asked
613
+ * through `redraw`)
623
614
  * @returns {boolean}
624
615
  */
625
616
  render() {
@@ -627,20 +618,21 @@ export class Engine {
627
618
  return ret !== 0;
628
619
  }
629
620
  /**
630
- * Asks what is under a screen point without waiting for the GPU (as `pick`, with the position there): the
631
- * picking pass is drawn now and read back into a buffer; `pollPick` gives the answer on a later frame. A new
632
- * request replaces the one in flight. Returns false if nothing could be asked (no WebGL2 fence)
621
+ * Asks what is under a screen point (CSS pixels), or nearest to it within `radius` CSS pixels, without waiting
622
+ * for the GPU: the picking pass is drawn now, its pixels read back later; `pollPick` gives the answer. `only`: the
623
+ * ids of the layers to look in (all if undefined): the others are not drawn and hide nothing. The request's
624
+ * number, never 0
633
625
  * @param {number} x
634
626
  * @param {number} y
635
627
  * @param {number | null} [radius]
636
628
  * @param {Uint32Array | null} [only]
637
- * @returns {boolean}
629
+ * @returns {number}
638
630
  */
639
631
  requestPick(x, y, radius, only) {
640
632
  var ptr0 = isLikeNone(only) ? 0 : passArray32ToWasm0(only, wasm.__wbindgen_malloc);
641
633
  var len0 = WASM_VECTOR_LEN;
642
634
  const ret = wasm.engine_requestPick(this.__wbg_ptr, x, y, !isLikeNone(radius), isLikeNone(radius) ? 0 : radius, ptr0, len0);
643
- return ret !== 0;
635
+ return ret >>> 0;
644
636
  }
645
637
  /**
646
638
  * Viewport in CSS pixels and device pixel ratio
@@ -682,8 +674,7 @@ export class Engine {
682
674
  * The body the map is drawn on: its equatorial radius (metres) and flattening (0 for a sphere), the halo of its
683
675
  * atmosphere around the globe (RGB 0-1 and its strength, 4 numbers; `undefined` for an airless body), and the
684
676
  * lowest and highest altitudes of its ground (metres: what its relief may raise into view). WGS 84, the Earth's
685
- * blue halo and the range of its relief worldwide (-450 m to 8900 m) by default; set before the layers and the
686
- * relief, whose shaders may take its size (`ISARD_CIRCUMFERENCE` of the ground layers)
677
+ * blue halo and the range of its relief worldwide (-450 m to 8900 m) by default
687
678
  * @param {number} radius
688
679
  * @param {number} flattening
689
680
  * @param {Float32Array | null | undefined} halo
@@ -733,8 +724,7 @@ export class Engine {
733
724
  *
734
725
  * # Errors
735
726
  *
736
- * Throws (to JavaScript) when the batch's features need an anchor texture past the GPU's
737
- * `MAX_TEXTURE_SIZE`, or when it cannot be created
727
+ * Throws (to JavaScript) when the batch's features need a table past the GPU's largest texture
738
728
  * @param {number} id
739
729
  * @param {number} key
740
730
  * @param {Float32Array} anchors
@@ -753,8 +743,7 @@ export class Engine {
753
743
  *
754
744
  * # Errors
755
745
  *
756
- * Throws (to JavaScript) when a WebGL buffer or vertex array of the batch cannot be created, or when
757
- * `feature_count` features need a table texture past the GPU's `MAX_TEXTURE_SIZE`
746
+ * Throws (to JavaScript) when `feature_count` features need a table past the GPU's largest texture
758
747
  * @param {number} id
759
748
  * @param {number} key
760
749
  * @param {Float64Array} points
@@ -982,7 +971,7 @@ export class Engine {
982
971
  *
983
972
  * # Errors
984
973
  *
985
- * Throws (to JavaScript) as `setGlyphPages` does: a size that is not positive, or the texture not created
974
+ * Throws (to JavaScript) as `setGlyphPages` does
986
975
  * @param {number} width
987
976
  * @param {number} height
988
977
  * @param {Uint8Array | null} [data]
@@ -1002,8 +991,8 @@ export class Engine {
1002
991
  *
1003
992
  * # Errors
1004
993
  *
1005
- * Throws (to JavaScript) when `width` or `height` is not positive (or their product overflows), `pages`
1006
- * is not 1 to 256, or the atlas texture cannot be created
994
+ * Throws (to JavaScript) when `width` or `height` is not positive or past the GPU's largest texture, or `pages`
995
+ * is not 1 to 256
1007
996
  * @param {number} width
1008
997
  * @param {number} height
1009
998
  * @param {number} pages
@@ -1026,42 +1015,40 @@ export class Engine {
1026
1015
  wasm.engine_setGroundBounds(this.__wbg_ptr, id, min_x, min_y, max_x, max_y);
1027
1016
  }
1028
1017
  /**
1029
- * Creates the texture of sampler `name` (`format`: r8, r8ui, r16ui, r16i, r32ui, r32f, rg16ui, rg32f, rgba8,
1030
- * rgba8ui, rgba16ui, rgba32f; `depth` 0 for 2D, else a 2D array of that many layers; `linear` filtering for the
1031
- * non-integer formats); `data`: its texels as bytes, or undefined for an empty texture
1018
+ * Creates the texture `name` of a ground layer (`format`: r8, r8ui, r16ui, r16i, r32ui, r32f, rg16ui, rg32f,
1019
+ * rgba8, rgba8ui, rgba16ui, rgba32f; `depth` 0 for 2D, else a 2D array of that many layers); `data`: its texels
1020
+ * as bytes, or undefined for an empty texture
1032
1021
  *
1033
1022
  * # Errors
1034
1023
  *
1035
- * Throws (to JavaScript) on an unknown `format`, a size not positive (or overflowing), `data` shorter
1036
- * than the texels, more textures than the layer takes, or a texture WebGL cannot create
1024
+ * Throws (to JavaScript) on an unknown `format`, a size of 0, `data` shorter than the texels, a name WGSL does not
1025
+ * take, or more textures than the layer takes
1037
1026
  * @param {number} id
1038
1027
  * @param {string} name
1039
1028
  * @param {string} format
1040
1029
  * @param {number} width
1041
1030
  * @param {number} height
1042
1031
  * @param {number} depth
1043
- * @param {boolean} linear
1044
1032
  * @param {Uint8Array | null} [data]
1045
1033
  */
1046
- setGroundTexture(id, name, format, width, height, depth, linear, data) {
1034
+ setGroundTexture(id, name, format, width, height, depth, data) {
1047
1035
  const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1048
1036
  const len0 = WASM_VECTOR_LEN;
1049
1037
  const ptr1 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1050
1038
  const len1 = WASM_VECTOR_LEN;
1051
1039
  var ptr2 = isLikeNone(data) ? 0 : passArray8ToWasm0(data, wasm.__wbindgen_malloc);
1052
1040
  var len2 = WASM_VECTOR_LEN;
1053
- const ret = wasm.engine_setGroundTexture(this.__wbg_ptr, id, ptr0, len0, ptr1, len1, width, height, depth, linear, ptr2, len2);
1041
+ const ret = wasm.engine_setGroundTexture(this.__wbg_ptr, id, ptr0, len0, ptr1, len1, width, height, depth, ptr2, len2);
1054
1042
  if (ret[1]) {
1055
1043
  throw takeFromExternrefTable0(ret[0]);
1056
1044
  }
1057
1045
  }
1058
1046
  /**
1059
- * A uniform of a ground layer's code, as numbers
1047
+ * A uniform of a ground layer's code, as numbers (column major for a matrix)
1060
1048
  *
1061
1049
  * # Errors
1062
1050
  *
1063
- * Throws (to JavaScript) when the shader has no uniform `name` (one its code does not use is removed
1064
- * by the compiler)
1051
+ * Throws (to JavaScript) when no uniform `name` was declared, or for a count of numbers not its type's
1065
1052
  * @param {number} id
1066
1053
  * @param {string} name
1067
1054
  * @param {Float64Array} values
@@ -1090,8 +1077,7 @@ export class Engine {
1090
1077
  *
1091
1078
  * # Errors
1092
1079
  *
1093
- * Throws (to JavaScript) when `width` or `height` is not positive (or their product overflows), or the
1094
- * atlas texture cannot be created
1080
+ * Throws (to JavaScript) when `width` or `height` is not positive or past the GPU's largest texture
1095
1081
  * @param {number} width
1096
1082
  * @param {number} height
1097
1083
  */
@@ -1123,8 +1109,8 @@ export class Engine {
1123
1109
  *
1124
1110
  * # Errors
1125
1111
  *
1126
- * Throws (to JavaScript) when the lines need a table texture past the GPU's `MAX_TEXTURE_SIZE`, or
1127
- * when it cannot be created; the layer then keeps its lines
1112
+ * Throws (to JavaScript) when the lines need a table past the GPU's largest texture; the layer then keeps its
1113
+ * lines
1128
1114
  * @param {number} id
1129
1115
  * @param {Float64Array} points
1130
1116
  * @param {Uint32Array} start
@@ -1241,19 +1227,13 @@ export class Engine {
1241
1227
  wasm.engine_setNetworkValues(this.__wbg_ptr, id, ptr0, len0);
1242
1228
  }
1243
1229
  /**
1244
- * The image of camera `index` of the panorama (the images sharing the size of the first)
1245
- *
1246
- * # Errors
1247
- *
1248
- * Throws (to JavaScript) when WebGL refuses the upload of `image` into the panorama's texture
1230
+ * The image of camera `index` of the panorama (the images sharing the size of the first), which the engine takes
1231
+ * (closes once copied)
1249
1232
  * @param {number} index
1250
1233
  * @param {ImageBitmap} image
1251
1234
  */
1252
1235
  setPanoramaImage(index, image) {
1253
- const ret = wasm.engine_setPanoramaImage(this.__wbg_ptr, index, image);
1254
- if (ret[1]) {
1255
- throw takeFromExternrefTable0(ret[0]);
1256
- }
1236
+ wasm.engine_setPanoramaImage(this.__wbg_ptr, index, image);
1257
1237
  }
1258
1238
  /**
1259
1239
  * Shows a panorama: at `lon`, `lat` (degrees) and `height` (metres above the ellipsoid), turned by `rotation`
@@ -1264,8 +1244,7 @@ export class Engine {
1264
1244
  *
1265
1245
  * # Errors
1266
1246
  *
1267
- * Throws (to JavaScript) when `rotation` holds fewer than 9 numbers, or when a WebGL object cannot be created or a
1268
- * shader fails to compile (the error carries its info log)
1247
+ * Throws (to JavaScript) when `rotation` holds fewer than 9 numbers
1269
1248
  * @param {number} lon
1270
1249
  * @param {number} lat
1271
1250
  * @param {number} height
@@ -1286,8 +1265,7 @@ export class Engine {
1286
1265
  }
1287
1266
  /**
1288
1267
  * Sets the point the next turns and tilts go around (`rotate`): what is drawn under a screen point (CSS
1289
- * pixels), a roof or a mesh as the relief. Read back from the last frame (a stall): once, where a drag starts.
1290
- * Returns whether something was drawn there; over nothing, the turns go around the center
1268
+ * pixels). Returns whether something was drawn there; over nothing, the turns go around the center
1291
1269
  * @param {number} x
1292
1270
  * @param {number} y
1293
1271
  * @returns {boolean}
@@ -1349,25 +1327,17 @@ export class Engine {
1349
1327
  * The sun casting shadows and the night: its azimuth (degrees clockwise from north) and altitude (degrees above
1350
1328
  * the horizon), the shadows' opacity (0 to 1; none under the horizon or not a number), how dark the night is (0 to
1351
1329
  * 1: the frame tinted, the lights of the layers on). Neither shadows nor night: nothing drawn
1352
- *
1353
- * # Errors
1354
- *
1355
- * Throws (to JavaScript) when a WebGL object cannot be created or the pass fails to compile
1356
1330
  * @param {number} azimuth
1357
1331
  * @param {number} altitude
1358
1332
  * @param {number} opacity
1359
1333
  * @param {number} night
1360
1334
  */
1361
1335
  setSun(azimuth, altitude, opacity, night) {
1362
- const ret = wasm.engine_setSun(this.__wbg_ptr, azimuth, altitude, opacity, night);
1363
- if (ret[1]) {
1364
- throw takeFromExternrefTable0(ret[0]);
1365
- }
1336
+ wasm.engine_setSun(this.__wbg_ptr, azimuth, altitude, opacity, night);
1366
1337
  }
1367
1338
  /**
1368
- * Shows `layers` on one side of a vertical line only, the others beneath on the other side (comparing two states
1369
- * of a place): left of `x` (CSS pixels from the left of the canvas), or right of it; `others` on the other side
1370
- * only (two meshes of the same place, each on its side, never drawn over each other); a non-finite `x` stops
1339
+ * Shows `layers` left of `x` (CSS pixels from the left of the canvas; right of it if `right`), `others` on the
1340
+ * other side only; `x` not a number, or no layer: no swipe
1371
1341
  * @param {number} x
1372
1342
  * @param {boolean} right
1373
1343
  * @param {Uint32Array} layers
@@ -1406,8 +1376,8 @@ export class Engine {
1406
1376
  *
1407
1377
  * # Errors
1408
1378
  *
1409
- * Throws (to JavaScript) when the labels need a table texture past the GPU's `MAX_TEXTURE_SIZE`, or
1410
- * when it cannot be created; the layer then keeps its labels
1379
+ * Throws (to JavaScript) when the labels need a table past the GPU's largest texture; the layer then keeps its
1380
+ * labels
1411
1381
  * @param {number} id
1412
1382
  * @param {Float64Array} anchors
1413
1383
  * @param {Float32Array} boxes
@@ -1435,15 +1405,10 @@ export class Engine {
1435
1405
  * Relief under the raster layers, from raw altitudes (`image/x-bil;bits=32`, 256 × 256, or the same followed by
1436
1406
  * the validity mask of an `ArcGIS` raw grid): `url` is a template with `{bbox}` (WMS `GetMap` in EPSG:3857, or in
1437
1407
  * the Mercator metres of another body) or `{z}/{x}/{y}`; `undefined` turns it off. `exaggeration` scales the
1438
- * heights (1: true relief); `max_z`: finest level loaded (up to 15, from 6 on the Earth, coarser on bodies of a
1439
- * larger relief for their size: `terrain_levels`); `geoid`: altitudes raised by the RAF20 geoid height (heights
1440
- * above the ellipsoid, those of 3D Tiles; over France, on the Earth only), else left as served (the default);
1441
- * `loader`: gives the
1442
- * altitudes of each tile instead of fetching `url` (an encoding decoded by the page: Terrarium, Terrain-RGB)
1443
- *
1444
- * # Errors
1445
- *
1446
- * Throws (to JavaScript) when the texture holding the relief's tiles cannot be created
1408
+ * heights (1: true relief); `max_z`: finest level loaded; `geoid`: altitudes raised by the RAF20 geoid height
1409
+ * (heights above the ellipsoid, those of 3D Tiles; over France, on the Earth only), else left as served (the
1410
+ * default); `loader`: gives the altitudes of each tile instead of fetching `url` (an encoding decoded by the
1411
+ * page: Terrarium, Terrain-RGB)
1447
1412
  * @param {string | null | undefined} url
1448
1413
  * @param {number} exaggeration
1449
1414
  * @param {number | null | undefined} max_z
@@ -1453,20 +1418,27 @@ export class Engine {
1453
1418
  setTerrain(url, exaggeration, max_z, geoid, loader) {
1454
1419
  var ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1455
1420
  var len0 = WASM_VECTOR_LEN;
1456
- const ret = wasm.engine_setTerrain(this.__wbg_ptr, ptr0, len0, exaggeration, isLikeNone(max_z) ? 0xFFFFFF : max_z, isLikeNone(geoid) ? 0xFFFFFF : geoid ? 1 : 0, isLikeNone(loader) ? 0 : addToExternrefTable0(loader));
1457
- if (ret[1]) {
1458
- throw takeFromExternrefTable0(ret[0]);
1459
- }
1421
+ wasm.engine_setTerrain(this.__wbg_ptr, ptr0, len0, exaggeration, isLikeNone(max_z) ? 0xFFFFFF : max_z, isLikeNone(geoid) ? 0xFFFFFF : geoid ? 1 : 0, isLikeNone(loader) ? 0 : addToExternrefTable0(loader));
1460
1422
  }
1461
1423
  /**
1462
1424
  * Pool of workers that fetch and decode 3D Tiles content off the main thread: an object with
1463
1425
  * `load(id, url, transform, yUp, reload, priority) → Promise<{ anchor, primitives }>` and `abort(id)`. Without
1464
1426
  * it, tiles are decoded on the main thread. Set it before adding 3D Tiles layers.
1465
- * @param {TileLoaderLike | null} loader
1427
+ * @param {import('./isard_tiles3d.js').TileLoaderLike | null} loader
1466
1428
  */
1467
1429
  setTileLoader(loader) {
1468
1430
  wasm.engine_setTileLoader(this.__wbg_ptr, loader);
1469
1431
  }
1432
+ /**
1433
+ * A raster layer draped on a 3D Tiles layer's roofs, or all its faces (`raster` undefined: none)
1434
+ * @param {number} id
1435
+ * @param {number | null | undefined} raster
1436
+ * @param {boolean} all_faces
1437
+ * @param {number} opacity
1438
+ */
1439
+ setTiles3dDrape(id, raster, all_faces, opacity) {
1440
+ wasm.engine_setTiles3dDrape(this.__wbg_ptr, id, isLikeNone(raster) ? Number.MAX_SAFE_INTEGER : (raster) >>> 0, all_faces, opacity);
1441
+ }
1470
1442
  /**
1471
1443
  * Whether the walls of a 3D Tiles layer's untextured meshes show their windows: glass by day, some lit at night
1472
1444
  * @param {number} id
@@ -1499,14 +1471,13 @@ export class Engine {
1499
1471
  }
1500
1472
  /**
1501
1473
  * The style layers of a vector tile layer, in drawing order: per layer, its kind (0 fill, 1 line, 2 extrusion, 3
1502
- * circle), its zoom range
1503
- * (two numbers: shown from the first, included, to the second, excluded), whether it shows (0 or 1), its dashes
1504
- * (four numbers: dash, gap, dash, gap, in line widths; 0: solid), its opacity as zoom stops (four zooms then four
1505
- * values; missing: opaque), the caps of its lines' ends (0 butt, 1 round, 2 square; missing: round), whether its
1506
- * lines glow at night (streets; 0 or 1), the joins of its lines (two numbers: 0 round, 1 miter, 2 bevel, then the
1507
- * miter limit in line widths; missing: round), the translation of its fills or lines (three numbers: x and y in CSS
1508
- * pixels, x right and y down, then 0 if it turns with the map, 1 if it stays on the screen; missing: none), whether its
1509
- * fills have patterns (0 or 1)
1474
+ * circle), its zoom range (two numbers: shown from the first, included, to the second, excluded), whether it shows
1475
+ * (0 or 1), its dashes (four numbers: dash, gap, dash, gap, in line widths; 0: solid), its opacity as zoom stops
1476
+ * (four zooms then four values; missing: opaque), the caps of its lines' ends (0 butt, 1 round, 2 square; missing:
1477
+ * round), whether its lines glow at night (streets; 0 or 1), the joins of its lines (two numbers: 0 round, 1
1478
+ * miter, 2 bevel, then the miter limit in line widths; missing: round), the translation of its fills or lines
1479
+ * (three numbers: x and y in CSS pixels, x right and y down, then 0 if it turns with the map, 1 if it stays on the
1480
+ * screen; missing: none), whether its fills have patterns (0 or 1)
1510
1481
  * @param {number} id
1511
1482
  * @param {Uint8Array} kinds
1512
1483
  * @param {Float64Array} zooms
@@ -1544,18 +1515,18 @@ export class Engine {
1544
1515
  }
1545
1516
  /**
1546
1517
  * Adds or replaces tile `key` of a vector tile layer ready for the GPU, as the basemap workers make it (the
1547
- * tessellation module): its polygons as for `setVectorTile` (picked here; their prisms built here if drawn in
1548
- * relief while `prism` is false), the vertices of its fills (`shapes::Vertex` as bytes, each with its feature),
1549
- * their triangles, per sublayer its top cap and the rest of its prism (`fill_ranges`: four numbers, first and
1550
- * end of each), its line pieces (`pieces::Piece` as bytes), the line table (feature and length of each line),
1518
+ * tessellation module): its polygons as for `setVectorTile` (their prisms built here if drawn in relief while
1519
+ * `prism` is false), the vertices of its fills (`shapes::Vertex` as bytes, each with its feature), their
1520
+ * triangles, per sublayer its top cap and the rest of its prism (`fill_ranges`: four numbers, first and end of
1521
+ * each), its line pieces (`vector_tiles::TilePiece` as bytes), the line table (feature and length of each line),
1551
1522
  * per sublayer its pieces (`line_ranges`: first, end), the blocks of its extrusion sublayers (`shapes::Block` as
1552
1523
  * bytes), their triangles, per sublayer its blocks' triangles (`block_ranges`: first, end), the extent of its
1553
1524
  * points (`bounds`: min x, min y, max x, max y), its features' sublayers (one each, as for `setVectorTile`)
1554
1525
  *
1555
1526
  * # Errors
1556
1527
  *
1557
- * Throws (to JavaScript) when the vertices, pieces or blocks are cut short, when a WebGL object of the tile cannot be
1558
- * created, or when its features or lines need a table texture past the GPU's `MAX_TEXTURE_SIZE`
1528
+ * Throws (to JavaScript) when the vertices, pieces or blocks are cut short, or when its features or lines need a
1529
+ * table past the GPU's largest texture
1559
1530
  * @param {number} id
1560
1531
  * @param {number} key
1561
1532
  * @param {Float64Array} points
@@ -1637,19 +1608,16 @@ export class Engine {
1637
1608
  * Adds or replaces tile `key` of a vector tile layer: its polygons as for `addFills` (`fill_start`: the first
1638
1609
  * polygon of each sublayer, and the end; those of an extrusion sublayer raised into blocks), its lines as for
1639
1610
  * `addLines` (`line_start`: the first line of each sublayer, and the end), its features' sublayers (one each, the
1640
- * features of a sublayer after those of the one before), styled as an
1641
- * extrusion layer's (`setFeatureStyle` with the key: a color, then a line's width or a block's height and base);
1642
- * `tile`: the corners of the tile they are cut to (west, north, east, south; empty: none), along whose edges no
1643
- * wall of a block rises; `roofs` and `roof_heights`: per polygon, the shape and height of its block's roof
1644
- * (`shapes::Roofs`: 0 flat, 1 to 5 `RoofShape::number`, 255 generated from its outline; metres, not a number: as
1645
- * its slopes make it; empty: flat), the whole outlines of the buildings the tile cuts (`roof_outlines`, interleaved
1646
- * Mercator points, `roof_outline_start`: where each polygon's starts, and the end), `roof_metres` the metres per
1647
- * Mercator unit at the tile
1611
+ * features of a sublayer after those of the one before), styled as an extrusion layer's (`setFeatureStyle` with
1612
+ * the key); `tile`: the corners of the tile they are cut to (west, north, east, south; empty: none), along whose
1613
+ * edges no wall of a block rises; `roofs` and `roof_heights`: per polygon, the shape and height of its block's
1614
+ * roof (`shapes::Roofs`), the whole outlines of the buildings the tile cuts (`roof_outlines`, interleaved Mercator
1615
+ * points, `roof_outline_start`: where each polygon's starts, and the end), `roof_metres` the metres per Mercator
1616
+ * unit at the tile
1648
1617
  *
1649
1618
  * # Errors
1650
1619
  *
1651
- * Throws (to JavaScript) when a WebGL object of the tile cannot be created, or when its features or lines need a
1652
- * table texture past the GPU's `MAX_TEXTURE_SIZE`
1620
+ * Throws (to JavaScript) when its features or lines need a table past the GPU's largest texture
1653
1621
  * @param {number} id
1654
1622
  * @param {number} key
1655
1623
  * @param {Float64Array} points
@@ -1711,11 +1679,6 @@ export class Engine {
1711
1679
  * only heading, tilt, angles of view across and up (degrees), the heading NaN to look all around. What some
1712
1680
  * observer sees is tinted with `visible`, what is hidden from all those that reach it with `hidden` (RGB 0-1),
1713
1681
  * at `opacity`; `outline` (RGB 0-1, or empty) the color of the cones' edges drawn in 3D
1714
- *
1715
- * # Errors
1716
- *
1717
- * Throws (to JavaScript) when, on the first call, a WebGL object cannot be created or a shader fails to compile
1718
- * (the error carries its info log)
1719
1682
  * @param {Float64Array} observers
1720
1683
  * @param {Float32Array} visible
1721
1684
  * @param {Float32Array} hidden
@@ -1731,10 +1694,7 @@ export class Engine {
1731
1694
  const len2 = WASM_VECTOR_LEN;
1732
1695
  const ptr3 = passArrayF32ToWasm0(outline, wasm.__wbindgen_malloc);
1733
1696
  const len3 = WASM_VECTOR_LEN;
1734
- const ret = wasm.engine_setViewshed(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, opacity, ptr3, len3);
1735
- if (ret[1]) {
1736
- throw takeFromExternrefTable0(ret[0]);
1737
- }
1697
+ wasm.engine_setViewshed(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, opacity, ptr3, len3);
1738
1698
  }
1739
1699
  /**
1740
1700
  * Lowest and highest zoom levels the camera accepts
@@ -1765,8 +1725,9 @@ export class Engine {
1765
1725
  }
1766
1726
  /**
1767
1727
  * The height above the relief (metres) of the top of what stands at a position (degrees): a roof, a mesh, 0 on
1768
- * the bare ground; undefined where nothing of the last frame is there. The scene is drawn from above into a single
1769
- * pixel and read back (a stall, cheap: one pixel to fill)
1728
+ * the bare ground; undefined where nothing of the last frame is there, or until measured: the scene is drawn
1729
+ * looking down at it after a frame and read back a frame or two later (a frame is asked for), the answer kept and
1730
+ * measured again every 250 ms at most
1770
1731
  * @param {number} lon
1771
1732
  * @param {number} lat
1772
1733
  * @returns {any}
@@ -1777,8 +1738,8 @@ export class Engine {
1777
1738
  }
1778
1739
  /**
1779
1740
  * What is drawn under a screen point (CSS pixels): longitude, latitude and its height above the relief (metres),
1780
- * on a roof, a wall or a mesh as on the ground; undefined where nothing was drawn. The scene is drawn again and
1781
- * read back (a stall): for clicks and drags
1741
+ * on a roof, a wall or a mesh as on the ground; undefined where nothing was drawn. From the last copy of the
1742
+ * scene's depth (a frame or two old, one pixel in 4 CSS pixels): at once, without waiting for the GPU
1782
1743
  * @param {number} x
1783
1744
  * @param {number} y
1784
1745
  * @returns {[lon: number, lat: number, height: number] | undefined}
@@ -1788,8 +1749,8 @@ export class Engine {
1788
1749
  return ret;
1789
1750
  }
1790
1751
  /**
1791
- * Compressed texture formats of the GPU (their WebGL extensions get enabled), for the KTX2 transcoding
1792
- * @returns {TextureFormats}
1752
+ * Compressed texture formats of the GPU, for the KTX2 transcoding
1753
+ * @returns {import('./isard_tiles3d.js').TextureFormats}
1793
1754
  */
1794
1755
  textureFormats() {
1795
1756
  const ret = wasm.engine_textureFormats(this.__wbg_ptr);
@@ -1848,8 +1809,8 @@ export class Engine {
1848
1809
  *
1849
1810
  * # Errors
1850
1811
  *
1851
- * Throws (to JavaScript) when there is no texture `name`, or when the region is out of its bounds or
1852
- * `data` holds too few bytes
1812
+ * Throws (to JavaScript) when there is no texture `name`, or when the region is out of its bounds or `data` holds
1813
+ * too few bytes
1853
1814
  * @param {number} id
1854
1815
  * @param {string} name
1855
1816
  * @param {number} x
@@ -1882,22 +1843,11 @@ export class Engine {
1882
1843
  const len0 = WASM_VECTOR_LEN;
1883
1844
  wasm.engine_updateIconAtlas(this.__wbg_ptr, x, y, width, height, ptr0, len0);
1884
1845
  }
1885
- /**
1886
- * Uploads a part more of the blocks of tile `key` of a vector tile layer (a large tile's, a part at a time over
1887
- * several frames); whether some are left. Its blocks are drawn once they are all there
1888
- * @param {number} id
1889
- * @param {number} key
1890
- * @returns {boolean}
1891
- */
1892
- uploadVectorTile(id, key) {
1893
- const ret = wasm.engine_uploadVectorTile(this.__wbg_ptr, id, key);
1894
- return ret !== 0;
1895
- }
1896
1846
  /**
1897
1847
  * Vector tiles (512 CSS pixels across at their level, as `MapLibre`'s) for the view of the last frame (else the
1898
1848
  * camera's), levels `min_z` to `max_z`, three numbers per tile (z, x, y), the nearest to the eye first: what a
1899
- * vector tile layer draws (`addVectorTiles`), coarser far away in a tilted view as the raster layers, and no
1900
- * farther than `reach` times the screen center's distance (infinite: to the horizon)
1849
+ * vector tile layer draws, coarser far away in a tilted view as the raster layers, and no farther than `reach`
1850
+ * times the screen center's distance (infinite: to the horizon)
1901
1851
  * @param {number} min_z
1902
1852
  * @param {number} max_z
1903
1853
  * @param {number} reach
@@ -1932,52 +1882,16 @@ export class Engine {
1932
1882
  }
1933
1883
  }
1934
1884
  if (Symbol.dispose) Engine.prototype[Symbol.dispose] = Engine.prototype.free;
1935
-
1936
- /**
1937
- * Decodes a `.b3dm` / `.pnts` / `.glb` tile: `{ anchor: Float64Array(3), primitives: [{ vertices: Float32Array (x,
1938
- * y, z, u, v per vertex, relative to the anchor), indices: Uint32Array, image?: Uint8Array, mime?: string, color?:
1939
- * Float32Array (the material's base color, when not white) }], points: [Uint8Array] (the points' vertices) }`.
1940
- * `transform`: the tile's world transform (16 numbers, column-major).
1941
- * `draco`: the decoded geometries of its Draco primitives (`dracoRequests`), if any.
1942
- * @param {Uint8Array} bytes
1943
- * @param {Float64Array} transform
1944
- * @param {boolean} y_up
1945
- * @param {DracoGeometry[] | undefined} draco
1946
- * @returns {EncodedTile}
1947
- */
1948
- export function decodeTile(bytes, transform, y_up, draco) {
1949
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
1950
- const len0 = WASM_VECTOR_LEN;
1951
- const ptr1 = passArrayF64ToWasm0(transform, wasm.__wbindgen_malloc);
1952
- const len1 = WASM_VECTOR_LEN;
1953
- const ret = wasm.decodeTile(ptr0, len0, ptr1, len1, y_up, draco);
1954
- if (ret[2]) {
1955
- throw takeFromExternrefTable0(ret[1]);
1956
- }
1957
- return takeFromExternrefTable0(ret[0]);
1958
- }
1959
-
1960
- /**
1961
- * The Draco-compressed primitives of a tile, to decode before `decodeTile`
1962
- * @param {Uint8Array} bytes
1963
- * @returns {DracoRequest[]}
1964
- */
1965
- export function dracoRequests(bytes) {
1966
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
1967
- const len0 = WASM_VECTOR_LEN;
1968
- const ret = wasm.dracoRequests(ptr0, len0);
1969
- if (ret[2]) {
1970
- throw takeFromExternrefTable0(ret[1]);
1971
- }
1972
- return takeFromExternrefTable0(ret[0]);
1973
- }
1974
1885
  function __wbg_get_imports() {
1975
1886
  const import0 = {
1976
1887
  __proto__: null,
1977
- __wbg___wbindgen_boolean_get_5b446f51afd21013: function(arg0) {
1978
- const v = arg0;
1979
- const ret = typeof(v) === 'boolean' ? v : undefined;
1980
- return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1888
+ __wbg_Window_a2a6c4d665047b14: function(arg0) {
1889
+ const ret = arg0.Window;
1890
+ return ret;
1891
+ },
1892
+ __wbg_WorkerGlobalScope_2664448a7c667d67: function(arg0) {
1893
+ const ret = arg0.WorkerGlobalScope;
1894
+ return ret;
1981
1895
  },
1982
1896
  __wbg___wbindgen_debug_string_4687d8d8c2017d52: function(arg0, arg1) {
1983
1897
  const ret = debugString(arg1);
@@ -2003,6 +1917,10 @@ function __wbg_get_imports() {
2003
1917
  const ret = typeof(val) === 'object' && val !== null;
2004
1918
  return ret;
2005
1919
  },
1920
+ __wbg___wbindgen_is_string_90b56bc79aad6f6c: function(arg0) {
1921
+ const ret = typeof(arg0) === 'string';
1922
+ return ret;
1923
+ },
2006
1924
  __wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(arg0) {
2007
1925
  const ret = arg0 === undefined;
2008
1926
  return ret;
@@ -2034,12 +1952,6 @@ function __wbg_get_imports() {
2034
1952
  const ret = arg0.aborted;
2035
1953
  return ret;
2036
1954
  },
2037
- __wbg_activeTexture_11079673eac5c921: function(arg0, arg1) {
2038
- arg0.activeTexture(arg1 >>> 0);
2039
- },
2040
- __wbg_activeTexture_2fad46c01cafe6b1: function(arg0, arg1) {
2041
- arg0.activeTexture(arg1 >>> 0);
2042
- },
2043
1955
  __wbg_apply_a910804df6e1e433: function() { return handleError(function (arg0, arg1, arg2) {
2044
1956
  const ret = arg0.apply(arg1, arg2);
2045
1957
  return ret;
@@ -2048,81 +1960,21 @@ function __wbg_get_imports() {
2048
1960
  const ret = arg0.arrayBuffer();
2049
1961
  return ret;
2050
1962
  }, arguments); },
2051
- __wbg_attachShader_8920a5beea54aba7: function(arg0, arg1, arg2) {
2052
- arg0.attachShader(arg1, arg2);
2053
- },
2054
- __wbg_attachShader_9567ae57af6746d5: function(arg0, arg1, arg2) {
2055
- arg0.attachShader(arg1, arg2);
2056
- },
2057
- __wbg_bindBuffer_0324f62b876c4403: function(arg0, arg1, arg2) {
2058
- arg0.bindBuffer(arg1 >>> 0, arg2);
2059
- },
2060
- __wbg_bindBuffer_2195e89b585ce0c3: function(arg0, arg1, arg2) {
2061
- arg0.bindBuffer(arg1 >>> 0, arg2);
2062
- },
2063
- __wbg_bindFramebuffer_22e4b8e6e6d8d0e8: function(arg0, arg1, arg2) {
2064
- arg0.bindFramebuffer(arg1 >>> 0, arg2);
2065
- },
2066
- __wbg_bindFramebuffer_378eb18ef219d37a: function(arg0, arg1, arg2) {
2067
- arg0.bindFramebuffer(arg1 >>> 0, arg2);
2068
- },
2069
- __wbg_bindRenderbuffer_db090531fb28de34: function(arg0, arg1, arg2) {
2070
- arg0.bindRenderbuffer(arg1 >>> 0, arg2);
2071
- },
2072
- __wbg_bindRenderbuffer_e0c5aeef245a913a: function(arg0, arg1, arg2) {
2073
- arg0.bindRenderbuffer(arg1 >>> 0, arg2);
2074
- },
2075
- __wbg_bindTexture_3cf008f256f3ed99: function(arg0, arg1, arg2) {
2076
- arg0.bindTexture(arg1 >>> 0, arg2);
2077
- },
2078
- __wbg_bindTexture_613a47b8917a0ccd: function(arg0, arg1, arg2) {
2079
- arg0.bindTexture(arg1 >>> 0, arg2);
2080
- },
2081
- __wbg_bindVertexArrayOES_3141815cb8234a6e: function(arg0, arg1) {
2082
- arg0.bindVertexArrayOES(arg1);
2083
- },
2084
- __wbg_bindVertexArray_f58af0a346185ec5: function(arg0, arg1) {
2085
- arg0.bindVertexArray(arg1);
2086
- },
2087
- __wbg_blendEquation_5fb8aee6a55cf900: function(arg0, arg1) {
2088
- arg0.blendEquation(arg1 >>> 0);
2089
- },
2090
- __wbg_blendEquation_d21914e937b14896: function(arg0, arg1) {
2091
- arg0.blendEquation(arg1 >>> 0);
2092
- },
2093
- __wbg_blendFuncSeparate_28abe082febb1a26: function(arg0, arg1, arg2, arg3, arg4) {
2094
- arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
2095
- },
2096
- __wbg_blendFuncSeparate_2af9d47f7efc0452: function(arg0, arg1, arg2, arg3, arg4) {
2097
- arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
2098
- },
2099
- __wbg_blendFunc_491ee1105079ce76: function(arg0, arg1, arg2) {
2100
- arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
2101
- },
2102
- __wbg_blendFunc_589e4252bb396484: function(arg0, arg1, arg2) {
2103
- arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
2104
- },
1963
+ __wbg_beginRenderPass_3c53642423af50dc: function() { return handleError(function (arg0, arg1) {
1964
+ const ret = arg0.beginRenderPass(arg1);
1965
+ return ret;
1966
+ }, arguments); },
2105
1967
  __wbg_blob_232135c7e297b861: function() { return handleError(function (arg0) {
2106
1968
  const ret = arg0.blob();
2107
1969
  return ret;
2108
1970
  }, arguments); },
2109
- __wbg_bufferData_50f5eb06469330e4: function(arg0, arg1, arg2, arg3) {
2110
- arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
2111
- },
2112
- __wbg_bufferData_53e0f7a06b58fe81: function(arg0, arg1, arg2, arg3) {
2113
- arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
2114
- },
2115
- __wbg_bufferData_5fa44d94fe7a3878: function(arg0, arg1, arg2, arg3) {
2116
- arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
2117
- },
2118
- __wbg_bufferData_bad7ce562b6a9eac: function(arg0, arg1, arg2, arg3) {
2119
- arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
2120
- },
2121
- __wbg_bufferSubData_22c4c420e0f67cda: function(arg0, arg1, arg2, arg3) {
2122
- arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
1971
+ __wbg_buffer_6aace268d05b9dbe: function(arg0) {
1972
+ const ret = arg0.buffer;
1973
+ return ret;
2123
1974
  },
2124
- __wbg_bufferSubData_8609cd8a2c013181: function(arg0, arg1, arg2, arg3) {
2125
- arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
1975
+ __wbg_buffer_9cb148c510fd44ba: function(arg0) {
1976
+ const ret = arg0.buffer;
1977
+ return ret;
2126
1978
  },
2127
1979
  __wbg_byteLength_141bda7c7c28aa72: function(arg0) {
2128
1980
  const ret = arg0.byteLength;
@@ -2140,6 +1992,14 @@ function __wbg_get_imports() {
2140
1992
  const ret = arg0.byteLength;
2141
1993
  return ret;
2142
1994
  },
1995
+ __wbg_byteOffset_0a6d6550fa691da7: function(arg0) {
1996
+ const ret = arg0.byteOffset;
1997
+ return ret;
1998
+ },
1999
+ __wbg_byteOffset_58a6efdc19adce02: function(arg0) {
2000
+ const ret = arg0.byteOffset;
2001
+ return ret;
2002
+ },
2143
2003
  __wbg_call_01721c8c75200a10: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2144
2004
  const ret = arg0.call(arg1, arg2, arg3, arg4, arg5);
2145
2005
  return ret;
@@ -2156,63 +2016,39 @@ function __wbg_get_imports() {
2156
2016
  const ret = arg0.call(arg1);
2157
2017
  return ret;
2158
2018
  }, arguments); },
2159
- __wbg_clearColor_3f6aa096dc12e8b7: function(arg0, arg1, arg2, arg3, arg4) {
2160
- arg0.clearColor(arg1, arg2, arg3, arg4);
2161
- },
2162
- __wbg_clearColor_796427e8ac60fe14: function(arg0, arg1, arg2, arg3, arg4) {
2163
- arg0.clearColor(arg1, arg2, arg3, arg4);
2164
- },
2165
- __wbg_clearDepth_4840a5497ae51286: function(arg0, arg1) {
2166
- arg0.clearDepth(arg1);
2167
- },
2168
- __wbg_clearDepth_5a119c24c5d193bc: function(arg0, arg1) {
2169
- arg0.clearDepth(arg1);
2170
- },
2171
- __wbg_clearStencil_1b8b8c727f598eec: function(arg0, arg1) {
2172
- arg0.clearStencil(arg1);
2173
- },
2174
- __wbg_clearStencil_e4383e4a543e7997: function(arg0, arg1) {
2175
- arg0.clearStencil(arg1);
2176
- },
2177
- __wbg_clear_175cf3cb6d98d72b: function(arg0, arg1) {
2178
- arg0.clear(arg1 >>> 0);
2179
- },
2180
- __wbg_clear_cb96796cc568b7c8: function(arg0, arg1) {
2181
- arg0.clear(arg1 >>> 0);
2182
- },
2183
2019
  __wbg_close_355afba6ea5ad1ae: function(arg0) {
2184
2020
  arg0.close();
2185
2021
  },
2186
- __wbg_colorMask_4d6afbbbc3022fbe: function(arg0, arg1, arg2, arg3, arg4) {
2187
- arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
2188
- },
2189
- __wbg_colorMask_8c903995f6f873be: function(arg0, arg1, arg2, arg3, arg4) {
2190
- arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
2191
- },
2192
- __wbg_compileShader_073a75409aaf96d2: function(arg0, arg1) {
2193
- arg0.compileShader(arg1);
2194
- },
2195
- __wbg_compileShader_c2b53ff3a8851f60: function(arg0, arg1) {
2196
- arg0.compileShader(arg1);
2197
- },
2198
- __wbg_compressedTexImage2D_93d2b30687f2cfad: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2199
- arg0.compressedTexImage2D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6, arg7);
2200
- },
2201
- __wbg_createBuffer_d1dd23bf8704564c: function(arg0) {
2202
- const ret = arg0.createBuffer();
2203
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2204
- },
2205
- __wbg_createBuffer_ffe613371d42cfd3: function(arg0) {
2206
- const ret = arg0.createBuffer();
2207
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2208
- },
2209
- __wbg_createFramebuffer_2c6b5b0f49c88e5d: function(arg0) {
2210
- const ret = arg0.createFramebuffer();
2211
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2022
+ __wbg_configure_1e2c1c9edad07d26: function() { return handleError(function (arg0, arg1) {
2023
+ arg0.configure(arg1);
2024
+ }, arguments); },
2025
+ __wbg_copyBufferToBuffer_01766818654a9868: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2026
+ arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4);
2027
+ }, arguments); },
2028
+ __wbg_copyBufferToBuffer_9c174b96fb08d551: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2029
+ arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4, arg5);
2030
+ }, arguments); },
2031
+ __wbg_copyExternalImageToTexture_116560f3be856776: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2032
+ arg0.copyExternalImageToTexture(arg1, arg2, arg3);
2033
+ }, arguments); },
2034
+ __wbg_copyTextureToBuffer_1234b3210431ad05: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2035
+ arg0.copyTextureToBuffer(arg1, arg2, arg3);
2036
+ }, arguments); },
2037
+ __wbg_createBindGroupLayout_b1bd63b4e88459d8: function() { return handleError(function (arg0, arg1) {
2038
+ const ret = arg0.createBindGroupLayout(arg1);
2039
+ return ret;
2040
+ }, arguments); },
2041
+ __wbg_createBindGroup_f539b26ca341308f: function(arg0, arg1) {
2042
+ const ret = arg0.createBindGroup(arg1);
2043
+ return ret;
2212
2044
  },
2213
- __wbg_createFramebuffer_d0969af4e9886297: function(arg0) {
2214
- const ret = arg0.createFramebuffer();
2215
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2045
+ __wbg_createBuffer_d800e9b1d41b2ee5: function() { return handleError(function (arg0, arg1) {
2046
+ const ret = arg0.createBuffer(arg1);
2047
+ return ret;
2048
+ }, arguments); },
2049
+ __wbg_createCommandEncoder_3352d1ffc36c6fc0: function(arg0, arg1) {
2050
+ const ret = arg0.createCommandEncoder(arg1);
2051
+ return ret;
2216
2052
  },
2217
2053
  __wbg_createImageBitmap_1b985e01e4c81baa: function() { return handleError(function (arg0, arg1, arg2) {
2218
2054
  const ret = arg0.createImageBitmap(arg1, arg2);
@@ -2222,322 +2058,134 @@ function __wbg_get_imports() {
2222
2058
  const ret = arg0.createImageBitmap(arg1, arg2);
2223
2059
  return ret;
2224
2060
  }, arguments); },
2225
- __wbg_createProgram_cbf448e6f18a9402: function(arg0) {
2226
- const ret = arg0.createProgram();
2227
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2061
+ __wbg_createPipelineLayout_6eab52c327118937: function(arg0, arg1) {
2062
+ const ret = arg0.createPipelineLayout(arg1);
2063
+ return ret;
2228
2064
  },
2229
- __wbg_createProgram_e0c81b0d2b8d0fd0: function(arg0) {
2230
- const ret = arg0.createProgram();
2231
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2065
+ __wbg_createRenderPipeline_0ebb7ebc653e9207: function() { return handleError(function (arg0, arg1) {
2066
+ const ret = arg0.createRenderPipeline(arg1);
2067
+ return ret;
2068
+ }, arguments); },
2069
+ __wbg_createSampler_9bd91d7e928c0060: function(arg0, arg1) {
2070
+ const ret = arg0.createSampler(arg1);
2071
+ return ret;
2232
2072
  },
2233
- __wbg_createRenderbuffer_2b17e9fe2e6fb4be: function(arg0) {
2234
- const ret = arg0.createRenderbuffer();
2235
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2073
+ __wbg_createShaderModule_cefa51336cb288ae: function(arg0, arg1) {
2074
+ const ret = arg0.createShaderModule(arg1);
2075
+ return ret;
2236
2076
  },
2237
- __wbg_createRenderbuffer_c864095d6ebd60d0: function(arg0) {
2238
- const ret = arg0.createRenderbuffer();
2239
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2077
+ __wbg_createTexture_ed7e9fc04dd54d84: function() { return handleError(function (arg0, arg1) {
2078
+ const ret = arg0.createTexture(arg1);
2079
+ return ret;
2080
+ }, arguments); },
2081
+ __wbg_createView_da41c2d2cb212715: function() { return handleError(function (arg0, arg1) {
2082
+ const ret = arg0.createView(arg1);
2083
+ return ret;
2084
+ }, arguments); },
2085
+ __wbg_description_83b8a393160021b9: function(arg0, arg1) {
2086
+ const ret = arg1.description;
2087
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2088
+ const len1 = WASM_VECTOR_LEN;
2089
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2090
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2240
2091
  },
2241
- __wbg_createShader_6c1a2295587878a5: function(arg0, arg1) {
2242
- const ret = arg0.createShader(arg1 >>> 0);
2092
+ __wbg_document_9854e03c05fc8834: function(arg0) {
2093
+ const ret = arg0.document;
2243
2094
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2244
2095
  },
2245
- __wbg_createShader_7c9d99a21ecb08c0: function(arg0, arg1) {
2246
- const ret = arg0.createShader(arg1 >>> 0);
2247
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2096
+ __wbg_drawIndexed_638959aae942557c: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2097
+ arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
2248
2098
  },
2249
- __wbg_createTexture_01e8e591b64237de: function(arg0) {
2250
- const ret = arg0.createTexture();
2251
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2099
+ __wbg_draw_086a9578fc9898c2: function(arg0, arg1, arg2, arg3, arg4) {
2100
+ arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
2252
2101
  },
2253
- __wbg_createTexture_5f2583508ebe379b: function(arg0) {
2254
- const ret = arg0.createTexture();
2255
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2102
+ __wbg_end_b57473834b877409: function(arg0) {
2103
+ arg0.end();
2256
2104
  },
2257
- __wbg_createVertexArrayOES_a8dc8498b56df937: function(arg0) {
2258
- const ret = arg0.createVertexArrayOES();
2259
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2105
+ __wbg_engine_new: function(arg0) {
2106
+ const ret = Engine.__wrap(arg0);
2107
+ return ret;
2260
2108
  },
2261
- __wbg_createVertexArray_b223ea69dd08fcab: function(arg0) {
2262
- const ret = arg0.createVertexArray();
2263
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2109
+ __wbg_error_8c8dff942c7c4f11: function(arg0) {
2110
+ const ret = arg0.error;
2111
+ return ret;
2264
2112
  },
2265
- __wbg_cullFace_12123c1c97f1ba2c: function(arg0, arg1) {
2266
- arg0.cullFace(arg1 >>> 0);
2113
+ __wbg_error_c9cf3fc2064683a9: function(arg0) {
2114
+ console.error(arg0);
2267
2115
  },
2268
- __wbg_cullFace_1a01f0b6d5aeb687: function(arg0, arg1) {
2269
- arg0.cullFace(arg1 >>> 0);
2116
+ __wbg_features_5cac120c28ba0475: function(arg0) {
2117
+ const ret = arg0.features;
2118
+ return ret;
2270
2119
  },
2271
- __wbg_deleteBuffer_070e58aaaf2a7a8b: function(arg0, arg1) {
2272
- arg0.deleteBuffer(arg1);
2120
+ __wbg_features_dec7bd2fd3d91bd6: function(arg0) {
2121
+ const ret = arg0.features;
2122
+ return ret;
2273
2123
  },
2274
- __wbg_deleteBuffer_7775ee9e248c8468: function(arg0, arg1) {
2275
- arg0.deleteBuffer(arg1);
2124
+ __wbg_fetch_b322877f1ed6457d: function(arg0, arg1, arg2, arg3) {
2125
+ const ret = arg0.fetch(getStringFromWasm0(arg1, arg2), arg3);
2126
+ return ret;
2276
2127
  },
2277
- __wbg_deleteFramebuffer_3f8ab330098bf8e6: function(arg0, arg1) {
2278
- arg0.deleteFramebuffer(arg1);
2128
+ __wbg_finish_09ec094c10f41e7b: function(arg0) {
2129
+ const ret = arg0.finish();
2130
+ return ret;
2279
2131
  },
2280
- __wbg_deleteFramebuffer_570d3b214a509fa2: function(arg0, arg1) {
2281
- arg0.deleteFramebuffer(arg1);
2132
+ __wbg_finish_ec1c191f66a895b1: function(arg0, arg1) {
2133
+ const ret = arg0.finish(arg1);
2134
+ return ret;
2282
2135
  },
2283
- __wbg_deleteProgram_822906f0368175d0: function(arg0, arg1) {
2284
- arg0.deleteProgram(arg1);
2136
+ __wbg_getContext_635e36719cad2623: function() { return handleError(function (arg0, arg1, arg2) {
2137
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
2138
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2139
+ }, arguments); },
2140
+ __wbg_getContext_e567868594d2e0c6: function() { return handleError(function (arg0, arg1, arg2) {
2141
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
2142
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2143
+ }, arguments); },
2144
+ __wbg_getCurrentTexture_9f3b84d0eaa6cd95: function() { return handleError(function (arg0) {
2145
+ const ret = arg0.getCurrentTexture();
2146
+ return ret;
2147
+ }, arguments); },
2148
+ __wbg_getMappedRange_fb54c6327b2d8d20: function() { return handleError(function (arg0, arg1, arg2) {
2149
+ const ret = arg0.getMappedRange(arg1, arg2);
2150
+ return ret;
2151
+ }, arguments); },
2152
+ __wbg_getPreferredCanvasFormat_0ef5034c8902201b: function(arg0) {
2153
+ const ret = arg0.getPreferredCanvasFormat();
2154
+ return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 102) - 1;
2285
2155
  },
2286
- __wbg_deleteProgram_b524b30ad176cdb4: function(arg0, arg1) {
2287
- arg0.deleteProgram(arg1);
2156
+ __wbg_get_31af05bd4842a84f: function() { return handleError(function (arg0, arg1) {
2157
+ const ret = Reflect.get(arg0, arg1);
2158
+ return ret;
2159
+ }, arguments); },
2160
+ __wbg_get_806853698d9fc227: function() { return handleError(function (arg0, arg1) {
2161
+ const ret = Reflect.get(arg0, arg1 >>> 0);
2162
+ return ret;
2163
+ }, arguments); },
2164
+ __wbg_get_f75619e20cb68514: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2165
+ const ret = arg1.get(getStringFromWasm0(arg2, arg3));
2166
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2167
+ var len1 = WASM_VECTOR_LEN;
2168
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2169
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2170
+ }, arguments); },
2171
+ __wbg_get_fd12a9100976c296: function(arg0, arg1) {
2172
+ const ret = arg0[arg1 >>> 0];
2173
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2288
2174
  },
2289
- __wbg_deleteRenderbuffer_826c9b43b7ea68f5: function(arg0, arg1) {
2290
- arg0.deleteRenderbuffer(arg1);
2175
+ __wbg_get_index_f4750150bb3083b3: function(arg0, arg1) {
2176
+ const ret = arg0[arg1 >>> 0];
2177
+ return ret;
2291
2178
  },
2292
- __wbg_deleteRenderbuffer_f4e121a3ab21c605: function(arg0, arg1) {
2293
- arg0.deleteRenderbuffer(arg1);
2294
- },
2295
- __wbg_deleteShader_a70f6cc1918d67eb: function(arg0, arg1) {
2296
- arg0.deleteShader(arg1);
2297
- },
2298
- __wbg_deleteShader_da18a294158c2d15: function(arg0, arg1) {
2299
- arg0.deleteShader(arg1);
2300
- },
2301
- __wbg_deleteSync_4f0be28b03f50495: function(arg0, arg1) {
2302
- arg0.deleteSync(arg1);
2303
- },
2304
- __wbg_deleteTexture_78c170241204a466: function(arg0, arg1) {
2305
- arg0.deleteTexture(arg1);
2306
- },
2307
- __wbg_deleteTexture_9f42750adb092e4f: function(arg0, arg1) {
2308
- arg0.deleteTexture(arg1);
2309
- },
2310
- __wbg_deleteVertexArrayOES_e01f31634d466176: function(arg0, arg1) {
2311
- arg0.deleteVertexArrayOES(arg1);
2312
- },
2313
- __wbg_deleteVertexArray_ca9768805d051d49: function(arg0, arg1) {
2314
- arg0.deleteVertexArray(arg1);
2315
- },
2316
- __wbg_depthFunc_92e96d8f46a23300: function(arg0, arg1) {
2317
- arg0.depthFunc(arg1 >>> 0);
2318
- },
2319
- __wbg_depthFunc_a41fb5adacb22e09: function(arg0, arg1) {
2320
- arg0.depthFunc(arg1 >>> 0);
2321
- },
2322
- __wbg_depthMask_06ecff4d4514c38f: function(arg0, arg1) {
2323
- arg0.depthMask(arg1 !== 0);
2324
- },
2325
- __wbg_depthMask_0d7c3dec3b8405ee: function(arg0, arg1) {
2326
- arg0.depthMask(arg1 !== 0);
2327
- },
2328
- __wbg_depthRange_24c7969249461e8e: function(arg0, arg1, arg2) {
2329
- arg0.depthRange(arg1, arg2);
2330
- },
2331
- __wbg_depthRange_6a4e169ccf314148: function(arg0, arg1, arg2) {
2332
- arg0.depthRange(arg1, arg2);
2333
- },
2334
- __wbg_detachShader_1ed15fc2d289cf15: function(arg0, arg1, arg2) {
2335
- arg0.detachShader(arg1, arg2);
2336
- },
2337
- __wbg_detachShader_67dabaaad80a795e: function(arg0, arg1, arg2) {
2338
- arg0.detachShader(arg1, arg2);
2339
- },
2340
- __wbg_disableVertexAttribArray_11c9f11bee30c9d8: function(arg0, arg1) {
2341
- arg0.disableVertexAttribArray(arg1 >>> 0);
2342
- },
2343
- __wbg_disableVertexAttribArray_c4c8af1f9e4120d4: function(arg0, arg1) {
2344
- arg0.disableVertexAttribArray(arg1 >>> 0);
2345
- },
2346
- __wbg_disable_19fe787eccdf0272: function(arg0, arg1) {
2347
- arg0.disable(arg1 >>> 0);
2348
- },
2349
- __wbg_disable_81b2cb5f8cea15ae: function(arg0, arg1) {
2350
- arg0.disable(arg1 >>> 0);
2351
- },
2352
- __wbg_drawArraysInstancedANGLE_b76512b5abba6668: function(arg0, arg1, arg2, arg3, arg4) {
2353
- arg0.drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
2354
- },
2355
- __wbg_drawArraysInstanced_9b44aa78a087154d: function(arg0, arg1, arg2, arg3, arg4) {
2356
- arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
2357
- },
2358
- __wbg_drawArrays_08872e02fb57b847: function(arg0, arg1, arg2, arg3) {
2359
- arg0.drawArrays(arg1 >>> 0, arg2, arg3);
2360
- },
2361
- __wbg_drawArrays_741af5c3f8db636f: function(arg0, arg1, arg2, arg3) {
2362
- arg0.drawArrays(arg1 >>> 0, arg2, arg3);
2363
- },
2364
- __wbg_drawElementsInstancedANGLE_c3fc0cfa9e29a1bc: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2365
- arg0.drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
2366
- },
2367
- __wbg_drawElementsInstanced_d7c396aa034159b6: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2368
- arg0.drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
2369
- },
2370
- __wbg_drawElements_c8988ba71de1101a: function(arg0, arg1, arg2, arg3, arg4) {
2371
- arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4);
2372
- },
2373
- __wbg_drawElements_cc1e6c631e89eddf: function(arg0, arg1, arg2, arg3, arg4) {
2374
- arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4);
2375
- },
2376
- __wbg_enableVertexAttribArray_1496b78a8dbab9fd: function(arg0, arg1) {
2377
- arg0.enableVertexAttribArray(arg1 >>> 0);
2378
- },
2379
- __wbg_enableVertexAttribArray_d52693866bc8b8dd: function(arg0, arg1) {
2380
- arg0.enableVertexAttribArray(arg1 >>> 0);
2381
- },
2382
- __wbg_enable_6eeb9c0e9b483cee: function(arg0, arg1) {
2383
- arg0.enable(arg1 >>> 0);
2384
- },
2385
- __wbg_enable_cb4fc19b51148c37: function(arg0, arg1) {
2386
- arg0.enable(arg1 >>> 0);
2387
- },
2388
- __wbg_error_c9cf3fc2064683a9: function(arg0) {
2389
- console.error(arg0);
2390
- },
2391
- __wbg_fenceSync_330293024adb66bc: function(arg0, arg1, arg2) {
2392
- const ret = arg0.fenceSync(arg1 >>> 0, arg2 >>> 0);
2393
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2394
- },
2395
- __wbg_fetch_b322877f1ed6457d: function(arg0, arg1, arg2, arg3) {
2396
- const ret = arg0.fetch(getStringFromWasm0(arg1, arg2), arg3);
2397
- return ret;
2398
- },
2399
- __wbg_flush_13b162660ad850d2: function(arg0) {
2400
- arg0.flush();
2401
- },
2402
- __wbg_flush_a5ad38200881ac35: function(arg0) {
2403
- arg0.flush();
2404
- },
2405
- __wbg_framebufferRenderbuffer_1c6337e0030411f3: function(arg0, arg1, arg2, arg3, arg4) {
2406
- arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
2407
- },
2408
- __wbg_framebufferRenderbuffer_f019e9231b142c0d: function(arg0, arg1, arg2, arg3, arg4) {
2409
- arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
2410
- },
2411
- __wbg_framebufferTexture2D_73c52f23ec33aa22: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2412
- arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
2413
- },
2414
- __wbg_framebufferTexture2D_caddefa1f767646e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2415
- arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
2416
- },
2417
- __wbg_from_296ca31f8d0f1c52: function(arg0) {
2418
- const ret = Array.from(arg0);
2419
- return ret;
2420
- },
2421
- __wbg_frontFace_6751b4b97f997aeb: function(arg0, arg1) {
2422
- arg0.frontFace(arg1 >>> 0);
2423
- },
2424
- __wbg_frontFace_b064adb15b6f3772: function(arg0, arg1) {
2425
- arg0.frontFace(arg1 >>> 0);
2426
- },
2427
- __wbg_generateMipmap_c63604006bfa52d5: function(arg0, arg1) {
2428
- arg0.generateMipmap(arg1 >>> 0);
2429
- },
2430
- __wbg_generateMipmap_cd49f6eec9558721: function(arg0, arg1) {
2431
- arg0.generateMipmap(arg1 >>> 0);
2432
- },
2433
- __wbg_getActiveUniform_239de631a40c387a: function(arg0, arg1, arg2) {
2434
- const ret = arg0.getActiveUniform(arg1, arg2 >>> 0);
2435
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2436
- },
2437
- __wbg_getActiveUniform_f2052b3c57679fe2: function(arg0, arg1, arg2) {
2438
- const ret = arg0.getActiveUniform(arg1, arg2 >>> 0);
2439
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2440
- },
2441
- __wbg_getBufferSubData_dd23246099b166d1: function(arg0, arg1, arg2, arg3) {
2442
- arg0.getBufferSubData(arg1 >>> 0, arg2, arg3);
2443
- },
2444
- __wbg_getContext_051324720aa5b7e8: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2445
- const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
2446
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2447
- }, arguments); },
2448
- __wbg_getExtension_abfda2c5db286b07: function() { return handleError(function (arg0, arg1, arg2) {
2449
- const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
2450
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2451
- }, arguments); },
2452
- __wbg_getParameter_974595a6624c6c10: function() { return handleError(function (arg0, arg1) {
2453
- const ret = arg0.getParameter(arg1 >>> 0);
2454
- return ret;
2455
- }, arguments); },
2456
- __wbg_getParameter_a97f491753b05668: function() { return handleError(function (arg0, arg1) {
2457
- const ret = arg0.getParameter(arg1 >>> 0);
2458
- return ret;
2459
- }, arguments); },
2460
- __wbg_getProgramInfoLog_208fb1ff31006495: function(arg0, arg1, arg2) {
2461
- const ret = arg1.getProgramInfoLog(arg2);
2462
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2463
- var len1 = WASM_VECTOR_LEN;
2464
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2465
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2466
- },
2467
- __wbg_getProgramInfoLog_3276b294d6d42fe2: function(arg0, arg1, arg2) {
2468
- const ret = arg1.getProgramInfoLog(arg2);
2469
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2470
- var len1 = WASM_VECTOR_LEN;
2471
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2472
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2473
- },
2474
- __wbg_getProgramParameter_50bafab01cf88652: function(arg0, arg1, arg2) {
2475
- const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
2476
- return ret;
2477
- },
2478
- __wbg_getProgramParameter_fc7124bb9fb7c675: function(arg0, arg1, arg2) {
2479
- const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
2480
- return ret;
2481
- },
2482
- __wbg_getShaderInfoLog_7e0cbba353ca95da: function(arg0, arg1, arg2) {
2483
- const ret = arg1.getShaderInfoLog(arg2);
2484
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2485
- var len1 = WASM_VECTOR_LEN;
2486
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2487
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2488
- },
2489
- __wbg_getShaderInfoLog_bb64c5a52df0b7a3: function(arg0, arg1, arg2) {
2490
- const ret = arg1.getShaderInfoLog(arg2);
2491
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2492
- var len1 = WASM_VECTOR_LEN;
2493
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2494
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2495
- },
2496
- __wbg_getShaderParameter_745acf10b8e45e31: function(arg0, arg1, arg2) {
2497
- const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
2498
- return ret;
2499
- },
2500
- __wbg_getShaderParameter_e55ea9c456df5484: function(arg0, arg1, arg2) {
2501
- const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
2502
- return ret;
2503
- },
2504
- __wbg_getSupportedExtensions_1459bad37860c0c3: function(arg0) {
2505
- const ret = arg0.getSupportedExtensions();
2506
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2507
- },
2508
- __wbg_getSyncParameter_bb4be47b67bfa2f8: function(arg0, arg1, arg2) {
2509
- const ret = arg0.getSyncParameter(arg1, arg2 >>> 0);
2179
+ __wbg_get_unchecked_288889d017702237: function(arg0, arg1) {
2180
+ const ret = arg0[arg1 >>> 0];
2510
2181
  return ret;
2511
2182
  },
2512
- __wbg_getUniformLocation_50ba45dade572703: function(arg0, arg1, arg2, arg3) {
2513
- const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
2514
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2515
- },
2516
- __wbg_getUniformLocation_cb4e3e121235f91a: function(arg0, arg1, arg2, arg3) {
2517
- const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
2518
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2519
- },
2520
- __wbg_get_31af05bd4842a84f: function() { return handleError(function (arg0, arg1) {
2521
- const ret = Reflect.get(arg0, arg1);
2522
- return ret;
2523
- }, arguments); },
2524
- __wbg_get_806853698d9fc227: function() { return handleError(function (arg0, arg1) {
2525
- const ret = Reflect.get(arg0, arg1 >>> 0);
2526
- return ret;
2527
- }, arguments); },
2528
- __wbg_get_f75619e20cb68514: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2529
- const ret = arg1.get(getStringFromWasm0(arg2, arg3));
2530
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2531
- var len1 = WASM_VECTOR_LEN;
2532
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2533
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2534
- }, arguments); },
2535
- __wbg_get_index_f4750150bb3083b3: function(arg0, arg1) {
2536
- const ret = arg0[arg1 >>> 0];
2183
+ __wbg_gpu_afdd4387c7afe5f9: function(arg0) {
2184
+ const ret = arg0.gpu;
2537
2185
  return ret;
2538
2186
  },
2539
- __wbg_get_unchecked_288889d017702237: function(arg0, arg1) {
2540
- const ret = arg0[arg1 >>> 0];
2187
+ __wbg_has_eafa12e457ea88fb: function(arg0, arg1, arg2) {
2188
+ const ret = arg0.has(getStringFromWasm0(arg1, arg2));
2541
2189
  return ret;
2542
2190
  },
2543
2191
  __wbg_headers_eba93595f8944c2f: function(arg0) {
@@ -2548,6 +2196,14 @@ function __wbg_get_imports() {
2548
2196
  const ret = arg0.height;
2549
2197
  return ret;
2550
2198
  },
2199
+ __wbg_height_fc97e1a0c2e7331f: function(arg0) {
2200
+ const ret = arg0.height;
2201
+ return ret;
2202
+ },
2203
+ __wbg_info_971d8b9db3dae69f: function(arg0) {
2204
+ const ret = arg0.info;
2205
+ return ret;
2206
+ },
2551
2207
  __wbg_instanceof_ArrayBuffer_a99f175873e5d9b8: function(arg0) {
2552
2208
  let result;
2553
2209
  try {
@@ -2598,6 +2254,26 @@ function __wbg_get_imports() {
2598
2254
  const ret = result;
2599
2255
  return ret;
2600
2256
  },
2257
+ __wbg_instanceof_GpuOutOfMemoryError_5c3b8a2499f59adb: function(arg0) {
2258
+ let result;
2259
+ try {
2260
+ result = arg0 instanceof GPUOutOfMemoryError;
2261
+ } catch (_) {
2262
+ result = false;
2263
+ }
2264
+ const ret = result;
2265
+ return ret;
2266
+ },
2267
+ __wbg_instanceof_GpuValidationError_7659e07b12d4e184: function(arg0) {
2268
+ let result;
2269
+ try {
2270
+ result = arg0 instanceof GPUValidationError;
2271
+ } catch (_) {
2272
+ result = false;
2273
+ }
2274
+ const ret = result;
2275
+ return ret;
2276
+ },
2601
2277
  __wbg_instanceof_ImageBitmap_74bea45ee48d3d7a: function(arg0) {
2602
2278
  let result;
2603
2279
  try {
@@ -2648,16 +2324,6 @@ function __wbg_get_imports() {
2648
2324
  const ret = result;
2649
2325
  return ret;
2650
2326
  },
2651
- __wbg_instanceof_WebGl2RenderingContext_64c994c14c0790fb: function(arg0) {
2652
- let result;
2653
- try {
2654
- result = arg0 instanceof WebGL2RenderingContext;
2655
- } catch (_) {
2656
- result = false;
2657
- }
2658
- const ret = result;
2659
- return ret;
2660
- },
2661
2327
  __wbg_instanceof_Window_82d71df4eddf88bc: function(arg0) {
2662
2328
  let result;
2663
2329
  try {
@@ -2672,17 +2338,20 @@ function __wbg_get_imports() {
2672
2338
  const ret = Array.isArray(arg0);
2673
2339
  return ret;
2674
2340
  },
2675
- __wbg_isContextLost_fbbab8b921e614b7: function(arg0) {
2676
- const ret = arg0.isContextLost();
2341
+ __wbg_isFallbackAdapter_4c8cc3b18677460a: function(arg0) {
2342
+ const ret = arg0.isFallbackAdapter;
2677
2343
  return ret;
2678
2344
  },
2679
2345
  __wbg_is_4b278c0bd3caba97: function(arg0, arg1) {
2680
2346
  const ret = Object.is(arg0, arg1);
2681
2347
  return ret;
2682
2348
  },
2683
- __wbg_length_511b1f84719d3462: function(arg0) {
2684
- const ret = arg0.length;
2685
- return ret;
2349
+ __wbg_label_7add8cb37a6ef98f: function(arg0, arg1) {
2350
+ const ret = arg1.label;
2351
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2352
+ const len1 = WASM_VECTOR_LEN;
2353
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2354
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2686
2355
  },
2687
2356
  __wbg_length_58572db4c38f3c3e: function(arg0) {
2688
2357
  const ret = arg0.length;
@@ -2700,23 +2369,161 @@ function __wbg_get_imports() {
2700
2369
  const ret = arg0.length;
2701
2370
  return ret;
2702
2371
  },
2703
- __wbg_linkProgram_571a9ea00d38ff83: function(arg0, arg1) {
2704
- arg0.linkProgram(arg1);
2372
+ __wbg_limits_06bcb36c8409843b: function(arg0) {
2373
+ const ret = arg0.limits;
2374
+ return ret;
2705
2375
  },
2706
- __wbg_linkProgram_acdc299c43d734a0: function(arg0, arg1) {
2707
- arg0.linkProgram(arg1);
2376
+ __wbg_limits_601ad2e086ef8141: function(arg0) {
2377
+ const ret = arg0.limits;
2378
+ return ret;
2708
2379
  },
2709
- __wbg_message_5f8387f0c32b90a7: function(arg0) {
2710
- const ret = arg0.message;
2380
+ __wbg_mapAsync_b0597127f5037286: function(arg0, arg1, arg2, arg3) {
2381
+ const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
2382
+ return ret;
2383
+ },
2384
+ __wbg_maxBindGroupsPlusVertexBuffers_52369f089736ef9d: function(arg0) {
2385
+ const ret = arg0.maxBindGroupsPlusVertexBuffers;
2386
+ return ret;
2387
+ },
2388
+ __wbg_maxBindGroups_4e424afe6ce86ca2: function(arg0) {
2389
+ const ret = arg0.maxBindGroups;
2390
+ return ret;
2391
+ },
2392
+ __wbg_maxBindingsPerBindGroup_7d035da36821c44f: function(arg0) {
2393
+ const ret = arg0.maxBindingsPerBindGroup;
2394
+ return ret;
2395
+ },
2396
+ __wbg_maxBufferSize_423f4a084e32a195: function(arg0) {
2397
+ const ret = arg0.maxBufferSize;
2398
+ return ret;
2399
+ },
2400
+ __wbg_maxColorAttachmentBytesPerSample_c4cd9126f6d287c6: function(arg0) {
2401
+ const ret = arg0.maxColorAttachmentBytesPerSample;
2402
+ return ret;
2403
+ },
2404
+ __wbg_maxColorAttachments_d924670762b9e250: function(arg0) {
2405
+ const ret = arg0.maxColorAttachments;
2406
+ return ret;
2407
+ },
2408
+ __wbg_maxComputeInvocationsPerWorkgroup_707a3868f7cebb59: function(arg0) {
2409
+ const ret = arg0.maxComputeInvocationsPerWorkgroup;
2410
+ return ret;
2411
+ },
2412
+ __wbg_maxComputeWorkgroupSizeX_0a4d99463cbd6e5e: function(arg0) {
2413
+ const ret = arg0.maxComputeWorkgroupSizeX;
2414
+ return ret;
2415
+ },
2416
+ __wbg_maxComputeWorkgroupSizeY_85123ea0587f7558: function(arg0) {
2417
+ const ret = arg0.maxComputeWorkgroupSizeY;
2418
+ return ret;
2419
+ },
2420
+ __wbg_maxComputeWorkgroupSizeZ_a3186b4c5267d44f: function(arg0) {
2421
+ const ret = arg0.maxComputeWorkgroupSizeZ;
2422
+ return ret;
2423
+ },
2424
+ __wbg_maxComputeWorkgroupStorageSize_57b297355cfb6204: function(arg0) {
2425
+ const ret = arg0.maxComputeWorkgroupStorageSize;
2426
+ return ret;
2427
+ },
2428
+ __wbg_maxComputeWorkgroupsPerDimension_4158f95e673d54c4: function(arg0) {
2429
+ const ret = arg0.maxComputeWorkgroupsPerDimension;
2430
+ return ret;
2431
+ },
2432
+ __wbg_maxDynamicStorageBuffersPerPipelineLayout_226b0b70910aa16c: function(arg0) {
2433
+ const ret = arg0.maxDynamicStorageBuffersPerPipelineLayout;
2711
2434
  return ret;
2712
2435
  },
2713
- __wbg_name_91a697e9ff1634bf: function(arg0, arg1) {
2714
- const ret = arg1.name;
2436
+ __wbg_maxDynamicUniformBuffersPerPipelineLayout_0e835fda711fc7e6: function(arg0) {
2437
+ const ret = arg0.maxDynamicUniformBuffersPerPipelineLayout;
2438
+ return ret;
2439
+ },
2440
+ __wbg_maxInterStageShaderVariables_8c4a1d727e2aa35a: function(arg0) {
2441
+ const ret = arg0.maxInterStageShaderVariables;
2442
+ return ret;
2443
+ },
2444
+ __wbg_maxSampledTexturesPerShaderStage_6675f5e91d9a728a: function(arg0) {
2445
+ const ret = arg0.maxSampledTexturesPerShaderStage;
2446
+ return ret;
2447
+ },
2448
+ __wbg_maxSamplersPerShaderStage_1910fa38a6ed1e1f: function(arg0) {
2449
+ const ret = arg0.maxSamplersPerShaderStage;
2450
+ return ret;
2451
+ },
2452
+ __wbg_maxStorageBufferBindingSize_2e244bded070b18d: function(arg0) {
2453
+ const ret = arg0.maxStorageBufferBindingSize;
2454
+ return ret;
2455
+ },
2456
+ __wbg_maxStorageBuffersPerShaderStage_a285f3ebca51ca0d: function(arg0) {
2457
+ const ret = arg0.maxStorageBuffersPerShaderStage;
2458
+ return ret;
2459
+ },
2460
+ __wbg_maxStorageTexturesPerShaderStage_7aa946f0fc322a2b: function(arg0) {
2461
+ const ret = arg0.maxStorageTexturesPerShaderStage;
2462
+ return ret;
2463
+ },
2464
+ __wbg_maxTextureArrayLayers_0e699147ad00502d: function(arg0) {
2465
+ const ret = arg0.maxTextureArrayLayers;
2466
+ return ret;
2467
+ },
2468
+ __wbg_maxTextureDimension1D_aabf6add54decfe2: function(arg0) {
2469
+ const ret = arg0.maxTextureDimension1D;
2470
+ return ret;
2471
+ },
2472
+ __wbg_maxTextureDimension2D_dd598b27e9c0c1c4: function(arg0) {
2473
+ const ret = arg0.maxTextureDimension2D;
2474
+ return ret;
2475
+ },
2476
+ __wbg_maxTextureDimension3D_f944266c65dfd1a9: function(arg0) {
2477
+ const ret = arg0.maxTextureDimension3D;
2478
+ return ret;
2479
+ },
2480
+ __wbg_maxUniformBufferBindingSize_59fa6be7cfbeeb53: function(arg0) {
2481
+ const ret = arg0.maxUniformBufferBindingSize;
2482
+ return ret;
2483
+ },
2484
+ __wbg_maxUniformBuffersPerShaderStage_bee5f00a4d706c7f: function(arg0) {
2485
+ const ret = arg0.maxUniformBuffersPerShaderStage;
2486
+ return ret;
2487
+ },
2488
+ __wbg_maxVertexAttributes_5cf6392c4e9033fe: function(arg0) {
2489
+ const ret = arg0.maxVertexAttributes;
2490
+ return ret;
2491
+ },
2492
+ __wbg_maxVertexBufferArrayStride_548baa887375d865: function(arg0) {
2493
+ const ret = arg0.maxVertexBufferArrayStride;
2494
+ return ret;
2495
+ },
2496
+ __wbg_maxVertexBuffers_75d881156591f5da: function(arg0) {
2497
+ const ret = arg0.maxVertexBuffers;
2498
+ return ret;
2499
+ },
2500
+ __wbg_message_2aad50368e15e8f1: function(arg0, arg1) {
2501
+ const ret = arg1.message;
2715
2502
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2716
2503
  const len1 = WASM_VECTOR_LEN;
2717
2504
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2718
2505
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2719
2506
  },
2507
+ __wbg_message_5f8387f0c32b90a7: function(arg0) {
2508
+ const ret = arg0.message;
2509
+ return ret;
2510
+ },
2511
+ __wbg_minStorageBufferOffsetAlignment_5ba9b77792bdadb3: function(arg0) {
2512
+ const ret = arg0.minStorageBufferOffsetAlignment;
2513
+ return ret;
2514
+ },
2515
+ __wbg_minUniformBufferOffsetAlignment_ab7d52a5293b22bd: function(arg0) {
2516
+ const ret = arg0.minUniformBufferOffsetAlignment;
2517
+ return ret;
2518
+ },
2519
+ __wbg_navigator_2156486643462a87: function(arg0) {
2520
+ const ret = arg0.navigator;
2521
+ return ret;
2522
+ },
2523
+ __wbg_navigator_c9bce48d4b578c9c: function(arg0) {
2524
+ const ret = arg0.navigator;
2525
+ return ret;
2526
+ },
2720
2527
  __wbg_new_1dbf7428bba60a42: function(arg0) {
2721
2528
  const ret = new Uint8Array(arg0);
2722
2529
  return ret;
@@ -2751,30 +2558,52 @@ function __wbg_get_imports() {
2751
2558
  const ret = new Headers();
2752
2559
  return ret;
2753
2560
  }, arguments); },
2561
+ __wbg_new_a217df4351db4b9b: function() { return handleError(function (arg0, arg1) {
2562
+ const ret = new OffscreenCanvas(arg0 >>> 0, arg1 >>> 0);
2563
+ return ret;
2564
+ }, arguments); },
2754
2565
  __wbg_new_ee2291f50781bf1d: function() {
2755
2566
  const ret = new Array();
2756
2567
  return ret;
2757
2568
  },
2758
- __wbg_new_from_slice_37a3c3a194266cb8: function(arg0, arg1) {
2759
- const ret = new Uint32Array(getArrayU32FromWasm0(arg0, arg1));
2760
- return ret;
2761
- },
2762
2569
  __wbg_new_from_slice_9a868026ffa4208a: function(arg0, arg1) {
2763
2570
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
2764
2571
  return ret;
2765
2572
  },
2766
- __wbg_new_from_slice_ca6ad97db1f4779a: function(arg0, arg1) {
2767
- const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
2768
- return ret;
2769
- },
2770
2573
  __wbg_new_from_slice_f545fd22ddc142b8: function(arg0, arg1) {
2771
2574
  const ret = new Float64Array(getArrayF64FromWasm0(arg0, arg1));
2772
2575
  return ret;
2773
2576
  },
2577
+ __wbg_new_typed_689a3a281a8d4da6: function() {
2578
+ const ret = new Object();
2579
+ return ret;
2580
+ },
2581
+ __wbg_new_typed_b01cb72a8af741a3: function(arg0, arg1) {
2582
+ try {
2583
+ var state0 = {a: arg0, b: arg1};
2584
+ var cb0 = (arg0, arg1) => {
2585
+ const a = state0.a;
2586
+ state0.a = 0;
2587
+ try {
2588
+ return wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___js_sys_b1e1c29ba6b0e6b3___Function_fn_wasm_bindgen_2e566c63402fe7fa___JsValue_____wasm_bindgen_2e566c63402fe7fa___sys__Undefined___js_sys_b1e1c29ba6b0e6b3___Function_fn_wasm_bindgen_2e566c63402fe7fa___JsValue_____wasm_bindgen_2e566c63402fe7fa___sys__Undefined_______true_(a, state0.b, arg0, arg1);
2589
+ } finally {
2590
+ state0.a = a;
2591
+ }
2592
+ };
2593
+ const ret = new Promise(cb0);
2594
+ return ret;
2595
+ } finally {
2596
+ state0.a = 0;
2597
+ }
2598
+ },
2774
2599
  __wbg_new_with_byte_offset_70ba6193352e027b: function(arg0, arg1) {
2775
2600
  const ret = new Uint8Array(arg0, arg1 >>> 0);
2776
2601
  return ret;
2777
2602
  },
2603
+ __wbg_new_with_byte_offset_and_length_2f5d7fc2a828b74d: function(arg0, arg1, arg2) {
2604
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
2605
+ return ret;
2606
+ },
2778
2607
  __wbg_new_with_byte_offset_and_length_40c170286adc9005: function(arg0, arg1, arg2) {
2779
2608
  const ret = new Float32Array(arg0, arg1 >>> 0, arg2 >>> 0);
2780
2609
  return ret;
@@ -2791,450 +2620,829 @@ function __wbg_get_imports() {
2791
2620
  const ret = arg0.now();
2792
2621
  return ret;
2793
2622
  },
2794
- __wbg_of_20798cb14708764f: function(arg0, arg1) {
2795
- const ret = Array.of(arg0, arg1);
2796
- return ret;
2623
+ __wbg_of_20798cb14708764f: function(arg0, arg1) {
2624
+ const ret = Array.of(arg0, arg1);
2625
+ return ret;
2626
+ },
2627
+ __wbg_of_d5dbecdc59e02e34: function(arg0) {
2628
+ const ret = Array.of(arg0);
2629
+ return ret;
2630
+ },
2631
+ __wbg_of_dde0b9d3265685ee: function(arg0, arg1, arg2) {
2632
+ const ret = Array.of(arg0, arg1, arg2);
2633
+ return ret;
2634
+ },
2635
+ __wbg_of_fea2613674ee0d0f: function(arg0, arg1, arg2, arg3, arg4) {
2636
+ const ret = Array.of(arg0, arg1, arg2, arg3, arg4);
2637
+ return ret;
2638
+ },
2639
+ __wbg_ok_125878a7db256ecb: function(arg0) {
2640
+ const ret = arg0.ok;
2641
+ return ret;
2642
+ },
2643
+ __wbg_onSubmittedWorkDone_1190213cee1ecf7e: function(arg0) {
2644
+ const ret = arg0.onSubmittedWorkDone();
2645
+ return ret;
2646
+ },
2647
+ __wbg_performance_d0d7b03fc649b694: function(arg0) {
2648
+ const ret = arg0.performance;
2649
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2650
+ },
2651
+ __wbg_popErrorScope_182b8e03671d81ef: function(arg0) {
2652
+ const ret = arg0.popErrorScope();
2653
+ return ret;
2654
+ },
2655
+ __wbg_prototypesetcall_8b03c01e2c0f8066: function(arg0, arg1, arg2) {
2656
+ Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), arg2);
2657
+ },
2658
+ __wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
2659
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
2660
+ },
2661
+ __wbg_prototypesetcall_d49a4fab5ca427bc: function(arg0, arg1, arg2) {
2662
+ Float64Array.prototype.set.call(getArrayF64FromWasm0(arg0, arg1), arg2);
2663
+ },
2664
+ __wbg_pushErrorScope_fa7df784c43bdb51: function(arg0, arg1) {
2665
+ arg0.pushErrorScope(__wbindgen_enum_GpuErrorFilter[arg1]);
2666
+ },
2667
+ __wbg_push_2baf45db356cf468: function(arg0, arg1) {
2668
+ const ret = arg0.push(arg1);
2669
+ return ret;
2670
+ },
2671
+ __wbg_querySelectorAll_6aebfe3df1fb2014: function() { return handleError(function (arg0, arg1, arg2) {
2672
+ const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
2673
+ return ret;
2674
+ }, arguments); },
2675
+ __wbg_queueMicrotask_9833f9a49df95a49: function(arg0) {
2676
+ const ret = arg0.queueMicrotask;
2677
+ return ret;
2678
+ },
2679
+ __wbg_queueMicrotask_a72f977e97f23c5f: function(arg0) {
2680
+ queueMicrotask(arg0);
2681
+ },
2682
+ __wbg_queue_7b62c28143d44293: function(arg0) {
2683
+ const ret = arg0.queue;
2684
+ return ret;
2685
+ },
2686
+ __wbg_requestAdapter_a539af006419f2e9: function(arg0, arg1) {
2687
+ const ret = arg0.requestAdapter(arg1);
2688
+ return ret;
2689
+ },
2690
+ __wbg_requestDevice_5cb8a582e55d08cb: function(arg0, arg1) {
2691
+ const ret = arg0.requestDevice(arg1);
2692
+ return ret;
2693
+ },
2694
+ __wbg_resolveQuerySet_770f23fabac49845: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2695
+ arg0.resolveQuerySet(arg1, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
2696
+ },
2697
+ __wbg_resolve_0076e10020304ede: function(arg0) {
2698
+ const ret = Promise.resolve(arg0);
2699
+ return ret;
2700
+ },
2701
+ __wbg_setBindGroup_11bdbb60cc8b54b9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2702
+ arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
2703
+ }, arguments); },
2704
+ __wbg_setBindGroup_418c3e0eb6943ce0: function(arg0, arg1, arg2) {
2705
+ arg0.setBindGroup(arg1 >>> 0, arg2);
2706
+ },
2707
+ __wbg_setIndexBuffer_241097e303986c14: function(arg0, arg1, arg2, arg3, arg4) {
2708
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
2709
+ },
2710
+ __wbg_setPipeline_b6f981027e02cd16: function(arg0, arg1) {
2711
+ arg0.setPipeline(arg1);
2712
+ },
2713
+ __wbg_setScissorRect_889235eeb784732b: function(arg0, arg1, arg2, arg3, arg4) {
2714
+ arg0.setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
2715
+ },
2716
+ __wbg_setStencilReference_48705a9a2cceae02: function(arg0, arg1) {
2717
+ arg0.setStencilReference(arg1 >>> 0);
2718
+ },
2719
+ __wbg_setTimeout_db7bbc18a17e152a: function() { return handleError(function (arg0, arg1, arg2) {
2720
+ const ret = arg0.setTimeout(arg1, arg2);
2721
+ return ret;
2722
+ }, arguments); },
2723
+ __wbg_setVertexBuffer_6db3b60e99280744: function(arg0, arg1, arg2, arg3) {
2724
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
2725
+ },
2726
+ __wbg_setVertexBuffer_cbf4ca1627c02f4c: function(arg0, arg1, arg2, arg3, arg4) {
2727
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
2728
+ },
2729
+ __wbg_set_145a351398b48c65: function() { return handleError(function (arg0, arg1, arg2) {
2730
+ const ret = Reflect.set(arg0, arg1, arg2);
2731
+ return ret;
2732
+ }, arguments); },
2733
+ __wbg_set_34d08fd992d43d61: function(arg0, arg1, arg2) {
2734
+ arg0.set(arg1, arg2 >>> 0);
2735
+ },
2736
+ __wbg_set_a_82818effc94f6256: function(arg0, arg1) {
2737
+ arg0.a = arg1;
2738
+ },
2739
+ __wbg_set_access_a099cfbbeec9b96f: function(arg0, arg1) {
2740
+ arg0.access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
2741
+ },
2742
+ __wbg_set_address_mode_u_a68737cf5d288f95: function(arg0, arg1) {
2743
+ arg0.addressModeU = __wbindgen_enum_GpuAddressMode[arg1];
2744
+ },
2745
+ __wbg_set_address_mode_v_b1c3c45933f540d1: function(arg0, arg1) {
2746
+ arg0.addressModeV = __wbindgen_enum_GpuAddressMode[arg1];
2747
+ },
2748
+ __wbg_set_address_mode_w_889c31cf7022c764: function(arg0, arg1) {
2749
+ arg0.addressModeW = __wbindgen_enum_GpuAddressMode[arg1];
2750
+ },
2751
+ __wbg_set_af5932e3f78b5648: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2752
+ arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
2753
+ }, arguments); },
2754
+ __wbg_set_alpha_106f21a936a85eba: function(arg0, arg1) {
2755
+ arg0.alpha = arg1;
2756
+ },
2757
+ __wbg_set_alpha_mode_5544568dbac50280: function(arg0, arg1) {
2758
+ arg0.alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
2759
+ },
2760
+ __wbg_set_alpha_to_coverage_enabled_3372ce329447b8f1: function(arg0, arg1) {
2761
+ arg0.alphaToCoverageEnabled = arg1 !== 0;
2762
+ },
2763
+ __wbg_set_array_layer_count_22afa0a979e4ad55: function(arg0, arg1) {
2764
+ arg0.arrayLayerCount = arg1 >>> 0;
2765
+ },
2766
+ __wbg_set_array_stride_f64_6816040e5e7598c3: function(arg0, arg1) {
2767
+ arg0.arrayStride = arg1;
2768
+ },
2769
+ __wbg_set_aspect_9de5253d4c460895: function(arg0, arg1) {
2770
+ arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
2771
+ },
2772
+ __wbg_set_aspect_a48d046965270281: function(arg0, arg1) {
2773
+ arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
2774
+ },
2775
+ __wbg_set_aspect_b1a9909bf315433f: function(arg0, arg1) {
2776
+ arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
2777
+ },
2778
+ __wbg_set_attributes_9e38cb1dde387a5b: function(arg0, arg1, arg2) {
2779
+ arg0.attributes = getArrayJsValueViewFromWasm0(arg1, arg2);
2780
+ },
2781
+ __wbg_set_b_a3297ee7e7cac3a8: function(arg0, arg1) {
2782
+ arg0.b = arg1;
2783
+ },
2784
+ __wbg_set_base_array_layer_2435ba92c80346ae: function(arg0, arg1) {
2785
+ arg0.baseArrayLayer = arg1 >>> 0;
2786
+ },
2787
+ __wbg_set_base_mip_level_8b6093e875e7c65d: function(arg0, arg1) {
2788
+ arg0.baseMipLevel = arg1 >>> 0;
2789
+ },
2790
+ __wbg_set_beginning_of_pass_write_index_e552c5e8b8bbf52f: function(arg0, arg1) {
2791
+ arg0.beginningOfPassWriteIndex = arg1 >>> 0;
2792
+ },
2793
+ __wbg_set_bind_group_layouts_458c44ba55100b82: function(arg0, arg1, arg2) {
2794
+ arg0.bindGroupLayouts = getArrayJsValueViewFromWasm0(arg1, arg2);
2795
+ },
2796
+ __wbg_set_binding_81b3fac7f7acaf8d: function(arg0, arg1) {
2797
+ arg0.binding = arg1 >>> 0;
2798
+ },
2799
+ __wbg_set_binding_b6cee57f35ac5190: function(arg0, arg1) {
2800
+ arg0.binding = arg1 >>> 0;
2801
+ },
2802
+ __wbg_set_blend_1a801617945f7945: function(arg0, arg1) {
2803
+ arg0.blend = arg1;
2804
+ },
2805
+ __wbg_set_buffer_1548ae88a9188037: function(arg0, arg1) {
2806
+ arg0.buffer = arg1;
2807
+ },
2808
+ __wbg_set_buffer_8d0ac64ad20dfc84: function(arg0, arg1) {
2809
+ arg0.buffer = arg1;
2810
+ },
2811
+ __wbg_set_buffer_910a40a90f97cfca: function(arg0, arg1) {
2812
+ arg0.buffer = arg1;
2813
+ },
2814
+ __wbg_set_buffers_5d0e0c50791f710e: function(arg0, arg1, arg2) {
2815
+ arg0.buffers = getArrayJsValueViewFromWasm0(arg1, arg2);
2816
+ },
2817
+ __wbg_set_bytes_per_row_1e824a5502b54b3d: function(arg0, arg1) {
2818
+ arg0.bytesPerRow = arg1 >>> 0;
2819
+ },
2820
+ __wbg_set_bytes_per_row_c28583f0063160f1: function(arg0, arg1) {
2821
+ arg0.bytesPerRow = arg1 >>> 0;
2822
+ },
2823
+ __wbg_set_cache_7507c4cc5938ccc7: function(arg0, arg1) {
2824
+ arg0.cache = __wbindgen_enum_RequestCache[arg1];
2825
+ },
2826
+ __wbg_set_clear_value_gpu_color_dict_a9f763e8372ac1de: function(arg0, arg1) {
2827
+ arg0.clearValue = arg1;
2828
+ },
2829
+ __wbg_set_code_5d5b0b9e2fd0dca7: function(arg0, arg1, arg2) {
2830
+ arg0.code = getStringFromWasm0(arg1, arg2);
2831
+ },
2832
+ __wbg_set_color_8ecace4011f47d2e: function(arg0, arg1) {
2833
+ arg0.color = arg1;
2834
+ },
2835
+ __wbg_set_color_attachments_622fe2d5997fda7a: function(arg0, arg1, arg2) {
2836
+ arg0.colorAttachments = getArrayJsValueViewFromWasm0(arg1, arg2);
2837
+ },
2838
+ __wbg_set_color_space_conversion_f27e9d866a683b4b: function(arg0, arg1) {
2839
+ arg0.colorSpaceConversion = __wbindgen_enum_ColorSpaceConversion[arg1];
2840
+ },
2841
+ __wbg_set_compare_080c9e492ff36990: function(arg0, arg1) {
2842
+ arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
2843
+ },
2844
+ __wbg_set_compare_817cf3695599eaa6: function(arg0, arg1) {
2845
+ arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
2846
+ },
2847
+ __wbg_set_count_8ff0c9474e39a849: function(arg0, arg1) {
2848
+ arg0.count = arg1 >>> 0;
2849
+ },
2850
+ __wbg_set_cull_mode_85d2b4ab0ce3a564: function(arg0, arg1) {
2851
+ arg0.cullMode = __wbindgen_enum_GpuCullMode[arg1];
2852
+ },
2853
+ __wbg_set_depth_bias_95abf479cae3f3cd: function(arg0, arg1) {
2854
+ arg0.depthBias = arg1;
2855
+ },
2856
+ __wbg_set_depth_bias_clamp_ba3d0b8348151350: function(arg0, arg1) {
2857
+ arg0.depthBiasClamp = arg1;
2858
+ },
2859
+ __wbg_set_depth_bias_slope_scale_6b2584d93f5b9cd2: function(arg0, arg1) {
2860
+ arg0.depthBiasSlopeScale = arg1;
2861
+ },
2862
+ __wbg_set_depth_clear_value_e30a4c754c6b3b26: function(arg0, arg1) {
2863
+ arg0.depthClearValue = arg1;
2864
+ },
2865
+ __wbg_set_depth_compare_a90de4e3714397ab: function(arg0, arg1) {
2866
+ arg0.depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
2867
+ },
2868
+ __wbg_set_depth_fail_op_b5c64541d1b6b482: function(arg0, arg1) {
2869
+ arg0.depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
2870
+ },
2871
+ __wbg_set_depth_load_op_932888016d762d3e: function(arg0, arg1) {
2872
+ arg0.depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
2873
+ },
2874
+ __wbg_set_depth_or_array_layers_e2f074a0284e4806: function(arg0, arg1) {
2875
+ arg0.depthOrArrayLayers = arg1 >>> 0;
2876
+ },
2877
+ __wbg_set_depth_read_only_be790175a1c2db9a: function(arg0, arg1) {
2878
+ arg0.depthReadOnly = arg1 !== 0;
2879
+ },
2880
+ __wbg_set_depth_stencil_attachment_54a8922f5fbe08bf: function(arg0, arg1) {
2881
+ arg0.depthStencilAttachment = arg1;
2882
+ },
2883
+ __wbg_set_depth_stencil_b7cffc59ad4da529: function(arg0, arg1) {
2884
+ arg0.depthStencil = arg1;
2885
+ },
2886
+ __wbg_set_depth_store_op_9054814f164ab55d: function(arg0, arg1) {
2887
+ arg0.depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
2888
+ },
2889
+ __wbg_set_depth_write_enabled_31a821ee1fb3b0b3: function(arg0, arg1) {
2890
+ arg0.depthWriteEnabled = arg1 !== 0;
2891
+ },
2892
+ __wbg_set_device_210484a77b675c9c: function(arg0, arg1) {
2893
+ arg0.device = arg1;
2894
+ },
2895
+ __wbg_set_dimension_3da9d03131a9f446: function(arg0, arg1) {
2896
+ arg0.dimension = __wbindgen_enum_GpuTextureDimension[arg1];
2897
+ },
2898
+ __wbg_set_dimension_56332450afa3e0c0: function(arg0, arg1) {
2899
+ arg0.dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
2900
+ },
2901
+ __wbg_set_dst_factor_865ba9aaf187890c: function(arg0, arg1) {
2902
+ arg0.dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
2903
+ },
2904
+ __wbg_set_end_of_pass_write_index_8f164f9e60d4ad16: function(arg0, arg1) {
2905
+ arg0.endOfPassWriteIndex = arg1 >>> 0;
2906
+ },
2907
+ __wbg_set_entries_6f866302103b81e9: function(arg0, arg1, arg2) {
2908
+ arg0.entries = getArrayJsValueViewFromWasm0(arg1, arg2);
2909
+ },
2910
+ __wbg_set_entries_f26b77ab9548e906: function(arg0, arg1, arg2) {
2911
+ arg0.entries = getArrayJsValueViewFromWasm0(arg1, arg2);
2912
+ },
2913
+ __wbg_set_entry_point_71cef95c137b5774: function(arg0, arg1, arg2) {
2914
+ arg0.entryPoint = getStringFromWasm0(arg1, arg2);
2915
+ },
2916
+ __wbg_set_entry_point_b70f98f5025a114d: function(arg0, arg1, arg2) {
2917
+ arg0.entryPoint = getStringFromWasm0(arg1, arg2);
2918
+ },
2919
+ __wbg_set_external_texture_7f966c604c4f8098: function(arg0, arg1) {
2920
+ arg0.externalTexture = arg1;
2921
+ },
2922
+ __wbg_set_fail_op_d59d0187e4111dfe: function(arg0, arg1) {
2923
+ arg0.failOp = __wbindgen_enum_GpuStencilOperation[arg1];
2924
+ },
2925
+ __wbg_set_flip_y_5a9a7c3fd5a2314e: function(arg0, arg1) {
2926
+ arg0.flipY = arg1 !== 0;
2927
+ },
2928
+ __wbg_set_format_23f7f32549751d43: function(arg0, arg1) {
2929
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
2930
+ },
2931
+ __wbg_set_format_283dca56552f07a3: function(arg0, arg1) {
2932
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
2933
+ },
2934
+ __wbg_set_format_5080a858117ad2c1: function(arg0, arg1) {
2935
+ arg0.format = __wbindgen_enum_GpuVertexFormat[arg1];
2936
+ },
2937
+ __wbg_set_format_66735b94bd868ba2: function(arg0, arg1) {
2938
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
2939
+ },
2940
+ __wbg_set_format_7f2bdbfb101b1ae1: function(arg0, arg1) {
2941
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
2942
+ },
2943
+ __wbg_set_format_92732ea75d3b79f5: function(arg0, arg1) {
2944
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
2945
+ },
2946
+ __wbg_set_format_f009e603f7d4c28e: function(arg0, arg1) {
2947
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
2948
+ },
2949
+ __wbg_set_fragment_d2b0ec97d7cf8d47: function(arg0, arg1) {
2950
+ arg0.fragment = arg1;
2951
+ },
2952
+ __wbg_set_front_face_d3f8a2e07e7b25dd: function(arg0, arg1) {
2953
+ arg0.frontFace = __wbindgen_enum_GpuFrontFace[arg1];
2954
+ },
2955
+ __wbg_set_g_b527ee8a9bed553d: function(arg0, arg1) {
2956
+ arg0.g = arg1;
2957
+ },
2958
+ __wbg_set_has_dynamic_offset_0c72ffa900c5a269: function(arg0, arg1) {
2959
+ arg0.hasDynamicOffset = arg1 !== 0;
2960
+ },
2961
+ __wbg_set_headers_40ad33dcf016613f: function(arg0, arg1) {
2962
+ arg0.headers = arg1;
2963
+ },
2964
+ __wbg_set_height_c9789c1c77eaedff: function(arg0, arg1) {
2965
+ arg0.height = arg1 >>> 0;
2966
+ },
2967
+ __wbg_set_height_f6619158e5735877: function(arg0, arg1) {
2968
+ arg0.height = arg1 >>> 0;
2969
+ },
2970
+ __wbg_set_height_fde391767df1ce27: function(arg0, arg1) {
2971
+ arg0.height = arg1 >>> 0;
2972
+ },
2973
+ __wbg_set_label_17202740051e9722: function(arg0, arg1, arg2) {
2974
+ arg0.label = getStringFromWasm0(arg1, arg2);
2975
+ },
2976
+ __wbg_set_label_2fefb39c0e0dbbe8: function(arg0, arg1, arg2) {
2977
+ arg0.label = getStringFromWasm0(arg1, arg2);
2978
+ },
2979
+ __wbg_set_label_3cb2322e6f6db14c: function(arg0, arg1, arg2) {
2980
+ arg0.label = getStringFromWasm0(arg1, arg2);
2981
+ },
2982
+ __wbg_set_label_3f2ccaafef5ff7c9: function(arg0, arg1, arg2) {
2983
+ arg0.label = getStringFromWasm0(arg1, arg2);
2984
+ },
2985
+ __wbg_set_label_612add98a4398f92: function(arg0, arg1, arg2) {
2986
+ arg0.label = getStringFromWasm0(arg1, arg2);
2987
+ },
2988
+ __wbg_set_label_70a09ee68d6b1b26: function(arg0, arg1, arg2) {
2989
+ arg0.label = getStringFromWasm0(arg1, arg2);
2990
+ },
2991
+ __wbg_set_label_92cd3811e96b487c: function(arg0, arg1, arg2) {
2992
+ arg0.label = getStringFromWasm0(arg1, arg2);
2993
+ },
2994
+ __wbg_set_label_9c2a186152427ee0: function(arg0, arg1, arg2) {
2995
+ arg0.label = getStringFromWasm0(arg1, arg2);
2996
+ },
2997
+ __wbg_set_label_c3eaf136aa464cba: function(arg0, arg1, arg2) {
2998
+ arg0.label = getStringFromWasm0(arg1, arg2);
2999
+ },
3000
+ __wbg_set_label_c7987704d29f284b: function(arg0, arg1, arg2) {
3001
+ arg0.label = getStringFromWasm0(arg1, arg2);
3002
+ },
3003
+ __wbg_set_label_cfe64bca8945ee30: function(arg0, arg1, arg2) {
3004
+ arg0.label = getStringFromWasm0(arg1, arg2);
3005
+ },
3006
+ __wbg_set_label_e02179cf97e95763: function(arg0, arg1, arg2) {
3007
+ arg0.label = getStringFromWasm0(arg1, arg2);
3008
+ },
3009
+ __wbg_set_label_ee172cd5f6a96961: function(arg0, arg1, arg2) {
3010
+ arg0.label = getStringFromWasm0(arg1, arg2);
3011
+ },
3012
+ __wbg_set_layout_454e3a091b390cd4: function(arg0, arg1) {
3013
+ arg0.layout = arg1;
3014
+ },
3015
+ __wbg_set_layout_75dc1ca3f2421cff: function(arg0, arg1) {
3016
+ arg0.layout = arg1;
3017
+ },
3018
+ __wbg_set_layout_gpu_auto_layout_mode_06a2b95af1043098: function(arg0, arg1) {
3019
+ arg0.layout = __wbindgen_enum_GpuAutoLayoutMode[arg1];
3020
+ },
3021
+ __wbg_set_load_op_c56b1269acc2d51f: function(arg0, arg1) {
3022
+ arg0.loadOp = __wbindgen_enum_GpuLoadOp[arg1];
2797
3023
  },
2798
- __wbg_of_d5dbecdc59e02e34: function(arg0) {
2799
- const ret = Array.of(arg0);
2800
- return ret;
3024
+ __wbg_set_lod_max_clamp_db24179f67f3aa31: function(arg0, arg1) {
3025
+ arg0.lodMaxClamp = arg1;
2801
3026
  },
2802
- __wbg_of_dde0b9d3265685ee: function(arg0, arg1, arg2) {
2803
- const ret = Array.of(arg0, arg1, arg2);
2804
- return ret;
3027
+ __wbg_set_lod_min_clamp_2bbce566e9fefa04: function(arg0, arg1) {
3028
+ arg0.lodMinClamp = arg1;
2805
3029
  },
2806
- __wbg_of_fea2613674ee0d0f: function(arg0, arg1, arg2, arg3, arg4) {
2807
- const ret = Array.of(arg0, arg1, arg2, arg3, arg4);
2808
- return ret;
3030
+ __wbg_set_mag_filter_db8e6b42d4f8846d: function(arg0, arg1) {
3031
+ arg0.magFilter = __wbindgen_enum_GpuFilterMode[arg1];
2809
3032
  },
2810
- __wbg_ok_125878a7db256ecb: function(arg0) {
2811
- const ret = arg0.ok;
2812
- return ret;
3033
+ __wbg_set_mapped_at_creation_3f320fef6761b02c: function(arg0, arg1) {
3034
+ arg0.mappedAtCreation = arg1 !== 0;
2813
3035
  },
2814
- __wbg_performance_d0d7b03fc649b694: function(arg0) {
2815
- const ret = arg0.performance;
2816
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3036
+ __wbg_set_mask_c1079e551ec360dc: function(arg0, arg1) {
3037
+ arg0.mask = arg1 >>> 0;
2817
3038
  },
2818
- __wbg_pixelStorei_af18e636b3e7b725: function(arg0, arg1, arg2) {
2819
- arg0.pixelStorei(arg1 >>> 0, arg2);
3039
+ __wbg_set_max_anisotropy_84749fdcec362dc4: function(arg0, arg1) {
3040
+ arg0.maxAnisotropy = arg1;
2820
3041
  },
2821
- __wbg_pixelStorei_cb4e43466f5b8703: function(arg0, arg1, arg2) {
2822
- arg0.pixelStorei(arg1 >>> 0, arg2);
3042
+ __wbg_set_min_binding_size_f64_897e3cd4496ddec9: function(arg0, arg1) {
3043
+ arg0.minBindingSize = arg1;
2823
3044
  },
2824
- __wbg_polygonOffset_81dc8ca84e29572b: function(arg0, arg1, arg2) {
2825
- arg0.polygonOffset(arg1, arg2);
3045
+ __wbg_set_min_filter_d435bbfc5a637757: function(arg0, arg1) {
3046
+ arg0.minFilter = __wbindgen_enum_GpuFilterMode[arg1];
2826
3047
  },
2827
- __wbg_polygonOffset_8f922d9173d8849d: function(arg0, arg1, arg2) {
2828
- arg0.polygonOffset(arg1, arg2);
3048
+ __wbg_set_mip_level_03ed7bbd0ded367f: function(arg0, arg1) {
3049
+ arg0.mipLevel = arg1 >>> 0;
2829
3050
  },
2830
- __wbg_prototypesetcall_06eb15da165dee8f: function(arg0, arg1, arg2) {
2831
- Uint32Array.prototype.set.call(getArrayU32FromWasm0(arg0, arg1), arg2);
3051
+ __wbg_set_mip_level_count_047936c630acee7b: function(arg0, arg1) {
3052
+ arg0.mipLevelCount = arg1 >>> 0;
2832
3053
  },
2833
- __wbg_prototypesetcall_8b03c01e2c0f8066: function(arg0, arg1, arg2) {
2834
- Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), arg2);
3054
+ __wbg_set_mip_level_count_44bc46a1ae6f6daa: function(arg0, arg1) {
3055
+ arg0.mipLevelCount = arg1 >>> 0;
2835
3056
  },
2836
- __wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
2837
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
3057
+ __wbg_set_mip_level_f3745730372683d5: function(arg0, arg1) {
3058
+ arg0.mipLevel = arg1 >>> 0;
2838
3059
  },
2839
- __wbg_prototypesetcall_d49a4fab5ca427bc: function(arg0, arg1, arg2) {
2840
- Float64Array.prototype.set.call(getArrayF64FromWasm0(arg0, arg1), arg2);
3060
+ __wbg_set_mipmap_filter_62fb49a84b0747ff: function(arg0, arg1) {
3061
+ arg0.mipmapFilter = __wbindgen_enum_GpuMipmapFilterMode[arg1];
2841
3062
  },
2842
- __wbg_push_2baf45db356cf468: function(arg0, arg1) {
2843
- const ret = arg0.push(arg1);
2844
- return ret;
3063
+ __wbg_set_mode_7edfbc344ef9c650: function(arg0, arg1) {
3064
+ arg0.mode = __wbindgen_enum_GpuCanvasToneMappingMode[arg1];
2845
3065
  },
2846
- __wbg_queueMicrotask_9833f9a49df95a49: function(arg0) {
2847
- const ret = arg0.queueMicrotask;
2848
- return ret;
3066
+ __wbg_set_module_392eeaa269f203b0: function(arg0, arg1) {
3067
+ arg0.module = arg1;
2849
3068
  },
2850
- __wbg_queueMicrotask_a72f977e97f23c5f: function(arg0) {
2851
- queueMicrotask(arg0);
3069
+ __wbg_set_module_715d37652c4998ec: function(arg0, arg1) {
3070
+ arg0.module = arg1;
2852
3071
  },
2853
- __wbg_readPixels_31e44e70558ac590: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2854
- arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
2855
- }, arguments); },
2856
- __wbg_readPixels_3321086a7818a739: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2857
- arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
2858
- }, arguments); },
2859
- __wbg_readPixels_eb030cd9976eeca5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2860
- arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
2861
- }, arguments); },
2862
- __wbg_renderbufferStorage_52b131bbf3112b3a: function(arg0, arg1, arg2, arg3, arg4) {
2863
- arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
3072
+ __wbg_set_multisample_ff72a7a5456cbeb7: function(arg0, arg1) {
3073
+ arg0.multisample = arg1;
2864
3074
  },
2865
- __wbg_renderbufferStorage_bca487b0dea425b8: function(arg0, arg1, arg2, arg3, arg4) {
2866
- arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
3075
+ __wbg_set_multisampled_039f032dc4b67367: function(arg0, arg1) {
3076
+ arg0.multisampled = arg1 !== 0;
2867
3077
  },
2868
- __wbg_resolve_0076e10020304ede: function(arg0) {
2869
- const ret = Promise.resolve(arg0);
2870
- return ret;
3078
+ __wbg_set_offset_f64_127e8a0aa5c5485a: function(arg0, arg1) {
3079
+ arg0.offset = arg1;
2871
3080
  },
2872
- __wbg_scissor_12ddc324094acd50: function(arg0, arg1, arg2, arg3, arg4) {
2873
- arg0.scissor(arg1, arg2, arg3, arg4);
3081
+ __wbg_set_offset_f64_457756429ede426d: function(arg0, arg1) {
3082
+ arg0.offset = arg1;
2874
3083
  },
2875
- __wbg_scissor_a9468482697c2bdb: function(arg0, arg1, arg2, arg3, arg4) {
2876
- arg0.scissor(arg1, arg2, arg3, arg4);
3084
+ __wbg_set_offset_f64_a903425d5a8e5815: function(arg0, arg1) {
3085
+ arg0.offset = arg1;
2877
3086
  },
2878
- __wbg_setTimeout_db7bbc18a17e152a: function() { return handleError(function (arg0, arg1, arg2) {
2879
- const ret = arg0.setTimeout(arg1, arg2);
2880
- return ret;
2881
- }, arguments); },
2882
- __wbg_set_145a351398b48c65: function() { return handleError(function (arg0, arg1, arg2) {
2883
- const ret = Reflect.set(arg0, arg1, arg2);
2884
- return ret;
2885
- }, arguments); },
2886
- __wbg_set_af5932e3f78b5648: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2887
- arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
2888
- }, arguments); },
2889
- __wbg_set_alpha_6dea851a46253adf: function(arg0, arg1) {
2890
- arg0.alpha = arg1 !== 0;
3087
+ __wbg_set_offset_f64_d1d115dd438165b5: function(arg0, arg1) {
3088
+ arg0.offset = arg1;
2891
3089
  },
2892
- __wbg_set_antialias_1f699e96763e8a35: function(arg0, arg1) {
2893
- arg0.antialias = arg1 !== 0;
3090
+ __wbg_set_onuncapturederror_bb813f1102da2296: function(arg0, arg1) {
3091
+ arg0.onuncapturederror = arg1;
2894
3092
  },
2895
- __wbg_set_cache_7507c4cc5938ccc7: function(arg0, arg1) {
2896
- arg0.cache = __wbindgen_enum_RequestCache[arg1];
3093
+ __wbg_set_operation_00a77386523b88f9: function(arg0, arg1) {
3094
+ arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
2897
3095
  },
2898
- __wbg_set_color_space_conversion_f27e9d866a683b4b: function(arg0, arg1) {
2899
- arg0.colorSpaceConversion = __wbindgen_enum_ColorSpaceConversion[arg1];
3096
+ __wbg_set_origin_gpu_origin_2d_dict_8156da81552cd590: function(arg0, arg1) {
3097
+ arg0.origin = arg1;
2900
3098
  },
2901
- __wbg_set_depth_8b49de49803d4e60: function(arg0, arg1) {
2902
- arg0.depth = arg1 !== 0;
3099
+ __wbg_set_origin_gpu_origin_3d_dict_0619d4860adb4eb6: function(arg0, arg1) {
3100
+ arg0.origin = arg1;
2903
3101
  },
2904
- __wbg_set_headers_40ad33dcf016613f: function(arg0, arg1) {
2905
- arg0.headers = arg1;
3102
+ __wbg_set_origin_gpu_origin_3d_dict_abd0dec737979786: function(arg0, arg1) {
3103
+ arg0.origin = arg1;
3104
+ },
3105
+ __wbg_set_pass_op_3cf10feb3d76ab97: function(arg0, arg1) {
3106
+ arg0.passOp = __wbindgen_enum_GpuStencilOperation[arg1];
2906
3107
  },
2907
- __wbg_set_power_preference_6ef22d4c8baf517f: function(arg0, arg1) {
2908
- arg0.powerPreference = __wbindgen_enum_WebGlPowerPreference[arg1];
3108
+ __wbg_set_power_preference_b42d00a8facfbade: function(arg0, arg1) {
3109
+ arg0.powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
3110
+ },
3111
+ __wbg_set_premultiplied_alpha_6d23532454ce9a12: function(arg0, arg1) {
3112
+ arg0.premultipliedAlpha = arg1 !== 0;
2909
3113
  },
2910
3114
  __wbg_set_premultiply_alpha_45a4cf9a1e87bfbf: function(arg0, arg1) {
2911
3115
  arg0.premultiplyAlpha = __wbindgen_enum_PremultiplyAlpha[arg1];
2912
3116
  },
3117
+ __wbg_set_primitive_e796cf76f0ff89f3: function(arg0, arg1) {
3118
+ arg0.primitive = arg1;
3119
+ },
3120
+ __wbg_set_query_set_f030702f1b69199f: function(arg0, arg1) {
3121
+ arg0.querySet = arg1;
3122
+ },
3123
+ __wbg_set_r_6ece4d74af63364f: function(arg0, arg1) {
3124
+ arg0.r = arg1;
3125
+ },
3126
+ __wbg_set_required_features_bbab71414c45e621: function(arg0, arg1, arg2) {
3127
+ arg0.requiredFeatures = getArrayJsValueViewFromWasm0(arg1, arg2);
3128
+ },
3129
+ __wbg_set_required_limits_837f62d865e7cfac: function(arg0, arg1) {
3130
+ arg0.requiredLimits = arg1;
3131
+ },
2913
3132
  __wbg_set_resize_height_274433c2f249624d: function(arg0, arg1) {
2914
3133
  arg0.resizeHeight = arg1 >>> 0;
2915
3134
  },
2916
3135
  __wbg_set_resize_width_6f06543b29d1ca48: function(arg0, arg1) {
2917
3136
  arg0.resizeWidth = arg1 >>> 0;
2918
3137
  },
2919
- __wbg_set_signal_2dbd377604627f26: function(arg0, arg1) {
2920
- arg0.signal = arg1;
3138
+ __wbg_set_resolve_target_gpu_texture_view_e4c1e3bbb8c27d87: function(arg0, arg1) {
3139
+ arg0.resolveTarget = arg1;
2921
3140
  },
2922
- __wbg_set_stencil_edc32d9477c7c107: function(arg0, arg1) {
2923
- arg0.stencil = arg1 !== 0;
3141
+ __wbg_set_resource_8fd8658b30d86ecf: function(arg0, arg1) {
3142
+ arg0.resource = arg1;
2924
3143
  },
2925
- __wbg_set_type_dcf75b2afa60c694: function(arg0, arg1, arg2) {
2926
- arg0.type = getStringFromWasm0(arg1, arg2);
3144
+ __wbg_set_resource_gpu_buffer_binding_33099b25da65b610: function(arg0, arg1) {
3145
+ arg0.resource = arg1;
2927
3146
  },
2928
- __wbg_shaderSource_06379dac249994dd: function(arg0, arg1, arg2, arg3) {
2929
- arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
3147
+ __wbg_set_resource_gpu_texture_view_4cffe7bc7c8e5cbe: function(arg0, arg1) {
3148
+ arg0.resource = arg1;
2930
3149
  },
2931
- __wbg_shaderSource_c8812639b47d87b9: function(arg0, arg1, arg2, arg3) {
2932
- arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
3150
+ __wbg_set_rows_per_image_c6d50d227e634379: function(arg0, arg1) {
3151
+ arg0.rowsPerImage = arg1 >>> 0;
2933
3152
  },
2934
- __wbg_signal_e5a49a2d9c65b7f6: function(arg0) {
2935
- const ret = arg0.signal;
2936
- return ret;
3153
+ __wbg_set_rows_per_image_deb456502f23c260: function(arg0, arg1) {
3154
+ arg0.rowsPerImage = arg1 >>> 0;
2937
3155
  },
2938
- __wbg_size_74c48d7329291685: function(arg0) {
2939
- const ret = arg0.size;
2940
- return ret;
3156
+ __wbg_set_sample_count_481c255a12054e1d: function(arg0, arg1) {
3157
+ arg0.sampleCount = arg1 >>> 0;
2941
3158
  },
2942
- __wbg_static_accessor_GLOBAL_266715b9d96ba635: function() {
2943
- const ret = typeof global === 'undefined' ? null : global;
2944
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3159
+ __wbg_set_sample_type_ebc5fcd029513bda: function(arg0, arg1) {
3160
+ arg0.sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
2945
3161
  },
2946
- __wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179: function() {
2947
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
2948
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3162
+ __wbg_set_sampler_89cb4a7efcfc6005: function(arg0, arg1) {
3163
+ arg0.sampler = arg1;
2949
3164
  },
2950
- __wbg_static_accessor_SELF_0b583911f537483a: function() {
2951
- const ret = typeof self === 'undefined' ? null : self;
2952
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3165
+ __wbg_set_shader_location_3fb9f6a012eba494: function(arg0, arg1) {
3166
+ arg0.shaderLocation = arg1 >>> 0;
2953
3167
  },
2954
- __wbg_static_accessor_WINDOW_d7f903d1508cbdc4: function() {
2955
- const ret = typeof window === 'undefined' ? null : window;
2956
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3168
+ __wbg_set_signal_2dbd377604627f26: function(arg0, arg1) {
3169
+ arg0.signal = arg1;
2957
3170
  },
2958
- __wbg_status_ce0a98d3c57125f3: function(arg0) {
2959
- const ret = arg0.status;
2960
- return ret;
3171
+ __wbg_set_size_f64_2f591b0654540477: function(arg0, arg1) {
3172
+ arg0.size = arg1;
2961
3173
  },
2962
- __wbg_stencilFunc_aa3cd8856be514c4: function(arg0, arg1, arg2, arg3) {
2963
- arg0.stencilFunc(arg1 >>> 0, arg2, arg3 >>> 0);
3174
+ __wbg_set_size_f64_e844c985b8f95261: function(arg0, arg1) {
3175
+ arg0.size = arg1;
2964
3176
  },
2965
- __wbg_stencilFunc_bab7e0b7c443f093: function(arg0, arg1, arg2, arg3) {
2966
- arg0.stencilFunc(arg1 >>> 0, arg2, arg3 >>> 0);
3177
+ __wbg_set_size_gpu_extent_3d_dict_adf57388ab1d4f18: function(arg0, arg1) {
3178
+ arg0.size = arg1;
2967
3179
  },
2968
- __wbg_stencilMask_9e18cc018897c747: function(arg0, arg1) {
2969
- arg0.stencilMask(arg1 >>> 0);
3180
+ __wbg_set_source_211aa06496d82b73: function(arg0, arg1) {
3181
+ arg0.source = arg1;
2970
3182
  },
2971
- __wbg_stencilMask_a22be64c66abd825: function(arg0, arg1) {
2972
- arg0.stencilMask(arg1 >>> 0);
3183
+ __wbg_set_source_html_canvas_element_5577621adc0f8ff6: function(arg0, arg1) {
3184
+ arg0.source = arg1;
2973
3185
  },
2974
- __wbg_stencilOpSeparate_7d01185cbdb89d99: function(arg0, arg1, arg2, arg3, arg4) {
2975
- arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
3186
+ __wbg_set_source_html_image_element_23fa06e99ca07cc0: function(arg0, arg1) {
3187
+ arg0.source = arg1;
2976
3188
  },
2977
- __wbg_stencilOpSeparate_c5af5f5dbd237bea: function(arg0, arg1, arg2, arg3, arg4) {
2978
- arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
3189
+ __wbg_set_source_html_video_element_e57b5cacb7b02736: function(arg0, arg1) {
3190
+ arg0.source = arg1;
2979
3191
  },
2980
- __wbg_stencilOp_12274af665ab8a00: function(arg0, arg1, arg2, arg3) {
2981
- arg0.stencilOp(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
3192
+ __wbg_set_source_image_data_c80600573a809775: function(arg0, arg1) {
3193
+ arg0.source = arg1;
2982
3194
  },
2983
- __wbg_stencilOp_2697194654fee819: function(arg0, arg1, arg2, arg3) {
2984
- arg0.stencilOp(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
3195
+ __wbg_set_source_offscreen_canvas_7d49271754887b4e: function(arg0, arg1) {
3196
+ arg0.source = arg1;
2985
3197
  },
2986
- __wbg_subarray_002b94d5e13d1411: function(arg0, arg1, arg2) {
2987
- const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
2988
- return ret;
3198
+ __wbg_set_source_video_frame_e4faebda27c393e4: function(arg0, arg1) {
3199
+ arg0.source = arg1;
2989
3200
  },
2990
- __wbg_texImage2D_1b3349107ad0faae: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2991
- arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4 >>> 0, arg5 >>> 0, arg6);
2992
- }, arguments); },
2993
- __wbg_texImage2D_82bf2b4c8aa9a1db: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2994
- arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2995
- }, arguments); },
2996
- __wbg_texImage2D_8fc2f2fcca249b59: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2997
- arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4 >>> 0, arg5 >>> 0, arg6);
2998
- }, arguments); },
2999
- __wbg_texImage2D_a856af552acdc9d9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
3000
- arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
3001
- }, arguments); },
3002
- __wbg_texImage2D_ca3d0fe24620ec85: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
3003
- arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
3004
- }, arguments); },
3005
- __wbg_texParameteri_647fdb1426809cb5: function(arg0, arg1, arg2, arg3) {
3006
- arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
3201
+ __wbg_set_src_factor_6f2c9ec8e4d3d979: function(arg0, arg1) {
3202
+ arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
3007
3203
  },
3008
- __wbg_texParameteri_7864076abcdb03e0: function(arg0, arg1, arg2, arg3) {
3009
- arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
3204
+ __wbg_set_stencil_back_c54d0443b8b6a957: function(arg0, arg1) {
3205
+ arg0.stencilBack = arg1;
3010
3206
  },
3011
- __wbg_texStorage2D_cf2bd991072d9efb: function(arg0, arg1, arg2, arg3, arg4, arg5) {
3012
- arg0.texStorage2D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
3207
+ __wbg_set_stencil_clear_value_a321b0e045bfd8c2: function(arg0, arg1) {
3208
+ arg0.stencilClearValue = arg1 >>> 0;
3013
3209
  },
3014
- __wbg_texStorage3D_74b701c2b176380c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3015
- arg0.texStorage3D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6);
3210
+ __wbg_set_stencil_front_3ff3f8385852efff: function(arg0, arg1) {
3211
+ arg0.stencilFront = arg1;
3016
3212
  },
3017
- __wbg_texSubImage2D_31a0c2797aa04f32: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
3018
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
3019
- }, arguments); },
3020
- __wbg_texSubImage2D_5e90c7a719d40256: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
3021
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
3022
- }, arguments); },
3023
- __wbg_texSubImage2D_bb322aae90f7657f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
3024
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
3025
- }, arguments); },
3026
- __wbg_texSubImage3D_5143d5af7e182ddc: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
3027
- arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
3028
- }, arguments); },
3029
- __wbg_texSubImage3D_5d773fc7a8cd4d08: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
3030
- arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
3031
- }, arguments); },
3032
- __wbg_texSubImage3D_e0d113b7047a5130: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
3033
- arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
3034
- }, arguments); },
3035
- __wbg_then_c949d5a25a4e78f8: function(arg0, arg1, arg2) {
3036
- const ret = arg0.then(arg1, arg2);
3037
- return ret;
3213
+ __wbg_set_stencil_load_op_37d20deccb26a0f1: function(arg0, arg1) {
3214
+ arg0.stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
3038
3215
  },
3039
- __wbg_then_e71170d78fcf8954: function(arg0, arg1) {
3040
- const ret = arg0.then(arg1);
3041
- return ret;
3216
+ __wbg_set_stencil_read_mask_021ef4271b24352c: function(arg0, arg1) {
3217
+ arg0.stencilReadMask = arg1 >>> 0;
3042
3218
  },
3043
- __wbg_type_ff6f7b321fe8478b: function(arg0) {
3044
- const ret = arg0.type;
3045
- return ret;
3219
+ __wbg_set_stencil_read_only_75fe66a2356d6e92: function(arg0, arg1) {
3220
+ arg0.stencilReadOnly = arg1 !== 0;
3221
+ },
3222
+ __wbg_set_stencil_store_op_501f91638dd386e6: function(arg0, arg1) {
3223
+ arg0.stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
3224
+ },
3225
+ __wbg_set_stencil_write_mask_ec1c12237e094bdd: function(arg0, arg1) {
3226
+ arg0.stencilWriteMask = arg1 >>> 0;
3227
+ },
3228
+ __wbg_set_step_mode_3cbbdeba1e5dfd62: function(arg0, arg1) {
3229
+ arg0.stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
3230
+ },
3231
+ __wbg_set_storage_texture_786aea7c5773b6c1: function(arg0, arg1) {
3232
+ arg0.storageTexture = arg1;
3046
3233
  },
3047
- __wbg_uniform1f_9cfecfaeb8cf43c1: function(arg0, arg1, arg2) {
3048
- arg0.uniform1f(arg1, arg2);
3234
+ __wbg_set_store_op_678f33376d741711: function(arg0, arg1) {
3235
+ arg0.storeOp = __wbindgen_enum_GpuStoreOp[arg1];
3049
3236
  },
3050
- __wbg_uniform1f_b5856e35a43b65a1: function(arg0, arg1, arg2) {
3051
- arg0.uniform1f(arg1, arg2);
3237
+ __wbg_set_strip_index_format_70313df755145d5e: function(arg0, arg1) {
3238
+ arg0.stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
3052
3239
  },
3053
- __wbg_uniform1fv_1bf537fc926ef8b9: function(arg0, arg1, arg2, arg3) {
3054
- arg0.uniform1fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3240
+ __wbg_set_targets_674b33931e512fb1: function(arg0, arg1, arg2) {
3241
+ arg0.targets = getArrayJsValueViewFromWasm0(arg1, arg2);
3055
3242
  },
3056
- __wbg_uniform1fv_1cc1d09bc13b03bf: function(arg0, arg1, arg2, arg3) {
3057
- arg0.uniform1fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3243
+ __wbg_set_texture_4e0ee4c98ac25b81: function(arg0, arg1) {
3244
+ arg0.texture = arg1;
3058
3245
  },
3059
- __wbg_uniform1i_531b98c4a7177366: function(arg0, arg1, arg2) {
3060
- arg0.uniform1i(arg1, arg2);
3246
+ __wbg_set_texture_95f2bfdf7767e76f: function(arg0, arg1) {
3247
+ arg0.texture = arg1;
3061
3248
  },
3062
- __wbg_uniform1i_fc2dc8cadc49d8ec: function(arg0, arg1, arg2) {
3063
- arg0.uniform1i(arg1, arg2);
3249
+ __wbg_set_texture_a33be3fe02ac6264: function(arg0, arg1) {
3250
+ arg0.texture = arg1;
3064
3251
  },
3065
- __wbg_uniform1iv_4b8cbceccddfaa62: function(arg0, arg1, arg2, arg3) {
3066
- arg0.uniform1iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3252
+ __wbg_set_timestamp_writes_de6a09f299b71b76: function(arg0, arg1) {
3253
+ arg0.timestampWrites = arg1;
3067
3254
  },
3068
- __wbg_uniform1iv_8fc880ae80c77c74: function(arg0, arg1, arg2, arg3) {
3069
- arg0.uniform1iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3255
+ __wbg_set_tone_mapping_320c1aad31db2e7f: function(arg0, arg1) {
3256
+ arg0.toneMapping = arg1;
3070
3257
  },
3071
- __wbg_uniform1ui_353c67ec681b540c: function(arg0, arg1, arg2) {
3072
- arg0.uniform1ui(arg1, arg2 >>> 0);
3258
+ __wbg_set_topology_b92cfe523bd9653b: function(arg0, arg1) {
3259
+ arg0.topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
3073
3260
  },
3074
- __wbg_uniform1uiv_ad5e946730aacbec: function(arg0, arg1, arg2, arg3) {
3075
- arg0.uniform1uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
3261
+ __wbg_set_type_43e0092f16775979: function(arg0, arg1) {
3262
+ arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
3076
3263
  },
3077
- __wbg_uniform2f_131da2d4bf17e4b9: function(arg0, arg1, arg2, arg3) {
3078
- arg0.uniform2f(arg1, arg2, arg3);
3264
+ __wbg_set_type_79cec55caf4cdb6d: function(arg0, arg1) {
3265
+ arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
3079
3266
  },
3080
- __wbg_uniform2f_a92b5bb95dc5b4d9: function(arg0, arg1, arg2, arg3) {
3081
- arg0.uniform2f(arg1, arg2, arg3);
3267
+ __wbg_set_type_dcf75b2afa60c694: function(arg0, arg1, arg2) {
3268
+ arg0.type = getStringFromWasm0(arg1, arg2);
3269
+ },
3270
+ __wbg_set_unclipped_depth_32b7caf29fa5633d: function(arg0, arg1) {
3271
+ arg0.unclippedDepth = arg1 !== 0;
3272
+ },
3273
+ __wbg_set_usage_1ee33d98267e787d: function(arg0, arg1) {
3274
+ arg0.usage = arg1 >>> 0;
3082
3275
  },
3083
- __wbg_uniform2fv_319c49f0ce340f26: function(arg0, arg1, arg2, arg3) {
3084
- arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3276
+ __wbg_set_usage_2365e2704b1fdb10: function(arg0, arg1) {
3277
+ arg0.usage = arg1 >>> 0;
3085
3278
  },
3086
- __wbg_uniform2fv_a7d3c1830d18c1b2: function(arg0, arg1, arg2, arg3) {
3087
- arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3279
+ __wbg_set_usage_d53ee6f0c7aedbfa: function(arg0, arg1) {
3280
+ arg0.usage = arg1 >>> 0;
3088
3281
  },
3089
- __wbg_uniform2iv_65f36fc9777697d7: function(arg0, arg1, arg2, arg3) {
3090
- arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3282
+ __wbg_set_usage_f3e34822998d2147: function(arg0, arg1) {
3283
+ arg0.usage = arg1 >>> 0;
3091
3284
  },
3092
- __wbg_uniform2iv_ca9cb507409b9ad1: function(arg0, arg1, arg2, arg3) {
3093
- arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3285
+ __wbg_set_vertex_77ed7a1229239b5a: function(arg0, arg1) {
3286
+ arg0.vertex = arg1;
3094
3287
  },
3095
- __wbg_uniform2uiv_c95af5fb653ccb86: function(arg0, arg1, arg2, arg3) {
3096
- arg0.uniform2uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
3288
+ __wbg_set_view_dimension_893e2d16561e56e8: function(arg0, arg1) {
3289
+ arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
3097
3290
  },
3098
- __wbg_uniform3f_1211579ff87ccfad: function(arg0, arg1, arg2, arg3, arg4) {
3099
- arg0.uniform3f(arg1, arg2, arg3, arg4);
3291
+ __wbg_set_view_dimension_f2c5fe4bf927c3fe: function(arg0, arg1) {
3292
+ arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
3100
3293
  },
3101
- __wbg_uniform3f_ee105161897ee48a: function(arg0, arg1, arg2, arg3, arg4) {
3102
- arg0.uniform3f(arg1, arg2, arg3, arg4);
3294
+ __wbg_set_view_formats_427069064d8b7139: function(arg0, arg1, arg2) {
3295
+ arg0.viewFormats = getArrayJsValueViewFromWasm0(arg1, arg2);
3103
3296
  },
3104
- __wbg_uniform3fv_055ea5ac38af4fce: function(arg0, arg1, arg2, arg3) {
3105
- arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3297
+ __wbg_set_view_formats_9c2f01a6f3b365c7: function(arg0, arg1, arg2) {
3298
+ arg0.viewFormats = getArrayJsValueViewFromWasm0(arg1, arg2);
3106
3299
  },
3107
- __wbg_uniform3fv_58520ffe22a6e27c: function(arg0, arg1, arg2, arg3) {
3108
- arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3300
+ __wbg_set_view_gpu_texture_view_35f4655788535c4d: function(arg0, arg1) {
3301
+ arg0.view = arg1;
3109
3302
  },
3110
- __wbg_uniform3iv_0590e8b7eff2a791: function(arg0, arg1, arg2, arg3) {
3111
- arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3303
+ __wbg_set_view_gpu_texture_view_a532c825c52042c0: function(arg0, arg1) {
3304
+ arg0.view = arg1;
3112
3305
  },
3113
- __wbg_uniform3iv_e91b1410dc299f50: function(arg0, arg1, arg2, arg3) {
3114
- arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3306
+ __wbg_set_visibility_d8a6821789538c25: function(arg0, arg1) {
3307
+ arg0.visibility = arg1 >>> 0;
3115
3308
  },
3116
- __wbg_uniform3uiv_9992491000463a52: function(arg0, arg1, arg2, arg3) {
3117
- arg0.uniform3uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
3309
+ __wbg_set_width_0ca908d167690992: function(arg0, arg1) {
3310
+ arg0.width = arg1 >>> 0;
3118
3311
  },
3119
- __wbg_uniform4f_22bfec882308eec2: function(arg0, arg1, arg2, arg3, arg4, arg5) {
3120
- arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
3312
+ __wbg_set_width_b0e1267db4b196b5: function(arg0, arg1) {
3313
+ arg0.width = arg1 >>> 0;
3121
3314
  },
3122
- __wbg_uniform4f_8dd8f311e656ca0d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
3123
- arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
3315
+ __wbg_set_width_b20525f5f4df4eb8: function(arg0, arg1) {
3316
+ arg0.width = arg1 >>> 0;
3124
3317
  },
3125
- __wbg_uniform4fv_3ef2f5121fcb78ae: function(arg0, arg1, arg2, arg3) {
3126
- arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3318
+ __wbg_set_write_mask_42d89f182ade6b2d: function(arg0, arg1) {
3319
+ arg0.writeMask = arg1 >>> 0;
3127
3320
  },
3128
- __wbg_uniform4fv_cf8ff646c36232c8: function(arg0, arg1, arg2, arg3) {
3129
- arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3321
+ __wbg_set_x_58965df5af1ad27d: function(arg0, arg1) {
3322
+ arg0.x = arg1 >>> 0;
3130
3323
  },
3131
- __wbg_uniform4iv_6fc5436b4f876039: function(arg0, arg1, arg2, arg3) {
3132
- arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3324
+ __wbg_set_x_f470b03dd54724cd: function(arg0, arg1) {
3325
+ arg0.x = arg1 >>> 0;
3133
3326
  },
3134
- __wbg_uniform4iv_99c2b07787d362d6: function(arg0, arg1, arg2, arg3) {
3135
- arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3327
+ __wbg_set_y_4c44eb40ebca5bfc: function(arg0, arg1) {
3328
+ arg0.y = arg1 >>> 0;
3136
3329
  },
3137
- __wbg_uniform4uiv_a6fb3237d9df7ed4: function(arg0, arg1, arg2, arg3) {
3138
- arg0.uniform4uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
3330
+ __wbg_set_y_b79cba22b145de99: function(arg0, arg1) {
3331
+ arg0.y = arg1 >>> 0;
3139
3332
  },
3140
- __wbg_uniformMatrix3fv_472e7824735acce1: function(arg0, arg1, arg2, arg3, arg4) {
3141
- arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
3333
+ __wbg_set_z_2e6820ef0f5821ed: function(arg0, arg1) {
3334
+ arg0.z = arg1 >>> 0;
3335
+ },
3336
+ __wbg_signal_e5a49a2d9c65b7f6: function(arg0) {
3337
+ const ret = arg0.signal;
3338
+ return ret;
3142
3339
  },
3143
- __wbg_uniformMatrix3fv_83fdc9c3c0d43204: function(arg0, arg1, arg2, arg3, arg4) {
3144
- arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
3340
+ __wbg_static_accessor_GLOBAL_266715b9d96ba635: function() {
3341
+ const ret = typeof global === 'undefined' ? null : global;
3342
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3145
3343
  },
3146
- __wbg_uniformMatrix4fv_dff9738d995fd0b1: function(arg0, arg1, arg2, arg3, arg4) {
3147
- arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
3344
+ __wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179: function() {
3345
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
3346
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3148
3347
  },
3149
- __wbg_uniformMatrix4fv_e691d7f14d3609f7: function(arg0, arg1, arg2, arg3, arg4) {
3150
- arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
3348
+ __wbg_static_accessor_SELF_0b583911f537483a: function() {
3349
+ const ret = typeof self === 'undefined' ? null : self;
3350
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3151
3351
  },
3152
- __wbg_useProgram_5bdae58fd9f9826f: function(arg0, arg1) {
3153
- arg0.useProgram(arg1);
3352
+ __wbg_static_accessor_WINDOW_d7f903d1508cbdc4: function() {
3353
+ const ret = typeof window === 'undefined' ? null : window;
3354
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3154
3355
  },
3155
- __wbg_useProgram_e075c2902e420761: function(arg0, arg1) {
3156
- arg0.useProgram(arg1);
3356
+ __wbg_status_ce0a98d3c57125f3: function(arg0) {
3357
+ const ret = arg0.status;
3358
+ return ret;
3157
3359
  },
3158
- __wbg_vertexAttrib1f_37ce0547e8fa5f36: function(arg0, arg1, arg2) {
3159
- arg0.vertexAttrib1f(arg1 >>> 0, arg2);
3360
+ __wbg_subarray_002b94d5e13d1411: function(arg0, arg1, arg2) {
3361
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3362
+ return ret;
3160
3363
  },
3161
- __wbg_vertexAttrib1f_470b2556c148483a: function(arg0, arg1, arg2) {
3162
- arg0.vertexAttrib1f(arg1 >>> 0, arg2);
3364
+ __wbg_subgroupMaxSize_b43be0aa16182403: function(arg0) {
3365
+ const ret = arg0.subgroupMaxSize;
3366
+ return ret;
3163
3367
  },
3164
- __wbg_vertexAttribDivisorANGLE_659fb027198a47c3: function(arg0, arg1, arg2) {
3165
- arg0.vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0);
3368
+ __wbg_subgroupMinSize_03feb6ee0cda6775: function(arg0) {
3369
+ const ret = arg0.subgroupMinSize;
3370
+ return ret;
3166
3371
  },
3167
- __wbg_vertexAttribDivisor_7575d382215322f7: function(arg0, arg1, arg2) {
3168
- arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
3372
+ __wbg_submit_077c85cc28e36892: function(arg0, arg1, arg2) {
3373
+ arg0.submit(getArrayJsValueViewFromWasm0(arg1, arg2));
3169
3374
  },
3170
- __wbg_vertexAttribIPointer_fc8057c62cfcc63c: function(arg0, arg1, arg2, arg3, arg4, arg5) {
3171
- arg0.vertexAttribIPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
3375
+ __wbg_then_c949d5a25a4e78f8: function(arg0, arg1, arg2) {
3376
+ const ret = arg0.then(arg1, arg2);
3377
+ return ret;
3172
3378
  },
3173
- __wbg_vertexAttribPointer_24b495e18df325dc: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3174
- arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
3379
+ __wbg_then_e71170d78fcf8954: function(arg0, arg1) {
3380
+ const ret = arg0.then(arg1);
3381
+ return ret;
3175
3382
  },
3176
- __wbg_vertexAttribPointer_54d56b18f71a946d: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3177
- arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
3383
+ __wbg_unconfigure_835307f58dc68d80: function(arg0) {
3384
+ arg0.unconfigure();
3178
3385
  },
3179
- __wbg_viewport_16936692526e2ce6: function(arg0, arg1, arg2, arg3, arg4) {
3180
- arg0.viewport(arg1, arg2, arg3, arg4);
3386
+ __wbg_unmap_6a96b14c9ef5f7f5: function(arg0) {
3387
+ arg0.unmap();
3181
3388
  },
3182
- __wbg_viewport_e35d16c542d2ce70: function(arg0, arg1, arg2, arg3, arg4) {
3183
- arg0.viewport(arg1, arg2, arg3, arg4);
3389
+ __wbg_valueOf_02fd4d101b7553c7: function(arg0) {
3390
+ const ret = arg0.valueOf();
3391
+ return ret;
3184
3392
  },
3185
3393
  __wbg_warn_13abc63e0d4b3527: function(arg0) {
3186
3394
  console.warn(arg0);
3187
3395
  },
3396
+ __wbg_width_3d0dce3d9892e35e: function(arg0) {
3397
+ const ret = arg0.width;
3398
+ return ret;
3399
+ },
3188
3400
  __wbg_width_8a9cc26363f10d5f: function(arg0) {
3189
3401
  const ret = arg0.width;
3190
3402
  return ret;
3191
3403
  },
3404
+ __wbg_writeBuffer_f4bb3f54adfe1330: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3405
+ arg0.writeBuffer(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), arg5, arg6);
3406
+ }, arguments); },
3407
+ __wbg_writeTexture_30e592e8c061c3d9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
3408
+ arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
3409
+ }, arguments); },
3192
3410
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
3193
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 230, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3411
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 307, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3194
3412
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true_);
3195
3413
  return ret;
3196
3414
  },
3197
- __wbindgen_generic_0000000000000002: function(arg0) {
3198
- // Cast intrinsic for `F64 -> Externref`.
3199
- const ret = arg0;
3415
+ __wbindgen_generic_0000000000000002: function(arg0, arg1) {
3416
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 250, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3417
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___sys__JsNullable_wgpu_79b597b3111bcbe9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true_);
3200
3418
  return ret;
3201
3419
  },
3202
3420
  __wbindgen_generic_0000000000000003: function(arg0, arg1) {
3203
- // Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
3204
- const ret = getArrayF32FromWasm0(arg0, arg1);
3421
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 254, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3422
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wgpu_79b597b3111bcbe9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_);
3205
3423
  return ret;
3206
3424
  },
3207
3425
  __wbindgen_generic_0000000000000004: function(arg0, arg1) {
3208
- // Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
3209
- const ret = getArrayI16FromWasm0(arg0, arg1);
3426
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 250, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3427
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___sys__JsNullable_wgpu_79b597b3111bcbe9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true__130);
3210
3428
  return ret;
3211
3429
  },
3212
3430
  __wbindgen_generic_0000000000000005: function(arg0, arg1) {
3213
- // Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
3214
- const ret = getArrayI32FromWasm0(arg0, arg1);
3431
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 250, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3432
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___sys__JsNullable_wgpu_79b597b3111bcbe9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true__131);
3215
3433
  return ret;
3216
3434
  },
3217
- __wbindgen_generic_0000000000000006: function(arg0, arg1) {
3218
- // Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
3219
- const ret = getArrayI8FromWasm0(arg0, arg1);
3435
+ __wbindgen_generic_0000000000000006: function(arg0) {
3436
+ // Cast intrinsic for `F64 -> Externref`.
3437
+ const ret = arg0;
3220
3438
  return ret;
3221
3439
  },
3222
3440
  __wbindgen_generic_0000000000000007: function(arg0, arg1) {
3223
- // Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
3224
- const ret = getArrayU16FromWasm0(arg0, arg1);
3225
- return ret;
3226
- },
3227
- __wbindgen_generic_0000000000000008: function(arg0, arg1) {
3228
- // Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
3229
- const ret = getArrayU32FromWasm0(arg0, arg1);
3230
- return ret;
3231
- },
3232
- __wbindgen_generic_0000000000000009: function(arg0, arg1) {
3233
3441
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
3234
3442
  const ret = getArrayU8FromWasm0(arg0, arg1);
3235
3443
  return ret;
3236
3444
  },
3237
- __wbindgen_generic_000000000000000a: function(arg0, arg1) {
3445
+ __wbindgen_generic_0000000000000008: function(arg0, arg1) {
3238
3446
  // Cast intrinsic for `Ref(String) -> Externref`.
3239
3447
  const ret = getStringFromWasm0(arg0, arg1);
3240
3448
  return ret;
@@ -3251,10 +3459,14 @@ function __wbg_get_imports() {
3251
3459
  };
3252
3460
  return {
3253
3461
  __proto__: null,
3254
- "./isard_bg.js": import0,
3462
+ "./isard_webgpu_bg.js": import0,
3255
3463
  };
3256
3464
  }
3257
3465
 
3466
+ function wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wgpu_79b597b3111bcbe9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_(arg0, arg1, arg2) {
3467
+ wasm.wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wgpu_79b597b3111bcbe9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_(arg0, arg1, arg2);
3468
+ }
3469
+
3258
3470
  function wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true_(arg0, arg1, arg2) {
3259
3471
  const ret = wasm.wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true_(arg0, arg1, arg2);
3260
3472
  if (ret[1]) {
@@ -3262,6 +3474,27 @@ function wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bin
3262
3474
  }
3263
3475
  }
3264
3476
 
3477
+ function wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___sys__JsNullable_wgpu_79b597b3111bcbe9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true_(arg0, arg1, arg2) {
3478
+ const ret = wasm.wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___sys__JsNullable_wgpu_79b597b3111bcbe9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true_(arg0, arg1, arg2);
3479
+ if (ret[1]) {
3480
+ throw takeFromExternrefTable0(ret[0]);
3481
+ }
3482
+ }
3483
+
3484
+ function wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___sys__JsNullable_wgpu_79b597b3111bcbe9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true__130(arg0, arg1, arg2) {
3485
+ const ret = wasm.wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___sys__JsNullable_wgpu_79b597b3111bcbe9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true__130(arg0, arg1, arg2);
3486
+ if (ret[1]) {
3487
+ throw takeFromExternrefTable0(ret[0]);
3488
+ }
3489
+ }
3490
+
3491
+ function wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___sys__JsNullable_wgpu_79b597b3111bcbe9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true__131(arg0, arg1, arg2) {
3492
+ const ret = wasm.wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___sys__JsNullable_wgpu_79b597b3111bcbe9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true__131(arg0, arg1, arg2);
3493
+ if (ret[1]) {
3494
+ throw takeFromExternrefTable0(ret[0]);
3495
+ }
3496
+ }
3497
+
3265
3498
  function wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___js_sys_b1e1c29ba6b0e6b3___Function_fn_wasm_bindgen_2e566c63402fe7fa___JsValue_____wasm_bindgen_2e566c63402fe7fa___sys__Undefined___js_sys_b1e1c29ba6b0e6b3___Function_fn_wasm_bindgen_2e566c63402fe7fa___JsValue_____wasm_bindgen_2e566c63402fe7fa___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
3266
3499
  wasm.wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___js_sys_b1e1c29ba6b0e6b3___Function_fn_wasm_bindgen_2e566c63402fe7fa___JsValue_____wasm_bindgen_2e566c63402fe7fa___sys__Undefined___js_sys_b1e1c29ba6b0e6b3___Function_fn_wasm_bindgen_2e566c63402fe7fa___JsValue_____wasm_bindgen_2e566c63402fe7fa___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
3267
3500
  }
@@ -3270,13 +3503,94 @@ function wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___js_sys_b
3270
3503
  const __wbindgen_enum_ColorSpaceConversion = ["none", "default"];
3271
3504
 
3272
3505
 
3273
- const __wbindgen_enum_PremultiplyAlpha = ["none", "premultiply", "default"];
3506
+ const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
3274
3507
 
3275
3508
 
3276
- const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
3509
+ const __wbindgen_enum_GpuAutoLayoutMode = ["auto"];
3510
+
3511
+
3512
+ const __wbindgen_enum_GpuBlendFactor = ["zero", "one", "src", "one-minus-src", "src-alpha", "one-minus-src-alpha", "dst", "one-minus-dst", "dst-alpha", "one-minus-dst-alpha", "src-alpha-saturated", "constant", "one-minus-constant", "src1", "one-minus-src1", "src1-alpha", "one-minus-src1-alpha"];
3513
+
3514
+
3515
+ const __wbindgen_enum_GpuBlendOperation = ["add", "subtract", "reverse-subtract", "min", "max"];
3516
+
3517
+
3518
+ const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
3519
+
3520
+
3521
+ const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
3522
+
3523
+
3524
+ const __wbindgen_enum_GpuCanvasToneMappingMode = ["standard", "extended"];
3525
+
3277
3526
 
3527
+ const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
3278
3528
 
3279
- const __wbindgen_enum_WebGlPowerPreference = ["default", "low-power", "high-performance"];
3529
+
3530
+ const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
3531
+
3532
+
3533
+ const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
3534
+
3535
+
3536
+ const __wbindgen_enum_GpuFilterMode = ["nearest", "linear"];
3537
+
3538
+
3539
+ const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
3540
+
3541
+
3542
+ const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
3543
+
3544
+
3545
+ const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
3546
+
3547
+
3548
+ const __wbindgen_enum_GpuMipmapFilterMode = ["nearest", "linear"];
3549
+
3550
+
3551
+ const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
3552
+
3553
+
3554
+ const __wbindgen_enum_GpuPrimitiveTopology = ["point-list", "line-list", "line-strip", "triangle-list", "triangle-strip"];
3555
+
3556
+
3557
+ const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
3558
+
3559
+
3560
+ const __wbindgen_enum_GpuStencilOperation = ["keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap"];
3561
+
3562
+
3563
+ const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
3564
+
3565
+
3566
+ const __wbindgen_enum_GpuStoreOp = ["store", "discard"];
3567
+
3568
+
3569
+ const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
3570
+
3571
+
3572
+ const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
3573
+
3574
+
3575
+ const __wbindgen_enum_GpuTextureFormat = ["r8unorm", "r8snorm", "r8uint", "r8sint", "r16unorm", "r16snorm", "r16uint", "r16sint", "r16float", "rg8unorm", "rg8snorm", "rg8uint", "rg8sint", "r32uint", "r32sint", "r32float", "rg16unorm", "rg16snorm", "rg16uint", "rg16sint", "rg16float", "rgba8unorm", "rgba8unorm-srgb", "rgba8snorm", "rgba8uint", "rgba8sint", "bgra8unorm", "bgra8unorm-srgb", "rgb9e5ufloat", "rgb10a2uint", "rgb10a2unorm", "rg11b10ufloat", "rg32uint", "rg32sint", "rg32float", "rgba16unorm", "rgba16snorm", "rgba16uint", "rgba16sint", "rgba16float", "rgba32uint", "rgba32sint", "rgba32float", "stencil8", "depth16unorm", "depth24plus", "depth24plus-stencil8", "depth32float", "depth32float-stencil8", "bc1-rgba-unorm", "bc1-rgba-unorm-srgb", "bc2-rgba-unorm", "bc2-rgba-unorm-srgb", "bc3-rgba-unorm", "bc3-rgba-unorm-srgb", "bc4-r-unorm", "bc4-r-snorm", "bc5-rg-unorm", "bc5-rg-snorm", "bc6h-rgb-ufloat", "bc6h-rgb-float", "bc7-rgba-unorm", "bc7-rgba-unorm-srgb", "etc2-rgb8unorm", "etc2-rgb8unorm-srgb", "etc2-rgb8a1unorm", "etc2-rgb8a1unorm-srgb", "etc2-rgba8unorm", "etc2-rgba8unorm-srgb", "eac-r11unorm", "eac-r11snorm", "eac-rg11unorm", "eac-rg11snorm", "astc-4x4-unorm", "astc-4x4-unorm-srgb", "astc-5x4-unorm", "astc-5x4-unorm-srgb", "astc-5x5-unorm", "astc-5x5-unorm-srgb", "astc-6x5-unorm", "astc-6x5-unorm-srgb", "astc-6x6-unorm", "astc-6x6-unorm-srgb", "astc-8x5-unorm", "astc-8x5-unorm-srgb", "astc-8x6-unorm", "astc-8x6-unorm-srgb", "astc-8x8-unorm", "astc-8x8-unorm-srgb", "astc-10x5-unorm", "astc-10x5-unorm-srgb", "astc-10x6-unorm", "astc-10x6-unorm-srgb", "astc-10x8-unorm", "astc-10x8-unorm-srgb", "astc-10x10-unorm", "astc-10x10-unorm-srgb", "astc-12x10-unorm", "astc-12x10-unorm-srgb", "astc-12x12-unorm", "astc-12x12-unorm-srgb"];
3576
+
3577
+
3578
+ const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
3579
+
3580
+
3581
+ const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
3582
+
3583
+
3584
+ const __wbindgen_enum_GpuVertexFormat = ["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"];
3585
+
3586
+
3587
+ const __wbindgen_enum_GpuVertexStepMode = ["vertex", "instance"];
3588
+
3589
+
3590
+ const __wbindgen_enum_PremultiplyAlpha = ["none", "premultiply", "default"];
3591
+
3592
+
3593
+ const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
3280
3594
  const EngineFinalization = (typeof FinalizationRegistry === 'undefined')
3281
3595
  ? { register: () => {}, unregister: () => {} }
3282
3596
  : new FinalizationRegistry(ptr => wasm.__wbg_engine_free(ptr, 1));
@@ -3366,24 +3680,14 @@ function getArrayF64FromWasm0(ptr, len) {
3366
3680
  return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
3367
3681
  }
3368
3682
 
3369
- function getArrayI16FromWasm0(ptr, len) {
3370
- ptr = ptr >>> 0;
3371
- return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
3372
- }
3373
-
3374
- function getArrayI32FromWasm0(ptr, len) {
3683
+ function getArrayJsValueViewFromWasm0(ptr, len) {
3375
3684
  ptr = ptr >>> 0;
3376
- return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
3377
- }
3378
-
3379
- function getArrayI8FromWasm0(ptr, len) {
3380
- ptr = ptr >>> 0;
3381
- return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
3382
- }
3383
-
3384
- function getArrayU16FromWasm0(ptr, len) {
3385
- ptr = ptr >>> 0;
3386
- return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
3685
+ const mem = getDataViewMemory0();
3686
+ const result = [];
3687
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
3688
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
3689
+ }
3690
+ return result;
3387
3691
  }
3388
3692
 
3389
3693
  function getArrayU32FromWasm0(ptr, len) {
@@ -3420,30 +3724,6 @@ function getFloat64ArrayMemory0() {
3420
3724
  return cachedFloat64ArrayMemory0;
3421
3725
  }
3422
3726
 
3423
- let cachedInt16ArrayMemory0 = null;
3424
- function getInt16ArrayMemory0() {
3425
- if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) {
3426
- cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer);
3427
- }
3428
- return cachedInt16ArrayMemory0;
3429
- }
3430
-
3431
- let cachedInt32ArrayMemory0 = null;
3432
- function getInt32ArrayMemory0() {
3433
- if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
3434
- cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
3435
- }
3436
- return cachedInt32ArrayMemory0;
3437
- }
3438
-
3439
- let cachedInt8ArrayMemory0 = null;
3440
- function getInt8ArrayMemory0() {
3441
- if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) {
3442
- cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer);
3443
- }
3444
- return cachedInt8ArrayMemory0;
3445
- }
3446
-
3447
3727
  function getStringFromWasm0(ptr, len) {
3448
3728
  return decodeText(ptr >>> 0, len);
3449
3729
  }
@@ -3638,9 +3918,6 @@ function __wbg_finalize_init(instance, module) {
3638
3918
  cachedDataViewMemory0 = null;
3639
3919
  cachedFloat32ArrayMemory0 = null;
3640
3920
  cachedFloat64ArrayMemory0 = null;
3641
- cachedInt16ArrayMemory0 = null;
3642
- cachedInt32ArrayMemory0 = null;
3643
- cachedInt8ArrayMemory0 = null;
3644
3921
  cachedUint16ArrayMemory0 = null;
3645
3922
  cachedUint32ArrayMemory0 = null;
3646
3923
  cachedUint8ArrayMemory0 = null;
@@ -3720,7 +3997,7 @@ async function __wbg_init(module_or_path) {
3720
3997
  }
3721
3998
 
3722
3999
  if (module_or_path === undefined) {
3723
- module_or_path = new URL('isard_bg.wasm', import.meta.url);
4000
+ module_or_path = new URL('isard_webgpu_bg.wasm', import.meta.url);
3724
4001
  }
3725
4002
  const imports = __wbg_get_imports();
3726
4003