isard 1.16.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 (103) hide show
  1. package/CHANGELOG.md +48 -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/decoder.worker.js +4 -5
  10. package/dist/decoder.worker.js.map +6 -6
  11. package/dist/decoding/decoders.d.ts +1 -1
  12. package/dist/decoding/decoders.js.map +1 -1
  13. package/dist/decoding/loader.d.ts +6 -3
  14. package/dist/decoding/loader.js +7 -5
  15. package/dist/decoding/loader.js.map +1 -1
  16. package/dist/decoding/protocol.d.ts +3 -2
  17. package/dist/decoding/protocol.js.map +1 -1
  18. package/dist/engine-loader.d.ts +20 -18
  19. package/dist/engine-loader.js +45 -42
  20. package/dist/engine-loader.js.map +1 -1
  21. package/dist/index.d.ts +3 -3
  22. package/dist/index.js.map +1 -1
  23. package/dist/isard_grid_bg.wasm +0 -0
  24. package/dist/isard_tess_bg.wasm +0 -0
  25. package/dist/isard_tiles3d_bg.wasm +0 -0
  26. package/dist/isard_webgl2_bg.wasm +0 -0
  27. package/dist/isard_webgpu_bg.wasm +0 -0
  28. package/dist/layers/custom.d.ts +35 -29
  29. package/dist/layers/custom.js +60 -46
  30. package/dist/layers/custom.js.map +1 -1
  31. package/dist/layers/extrusions.js.map +1 -1
  32. package/dist/layers/features.js.map +1 -1
  33. package/dist/layers/flow.js.map +1 -1
  34. package/dist/layers/glyphs.d.ts +1 -1
  35. package/dist/layers/glyphs.js.map +1 -1
  36. package/dist/layers/ground.d.ts +20 -13
  37. package/dist/layers/ground.js +29 -8
  38. package/dist/layers/ground.js.map +1 -1
  39. package/dist/layers/icons.d.ts +1 -1
  40. package/dist/layers/icons.js.map +1 -1
  41. package/dist/layers/layers.d.ts +1 -2
  42. package/dist/layers/layers.js +2 -11
  43. package/dist/layers/layers.js.map +1 -1
  44. package/dist/layers/models.js +0 -4
  45. package/dist/layers/models.js.map +1 -1
  46. package/dist/layers/network.d.ts +1 -1
  47. package/dist/layers/network.js.map +1 -1
  48. package/dist/layers/panoramas.d.ts +1 -0
  49. package/dist/layers/panoramas.js +3 -2
  50. package/dist/layers/panoramas.js.map +1 -1
  51. package/dist/layers/pointclouds.d.ts +1 -1
  52. package/dist/layers/pointclouds.js +0 -4
  53. package/dist/layers/pointclouds.js.map +1 -1
  54. package/dist/layers/raster.js.map +1 -1
  55. package/dist/layers/symbols.js.map +1 -1
  56. package/dist/layers/tiles3d.d.ts +1 -1
  57. package/dist/layers/tiles3d.js +0 -4
  58. package/dist/layers/tiles3d.js.map +1 -1
  59. package/dist/layers/vectors.d.ts +4 -5
  60. package/dist/layers/vectors.js +7 -15
  61. package/dist/layers/vectors.js.map +1 -1
  62. package/dist/map/engine-settings.d.ts +1 -1
  63. package/dist/map/engine-settings.js.map +1 -1
  64. package/dist/map/engines.d.ts +11 -26
  65. package/dist/map/engines.js +10 -48
  66. package/dist/map/engines.js.map +1 -1
  67. package/dist/map/frame-loop.d.ts +1 -3
  68. package/dist/map/frame-loop.js +3 -3
  69. package/dist/map/frame-loop.js.map +1 -1
  70. package/dist/map/hover-pick.d.ts +9 -3
  71. package/dist/map/hover-pick.js +29 -6
  72. package/dist/map/hover-pick.js.map +1 -1
  73. package/dist/map/layer-stack.d.ts +2 -2
  74. package/dist/map/layer-stack.js +1 -3
  75. package/dist/map/layer-stack.js.map +1 -1
  76. package/dist/map/symbol-atlases.d.ts +5 -4
  77. package/dist/map/symbol-atlases.js +8 -13
  78. package/dist/map/symbol-atlases.js.map +1 -1
  79. package/dist/map/viewshed.d.ts +1 -1
  80. package/dist/map/viewshed.js.map +1 -1
  81. package/dist/map.d.ts +26 -20
  82. package/dist/map.js +93 -78
  83. package/dist/map.js.map +1 -1
  84. package/dist/react/IsardMap.d.ts +1 -1
  85. package/dist/react/IsardMap.js.map +1 -1
  86. package/dist/react/index.d.ts +1 -1
  87. package/dist/react/index.js.map +1 -1
  88. package/dist/types.d.ts +29 -18
  89. package/dist/types.js.map +1 -1
  90. package/dist/ui/interaction.d.ts +1 -1
  91. package/dist/ui/interaction.js.map +1 -1
  92. package/dist/util/animation.d.ts +1 -1
  93. package/dist/util/animation.js.map +1 -1
  94. package/dist/wasm/isard_tiles3d.d.ts +181 -0
  95. package/dist/wasm/isard_tiles3d.js +387 -0
  96. package/dist/wasm/{isard_core.d.ts → isard_webgl2.d.ts} +373 -182
  97. package/dist/wasm/{isard_core.js → isard_webgl2.js} +2155 -413
  98. package/dist/wasm/{isard.d.ts → isard_webgpu.d.ts} +176 -353
  99. package/dist/wasm/{isard.js → isard_webgpu.js} +1361 -1104
  100. package/package.json +4 -3
  101. package/vite.js +5 -4
  102. package/dist/isard_bg.wasm +0 -0
  103. 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
259
  * null>`, an image of `size` × `size` (null: nothing there); `ground: false`: draped on 3D layers only
266
- *
267
- * # Errors
268
- *
269
- * Throws (to JavaScript) when the texture holding the layer's tiles cannot be created
270
260
  * @param {string} url
271
261
  * @param {number} min_z
272
262
  * @param {number} max_z
@@ -281,18 +271,14 @@ export class Engine {
281
271
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
282
272
  const len0 = WASM_VECTOR_LEN;
283
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);
284
- if (ret[2]) {
285
- throw takeFromExternrefTable0(ret[1]);
286
- }
287
- return ret[0] >>> 0;
274
+ return ret >>> 0;
288
275
  }
289
276
  /**
290
277
  * An empty symbol layer
291
278
  *
292
279
  * # Errors
293
280
  *
294
- * Throws (to JavaScript) when a WebGL object cannot be created or a shader fails to compile (the error carries its
295
- * info log)
281
+ * Never in practice: its tables start empty
296
282
  * @returns {number}
297
283
  */
298
284
  addSymbols() {
@@ -307,10 +293,7 @@ export class Engine {
307
293
  * screen-space error (CSS pixels) above which a tile is refined; 16 is the usual value, lower is finer.
308
294
  * `geoid`: its heights are altitudes (NGF-IGN69), each tile raised by the RAF20 geoid onto the relief.
309
295
  *
310
- * # Errors
311
- *
312
- * Throws (to JavaScript) when one of the layer's programs fails to compile or link (the error carries
313
- * 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
314
297
  * @param {string} url
315
298
  * @param {number} max_error
316
299
  * @param {boolean | null} [geoid]
@@ -320,18 +303,15 @@ export class Engine {
320
303
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
321
304
  const len0 = WASM_VECTOR_LEN;
322
305
  const ret = wasm.engine_addTiles3d(this.__wbg_ptr, ptr0, len0, max_error, isLikeNone(geoid) ? 0xFFFFFF : geoid ? 1 : 0);
323
- if (ret[2]) {
324
- throw takeFromExternrefTable0(ret[1]);
325
- }
326
- return ret[0] >>> 0;
306
+ return ret >>> 0;
327
307
  }
328
308
  /**
329
309
  * An empty layer of vector tiles drawn as geometry: its style layers come with `setVectorSublayers`, its tiles
330
- * with `setVectorTile`
310
+ * with `setVectorTile` or `setVectorTileMesh`
331
311
  *
332
312
  * # Errors
333
313
  *
334
- * Throws (to JavaScript) when a shader fails to compile (the error carries its info log)
314
+ * Never in practice: the layer starts empty
335
315
  * @returns {number}
336
316
  */
337
317
  addVectorTiles() {
@@ -341,6 +321,22 @@ export class Engine {
341
321
  }
342
322
  return ret[0] >>> 0;
343
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
+ }
344
340
  /**
345
341
  * Longitudes and latitudes the view covers on the ground, `[west, south, east, north]` (degrees): the screen's
346
342
  * border cast on the ground, or on the far plane where it passes the horizon
@@ -385,7 +381,23 @@ export class Engine {
385
381
  wasm.engine_clearViewshed(this.__wbg_ptr);
386
382
  }
387
383
  /**
388
- * 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
389
401
  * longitude, latitude (degrees) and altitude (metres): x east, y north, z up, in metres. Undefined outside the
390
402
  * callback of a custom layer. Static: the engine is borrowed while it draws
391
403
  * @param {number} lon
@@ -425,9 +437,15 @@ export class Engine {
425
437
  return ret;
426
438
  }
427
439
  /**
428
- * Position under a screen point (CSS pixels), undefined above the horizon; on the relief itself: from the copy of
429
- * its tiles kept on the CPU, the drawn ground read back from the GPU only where none is there (a read back waits
430
- * 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
431
449
  * @param {number} x
432
450
  * @param {number} y
433
451
  * @returns {[lon: number, lat: number] | undefined}
@@ -437,8 +455,8 @@ export class Engine {
437
455
  return ret;
438
456
  }
439
457
  /**
440
- * Colors an extrusion layer by the node values of network layer `network` (undefined: by its own values):
441
- * 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`),
442
460
  * through the layer's ramp, up to `max` (above: its own color)
443
461
  * @param {number} id
444
462
  * @param {number | null | undefined} network
@@ -448,9 +466,9 @@ export class Engine {
448
466
  wasm.engine_linkExtrusionNetwork(this.__wbg_ptr, id, isLikeNone(network) ? Number.MAX_SAFE_INTEGER : (network) >>> 0, max);
449
467
  }
450
468
  /**
451
- * Model-view-projection matrix (16 numbers, column-major) of the local frame at a longitude, latitude (degrees)
452
- * and altitude (metres), x east, y north, z up, in metres, for the last frame drawn (else the camera): the 3D
453
- * 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
454
472
  * @param {number} lon
455
473
  * @param {number} lat
456
474
  * @param {number} altitude
@@ -462,6 +480,14 @@ export class Engine {
462
480
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
463
481
  return v1;
464
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
+ }
465
491
  /**
466
492
  * Moves a layer to a drawing position (0 = bottom)
467
493
  * @param {number} id
@@ -479,26 +505,6 @@ export class Engine {
479
505
  const ret = wasm.engine_networkStats(this.__wbg_ptr, id);
480
506
  return ret;
481
507
  }
482
- /**
483
- * `redraw` is called when the engine needs a new frame (a tile arrived); `antialias`: multisampled (default true)
484
- *
485
- * # Errors
486
- *
487
- * Throws (to JavaScript) when the canvas gives no WebGL2 context ("WebGL2 is not available"), or when a WebGL
488
- * object of the globe, the sky or the raster pass cannot be created or one of their shaders fails to compile
489
- * @param {HTMLCanvasElement} canvas
490
- * @param {() => void} redraw
491
- * @param {boolean | null} [antialias]
492
- */
493
- constructor(canvas, redraw, antialias) {
494
- const ret = wasm.engine_new(canvas, redraw, isLikeNone(antialias) ? 0xFFFFFF : antialias ? 1 : 0);
495
- if (ret[2]) {
496
- throw takeFromExternrefTable0(ret[1]);
497
- }
498
- this.__wbg_ptr = ret[0];
499
- EngineFinalization.register(this, this.__wbg_ptr, this);
500
- return this;
501
- }
502
508
  /**
503
509
  * Drags the ground from one screen point to another (CSS pixels); in relief, the ground point grabbed stays
504
510
  * under the cursor
@@ -510,24 +516,6 @@ export class Engine {
510
516
  pan(x0, y0, x1, y1) {
511
517
  wasm.engine_pan(this.__wbg_ptr, x0, y0, x1, y1);
512
518
  }
513
- /**
514
- * Feature under a screen point (CSS pixels), or the nearest one within `radius` CSS pixels: its layer and its
515
- * index there (the edge of a network, the feature of a line, circle or fill layer), undefined if none. The
516
- * pickable layers are drawn with each feature colored by its number; then the fills are tested on the ground.
517
- * `only`: the ids of the layers to look in (all if undefined): the others are not drawn and hide nothing.
518
- * Reads the pixels back at once (the GPU finishes its work first): for clicks; `requestPick` for the hover
519
- * @param {number} x
520
- * @param {number} y
521
- * @param {number | null} [radius]
522
- * @param {Uint32Array | null} [only]
523
- * @returns {PickHit | undefined}
524
- */
525
- pick(x, y, radius, only) {
526
- var ptr0 = isLikeNone(only) ? 0 : passArray32ToWasm0(only, wasm.__wbindgen_malloc);
527
- var len0 = WASM_VECTOR_LEN;
528
- const ret = wasm.engine_pick(this.__wbg_ptr, x, y, !isLikeNone(radius), isLikeNone(radius) ? 0 : radius, ptr0, len0);
529
- return ret;
530
- }
531
519
  /**
532
520
  * What a point cloud says of itself, undefined before its head is read
533
521
  * @param {number} id
@@ -538,8 +526,8 @@ export class Engine {
538
526
  return ret;
539
527
  }
540
528
  /**
541
- * The point of a point cloud picked by `pick` or `pollPick` (its index there), read back from the GPU; undefined
542
- * 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
543
531
  * @param {number} id
544
532
  * @param {number} index
545
533
  * @returns {PointCloudPoint | undefined}
@@ -558,12 +546,13 @@ export class Engine {
558
546
  return ret;
559
547
  }
560
548
  /**
561
- * The answer to the last `requestPick` once the GPU has delivered it (then forgotten), undefined while it is not
562
- * 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
563
552
  * @returns {PickResult | undefined}
564
553
  */
565
- pollPick() {
566
- const ret = wasm.engine_pollPick(this.__wbg_ptr);
554
+ pollPick(id) {
555
+ const ret = wasm.engine_pollPick(this.__wbg_ptr, id);
567
556
  return ret;
568
557
  }
569
558
  /**
@@ -605,7 +594,7 @@ export class Engine {
605
594
  wasm.engine_removeExtrusionBatch(this.__wbg_ptr, id, key);
606
595
  }
607
596
  /**
608
- * 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)
609
598
  * @param {number} id
610
599
  */
611
600
  removeLayer(id) {
@@ -620,8 +609,8 @@ export class Engine {
620
609
  wasm.engine_removeVectorTile(this.__wbg_ptr, id, key);
621
610
  }
622
611
  /**
623
- * Draws a frame: the backdrop, the ground and the layers over it bottom to top, then the panorama and the
624
- * 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`)
625
614
  * @returns {boolean}
626
615
  */
627
616
  render() {
@@ -629,20 +618,21 @@ export class Engine {
629
618
  return ret !== 0;
630
619
  }
631
620
  /**
632
- * Asks what is under a screen point without waiting for the GPU (as `pick`, with the position there): the
633
- * picking pass is drawn now and read back into a buffer; `pollPick` gives the answer on a later frame. A new
634
- * 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
635
625
  * @param {number} x
636
626
  * @param {number} y
637
627
  * @param {number | null} [radius]
638
628
  * @param {Uint32Array | null} [only]
639
- * @returns {boolean}
629
+ * @returns {number}
640
630
  */
641
631
  requestPick(x, y, radius, only) {
642
632
  var ptr0 = isLikeNone(only) ? 0 : passArray32ToWasm0(only, wasm.__wbindgen_malloc);
643
633
  var len0 = WASM_VECTOR_LEN;
644
634
  const ret = wasm.engine_requestPick(this.__wbg_ptr, x, y, !isLikeNone(radius), isLikeNone(radius) ? 0 : radius, ptr0, len0);
645
- return ret !== 0;
635
+ return ret >>> 0;
646
636
  }
647
637
  /**
648
638
  * Viewport in CSS pixels and device pixel ratio
@@ -684,8 +674,7 @@ export class Engine {
684
674
  * The body the map is drawn on: its equatorial radius (metres) and flattening (0 for a sphere), the halo of its
685
675
  * atmosphere around the globe (RGB 0-1 and its strength, 4 numbers; `undefined` for an airless body), and the
686
676
  * lowest and highest altitudes of its ground (metres: what its relief may raise into view). WGS 84, the Earth's
687
- * blue halo and the range of its relief worldwide (-450 m to 8900 m) by default; set before the layers and the
688
- * 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
689
678
  * @param {number} radius
690
679
  * @param {number} flattening
691
680
  * @param {Float32Array | null | undefined} halo
@@ -735,8 +724,7 @@ export class Engine {
735
724
  *
736
725
  * # Errors
737
726
  *
738
- * Throws (to JavaScript) when the batch's features need an anchor texture past the GPU's
739
- * `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
740
728
  * @param {number} id
741
729
  * @param {number} key
742
730
  * @param {Float32Array} anchors
@@ -755,8 +743,7 @@ export class Engine {
755
743
  *
756
744
  * # Errors
757
745
  *
758
- * Throws (to JavaScript) when a WebGL buffer or vertex array of the batch cannot be created, or when
759
- * `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
760
747
  * @param {number} id
761
748
  * @param {number} key
762
749
  * @param {Float64Array} points
@@ -984,7 +971,7 @@ export class Engine {
984
971
  *
985
972
  * # Errors
986
973
  *
987
- * Throws (to JavaScript) as `setGlyphPages` does: a size that is not positive, or the texture not created
974
+ * Throws (to JavaScript) as `setGlyphPages` does
988
975
  * @param {number} width
989
976
  * @param {number} height
990
977
  * @param {Uint8Array | null} [data]
@@ -1004,8 +991,8 @@ export class Engine {
1004
991
  *
1005
992
  * # Errors
1006
993
  *
1007
- * Throws (to JavaScript) when `width` or `height` is not positive (or their product overflows), `pages`
1008
- * 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
1009
996
  * @param {number} width
1010
997
  * @param {number} height
1011
998
  * @param {number} pages
@@ -1028,42 +1015,40 @@ export class Engine {
1028
1015
  wasm.engine_setGroundBounds(this.__wbg_ptr, id, min_x, min_y, max_x, max_y);
1029
1016
  }
1030
1017
  /**
1031
- * Creates the texture of sampler `name` (`format`: r8, r8ui, r16ui, r16i, r32ui, r32f, rg16ui, rg32f, rgba8,
1032
- * rgba8ui, rgba16ui, rgba32f; `depth` 0 for 2D, else a 2D array of that many layers; `linear` filtering for the
1033
- * 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
1034
1021
  *
1035
1022
  * # Errors
1036
1023
  *
1037
- * Throws (to JavaScript) on an unknown `format`, a size not positive (or overflowing), `data` shorter
1038
- * 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
1039
1026
  * @param {number} id
1040
1027
  * @param {string} name
1041
1028
  * @param {string} format
1042
1029
  * @param {number} width
1043
1030
  * @param {number} height
1044
1031
  * @param {number} depth
1045
- * @param {boolean} linear
1046
1032
  * @param {Uint8Array | null} [data]
1047
1033
  */
1048
- setGroundTexture(id, name, format, width, height, depth, linear, data) {
1034
+ setGroundTexture(id, name, format, width, height, depth, data) {
1049
1035
  const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1050
1036
  const len0 = WASM_VECTOR_LEN;
1051
1037
  const ptr1 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1052
1038
  const len1 = WASM_VECTOR_LEN;
1053
1039
  var ptr2 = isLikeNone(data) ? 0 : passArray8ToWasm0(data, wasm.__wbindgen_malloc);
1054
1040
  var len2 = WASM_VECTOR_LEN;
1055
- 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);
1056
1042
  if (ret[1]) {
1057
1043
  throw takeFromExternrefTable0(ret[0]);
1058
1044
  }
1059
1045
  }
1060
1046
  /**
1061
- * 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)
1062
1048
  *
1063
1049
  * # Errors
1064
1050
  *
1065
- * Throws (to JavaScript) when the shader has no uniform `name` (one its code does not use is removed
1066
- * by the compiler)
1051
+ * Throws (to JavaScript) when no uniform `name` was declared, or for a count of numbers not its type's
1067
1052
  * @param {number} id
1068
1053
  * @param {string} name
1069
1054
  * @param {Float64Array} values
@@ -1092,8 +1077,7 @@ export class Engine {
1092
1077
  *
1093
1078
  * # Errors
1094
1079
  *
1095
- * Throws (to JavaScript) when `width` or `height` is not positive (or their product overflows), or the
1096
- * atlas texture cannot be created
1080
+ * Throws (to JavaScript) when `width` or `height` is not positive or past the GPU's largest texture
1097
1081
  * @param {number} width
1098
1082
  * @param {number} height
1099
1083
  */
@@ -1125,8 +1109,8 @@ export class Engine {
1125
1109
  *
1126
1110
  * # Errors
1127
1111
  *
1128
- * Throws (to JavaScript) when the lines need a table texture past the GPU's `MAX_TEXTURE_SIZE`, or
1129
- * 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
1130
1114
  * @param {number} id
1131
1115
  * @param {Float64Array} points
1132
1116
  * @param {Uint32Array} start
@@ -1243,19 +1227,13 @@ export class Engine {
1243
1227
  wasm.engine_setNetworkValues(this.__wbg_ptr, id, ptr0, len0);
1244
1228
  }
1245
1229
  /**
1246
- * The image of camera `index` of the panorama (the images sharing the size of the first)
1247
- *
1248
- * # Errors
1249
- *
1250
- * 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)
1251
1232
  * @param {number} index
1252
1233
  * @param {ImageBitmap} image
1253
1234
  */
1254
1235
  setPanoramaImage(index, image) {
1255
- const ret = wasm.engine_setPanoramaImage(this.__wbg_ptr, index, image);
1256
- if (ret[1]) {
1257
- throw takeFromExternrefTable0(ret[0]);
1258
- }
1236
+ wasm.engine_setPanoramaImage(this.__wbg_ptr, index, image);
1259
1237
  }
1260
1238
  /**
1261
1239
  * Shows a panorama: at `lon`, `lat` (degrees) and `height` (metres above the ellipsoid), turned by `rotation`
@@ -1266,8 +1244,7 @@ export class Engine {
1266
1244
  *
1267
1245
  * # Errors
1268
1246
  *
1269
- * Throws (to JavaScript) when `rotation` holds fewer than 9 numbers, or when a WebGL object cannot be created or a
1270
- * shader fails to compile (the error carries its info log)
1247
+ * Throws (to JavaScript) when `rotation` holds fewer than 9 numbers
1271
1248
  * @param {number} lon
1272
1249
  * @param {number} lat
1273
1250
  * @param {number} height
@@ -1288,8 +1265,7 @@ export class Engine {
1288
1265
  }
1289
1266
  /**
1290
1267
  * Sets the point the next turns and tilts go around (`rotate`): what is drawn under a screen point (CSS
1291
- * pixels), a roof or a mesh as the relief. Read back from the last frame (a stall): once, where a drag starts.
1292
- * 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
1293
1269
  * @param {number} x
1294
1270
  * @param {number} y
1295
1271
  * @returns {boolean}
@@ -1351,25 +1327,17 @@ export class Engine {
1351
1327
  * The sun casting shadows and the night: its azimuth (degrees clockwise from north) and altitude (degrees above
1352
1328
  * the horizon), the shadows' opacity (0 to 1; none under the horizon or not a number), how dark the night is (0 to
1353
1329
  * 1: the frame tinted, the lights of the layers on). Neither shadows nor night: nothing drawn
1354
- *
1355
- * # Errors
1356
- *
1357
- * Throws (to JavaScript) when a WebGL object cannot be created or the pass fails to compile
1358
1330
  * @param {number} azimuth
1359
1331
  * @param {number} altitude
1360
1332
  * @param {number} opacity
1361
1333
  * @param {number} night
1362
1334
  */
1363
1335
  setSun(azimuth, altitude, opacity, night) {
1364
- const ret = wasm.engine_setSun(this.__wbg_ptr, azimuth, altitude, opacity, night);
1365
- if (ret[1]) {
1366
- throw takeFromExternrefTable0(ret[0]);
1367
- }
1336
+ wasm.engine_setSun(this.__wbg_ptr, azimuth, altitude, opacity, night);
1368
1337
  }
1369
1338
  /**
1370
- * Shows `layers` on one side of a vertical line only, the others beneath on the other side (comparing two states
1371
- * of a place): left of `x` (CSS pixels from the left of the canvas), or right of it; `others` on the other side
1372
- * 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
1373
1341
  * @param {number} x
1374
1342
  * @param {boolean} right
1375
1343
  * @param {Uint32Array} layers
@@ -1408,8 +1376,8 @@ export class Engine {
1408
1376
  *
1409
1377
  * # Errors
1410
1378
  *
1411
- * Throws (to JavaScript) when the labels need a table texture past the GPU's `MAX_TEXTURE_SIZE`, or
1412
- * 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
1413
1381
  * @param {number} id
1414
1382
  * @param {Float64Array} anchors
1415
1383
  * @param {Float32Array} boxes
@@ -1437,15 +1405,10 @@ export class Engine {
1437
1405
  * Relief under the raster layers, from raw altitudes (`image/x-bil;bits=32`, 256 × 256, or the same followed by
1438
1406
  * the validity mask of an `ArcGIS` raw grid): `url` is a template with `{bbox}` (WMS `GetMap` in EPSG:3857, or in
1439
1407
  * the Mercator metres of another body) or `{z}/{x}/{y}`; `undefined` turns it off. `exaggeration` scales the
1440
- * heights (1: true relief); `max_z`: finest level loaded (up to 15, from 6 on the Earth, coarser on bodies of a
1441
- * larger relief for their size: `terrain_levels`); `geoid`: altitudes raised by the RAF20 geoid height (heights
1442
- * above the ellipsoid, those of 3D Tiles; over France, on the Earth only), else left as served (the default);
1443
- * `loader`: gives the
1444
- * altitudes of each tile instead of fetching `url` (an encoding decoded by the page: Terrarium, Terrain-RGB)
1445
- *
1446
- * # Errors
1447
- *
1448
- * 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)
1449
1412
  * @param {string | null | undefined} url
1450
1413
  * @param {number} exaggeration
1451
1414
  * @param {number | null | undefined} max_z
@@ -1455,16 +1418,13 @@ export class Engine {
1455
1418
  setTerrain(url, exaggeration, max_z, geoid, loader) {
1456
1419
  var ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1457
1420
  var len0 = WASM_VECTOR_LEN;
1458
- 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));
1459
- if (ret[1]) {
1460
- throw takeFromExternrefTable0(ret[0]);
1461
- }
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));
1462
1422
  }
1463
1423
  /**
1464
1424
  * Pool of workers that fetch and decode 3D Tiles content off the main thread: an object with
1465
1425
  * `load(id, url, transform, yUp, reload, priority) → Promise<{ anchor, primitives }>` and `abort(id)`. Without
1466
1426
  * it, tiles are decoded on the main thread. Set it before adding 3D Tiles layers.
1467
- * @param {TileLoaderLike | null} loader
1427
+ * @param {import('./isard_tiles3d.js').TileLoaderLike | null} loader
1468
1428
  */
1469
1429
  setTileLoader(loader) {
1470
1430
  wasm.engine_setTileLoader(this.__wbg_ptr, loader);
@@ -1511,14 +1471,13 @@ export class Engine {
1511
1471
  }
1512
1472
  /**
1513
1473
  * The style layers of a vector tile layer, in drawing order: per layer, its kind (0 fill, 1 line, 2 extrusion, 3
1514
- * circle), its zoom range
1515
- * (two numbers: shown from the first, included, to the second, excluded), whether it shows (0 or 1), its dashes
1516
- * (four numbers: dash, gap, dash, gap, in line widths; 0: solid), its opacity as zoom stops (four zooms then four
1517
- * values; missing: opaque), the caps of its lines' ends (0 butt, 1 round, 2 square; missing: round), whether its
1518
- * lines glow at night (streets; 0 or 1), the joins of its lines (two numbers: 0 round, 1 miter, 2 bevel, then the
1519
- * miter limit in line widths; missing: round), the translation of its fills or lines (three numbers: x and y in CSS
1520
- * 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
1521
- * 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)
1522
1481
  * @param {number} id
1523
1482
  * @param {Uint8Array} kinds
1524
1483
  * @param {Float64Array} zooms
@@ -1556,18 +1515,18 @@ export class Engine {
1556
1515
  }
1557
1516
  /**
1558
1517
  * Adds or replaces tile `key` of a vector tile layer ready for the GPU, as the basemap workers make it (the
1559
- * tessellation module): its polygons as for `setVectorTile` (picked here; their prisms built here if drawn in
1560
- * relief while `prism` is false), the vertices of its fills (`shapes::Vertex` as bytes, each with its feature),
1561
- * their triangles, per sublayer its top cap and the rest of its prism (`fill_ranges`: four numbers, first and
1562
- * 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),
1563
1522
  * per sublayer its pieces (`line_ranges`: first, end), the blocks of its extrusion sublayers (`shapes::Block` as
1564
1523
  * bytes), their triangles, per sublayer its blocks' triangles (`block_ranges`: first, end), the extent of its
1565
1524
  * points (`bounds`: min x, min y, max x, max y), its features' sublayers (one each, as for `setVectorTile`)
1566
1525
  *
1567
1526
  * # Errors
1568
1527
  *
1569
- * Throws (to JavaScript) when the vertices, pieces or blocks are cut short, when a WebGL object of the tile cannot be
1570
- * 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
1571
1530
  * @param {number} id
1572
1531
  * @param {number} key
1573
1532
  * @param {Float64Array} points
@@ -1649,19 +1608,16 @@ export class Engine {
1649
1608
  * Adds or replaces tile `key` of a vector tile layer: its polygons as for `addFills` (`fill_start`: the first
1650
1609
  * polygon of each sublayer, and the end; those of an extrusion sublayer raised into blocks), its lines as for
1651
1610
  * `addLines` (`line_start`: the first line of each sublayer, and the end), its features' sublayers (one each, the
1652
- * features of a sublayer after those of the one before), styled as an
1653
- * extrusion layer's (`setFeatureStyle` with the key: a color, then a line's width or a block's height and base);
1654
- * `tile`: the corners of the tile they are cut to (west, north, east, south; empty: none), along whose edges no
1655
- * wall of a block rises; `roofs` and `roof_heights`: per polygon, the shape and height of its block's roof
1656
- * (`shapes::Roofs`: 0 flat, 1 to 5 `RoofShape::number`, 255 generated from its outline; metres, not a number: as
1657
- * its slopes make it; empty: flat), the whole outlines of the buildings the tile cuts (`roof_outlines`, interleaved
1658
- * Mercator points, `roof_outline_start`: where each polygon's starts, and the end), `roof_metres` the metres per
1659
- * 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
1660
1617
  *
1661
1618
  * # Errors
1662
1619
  *
1663
- * Throws (to JavaScript) when a WebGL object of the tile cannot be created, or when its features or lines need a
1664
- * 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
1665
1621
  * @param {number} id
1666
1622
  * @param {number} key
1667
1623
  * @param {Float64Array} points
@@ -1723,11 +1679,6 @@ export class Engine {
1723
1679
  * only heading, tilt, angles of view across and up (degrees), the heading NaN to look all around. What some
1724
1680
  * observer sees is tinted with `visible`, what is hidden from all those that reach it with `hidden` (RGB 0-1),
1725
1681
  * at `opacity`; `outline` (RGB 0-1, or empty) the color of the cones' edges drawn in 3D
1726
- *
1727
- * # Errors
1728
- *
1729
- * Throws (to JavaScript) when, on the first call, a WebGL object cannot be created or a shader fails to compile
1730
- * (the error carries its info log)
1731
1682
  * @param {Float64Array} observers
1732
1683
  * @param {Float32Array} visible
1733
1684
  * @param {Float32Array} hidden
@@ -1743,10 +1694,7 @@ export class Engine {
1743
1694
  const len2 = WASM_VECTOR_LEN;
1744
1695
  const ptr3 = passArrayF32ToWasm0(outline, wasm.__wbindgen_malloc);
1745
1696
  const len3 = WASM_VECTOR_LEN;
1746
- const ret = wasm.engine_setViewshed(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, opacity, ptr3, len3);
1747
- if (ret[1]) {
1748
- throw takeFromExternrefTable0(ret[0]);
1749
- }
1697
+ wasm.engine_setViewshed(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, opacity, ptr3, len3);
1750
1698
  }
1751
1699
  /**
1752
1700
  * Lowest and highest zoom levels the camera accepts
@@ -1777,8 +1725,9 @@ export class Engine {
1777
1725
  }
1778
1726
  /**
1779
1727
  * The height above the relief (metres) of the top of what stands at a position (degrees): a roof, a mesh, 0 on
1780
- * the bare ground; undefined where nothing of the last frame is there. The scene is drawn from above into a single
1781
- * 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
1782
1731
  * @param {number} lon
1783
1732
  * @param {number} lat
1784
1733
  * @returns {any}
@@ -1789,8 +1738,8 @@ export class Engine {
1789
1738
  }
1790
1739
  /**
1791
1740
  * What is drawn under a screen point (CSS pixels): longitude, latitude and its height above the relief (metres),
1792
- * on a roof, a wall or a mesh as on the ground; undefined where nothing was drawn. The scene is drawn again and
1793
- * 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
1794
1743
  * @param {number} x
1795
1744
  * @param {number} y
1796
1745
  * @returns {[lon: number, lat: number, height: number] | undefined}
@@ -1800,8 +1749,8 @@ export class Engine {
1800
1749
  return ret;
1801
1750
  }
1802
1751
  /**
1803
- * Compressed texture formats of the GPU (their WebGL extensions get enabled), for the KTX2 transcoding
1804
- * @returns {TextureFormats}
1752
+ * Compressed texture formats of the GPU, for the KTX2 transcoding
1753
+ * @returns {import('./isard_tiles3d.js').TextureFormats}
1805
1754
  */
1806
1755
  textureFormats() {
1807
1756
  const ret = wasm.engine_textureFormats(this.__wbg_ptr);
@@ -1860,8 +1809,8 @@ export class Engine {
1860
1809
  *
1861
1810
  * # Errors
1862
1811
  *
1863
- * Throws (to JavaScript) when there is no texture `name`, or when the region is out of its bounds or
1864
- * `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
1865
1814
  * @param {number} id
1866
1815
  * @param {string} name
1867
1816
  * @param {number} x
@@ -1894,22 +1843,11 @@ export class Engine {
1894
1843
  const len0 = WASM_VECTOR_LEN;
1895
1844
  wasm.engine_updateIconAtlas(this.__wbg_ptr, x, y, width, height, ptr0, len0);
1896
1845
  }
1897
- /**
1898
- * 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
1899
- * several frames); whether some are left. Its blocks are drawn once they are all there
1900
- * @param {number} id
1901
- * @param {number} key
1902
- * @returns {boolean}
1903
- */
1904
- uploadVectorTile(id, key) {
1905
- const ret = wasm.engine_uploadVectorTile(this.__wbg_ptr, id, key);
1906
- return ret !== 0;
1907
- }
1908
1846
  /**
1909
1847
  * Vector tiles (512 CSS pixels across at their level, as `MapLibre`'s) for the view of the last frame (else the
1910
1848
  * camera's), levels `min_z` to `max_z`, three numbers per tile (z, x, y), the nearest to the eye first: what a
1911
- * vector tile layer draws (`addVectorTiles`), coarser far away in a tilted view as the raster layers, and no
1912
- * 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)
1913
1851
  * @param {number} min_z
1914
1852
  * @param {number} max_z
1915
1853
  * @param {number} reach
@@ -1944,52 +1882,16 @@ export class Engine {
1944
1882
  }
1945
1883
  }
1946
1884
  if (Symbol.dispose) Engine.prototype[Symbol.dispose] = Engine.prototype.free;
1947
-
1948
- /**
1949
- * Decodes a `.b3dm` / `.pnts` / `.glb` tile: `{ anchor: Float64Array(3), primitives: [{ vertices: Float32Array (x,
1950
- * y, z, u, v per vertex, relative to the anchor), indices: Uint32Array, image?: Uint8Array, mime?: string, color?:
1951
- * Float32Array (the material's base color, when not white) }], points: [Uint8Array] (the points' vertices) }`.
1952
- * `transform`: the tile's world transform (16 numbers, column-major).
1953
- * `draco`: the decoded geometries of its Draco primitives (`dracoRequests`), if any.
1954
- * @param {Uint8Array} bytes
1955
- * @param {Float64Array} transform
1956
- * @param {boolean} y_up
1957
- * @param {DracoGeometry[] | undefined} draco
1958
- * @returns {EncodedTile}
1959
- */
1960
- export function decodeTile(bytes, transform, y_up, draco) {
1961
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
1962
- const len0 = WASM_VECTOR_LEN;
1963
- const ptr1 = passArrayF64ToWasm0(transform, wasm.__wbindgen_malloc);
1964
- const len1 = WASM_VECTOR_LEN;
1965
- const ret = wasm.decodeTile(ptr0, len0, ptr1, len1, y_up, draco);
1966
- if (ret[2]) {
1967
- throw takeFromExternrefTable0(ret[1]);
1968
- }
1969
- return takeFromExternrefTable0(ret[0]);
1970
- }
1971
-
1972
- /**
1973
- * The Draco-compressed primitives of a tile, to decode before `decodeTile`
1974
- * @param {Uint8Array} bytes
1975
- * @returns {DracoRequest[]}
1976
- */
1977
- export function dracoRequests(bytes) {
1978
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
1979
- const len0 = WASM_VECTOR_LEN;
1980
- const ret = wasm.dracoRequests(ptr0, len0);
1981
- if (ret[2]) {
1982
- throw takeFromExternrefTable0(ret[1]);
1983
- }
1984
- return takeFromExternrefTable0(ret[0]);
1985
- }
1986
1885
  function __wbg_get_imports() {
1987
1886
  const import0 = {
1988
1887
  __proto__: null,
1989
- __wbg___wbindgen_boolean_get_5b446f51afd21013: function(arg0) {
1990
- const v = arg0;
1991
- const ret = typeof(v) === 'boolean' ? v : undefined;
1992
- 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;
1993
1895
  },
1994
1896
  __wbg___wbindgen_debug_string_4687d8d8c2017d52: function(arg0, arg1) {
1995
1897
  const ret = debugString(arg1);
@@ -2015,6 +1917,10 @@ function __wbg_get_imports() {
2015
1917
  const ret = typeof(val) === 'object' && val !== null;
2016
1918
  return ret;
2017
1919
  },
1920
+ __wbg___wbindgen_is_string_90b56bc79aad6f6c: function(arg0) {
1921
+ const ret = typeof(arg0) === 'string';
1922
+ return ret;
1923
+ },
2018
1924
  __wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(arg0) {
2019
1925
  const ret = arg0 === undefined;
2020
1926
  return ret;
@@ -2046,12 +1952,6 @@ function __wbg_get_imports() {
2046
1952
  const ret = arg0.aborted;
2047
1953
  return ret;
2048
1954
  },
2049
- __wbg_activeTexture_11079673eac5c921: function(arg0, arg1) {
2050
- arg0.activeTexture(arg1 >>> 0);
2051
- },
2052
- __wbg_activeTexture_2fad46c01cafe6b1: function(arg0, arg1) {
2053
- arg0.activeTexture(arg1 >>> 0);
2054
- },
2055
1955
  __wbg_apply_a910804df6e1e433: function() { return handleError(function (arg0, arg1, arg2) {
2056
1956
  const ret = arg0.apply(arg1, arg2);
2057
1957
  return ret;
@@ -2060,81 +1960,21 @@ function __wbg_get_imports() {
2060
1960
  const ret = arg0.arrayBuffer();
2061
1961
  return ret;
2062
1962
  }, arguments); },
2063
- __wbg_attachShader_8920a5beea54aba7: function(arg0, arg1, arg2) {
2064
- arg0.attachShader(arg1, arg2);
2065
- },
2066
- __wbg_attachShader_9567ae57af6746d5: function(arg0, arg1, arg2) {
2067
- arg0.attachShader(arg1, arg2);
2068
- },
2069
- __wbg_bindBuffer_0324f62b876c4403: function(arg0, arg1, arg2) {
2070
- arg0.bindBuffer(arg1 >>> 0, arg2);
2071
- },
2072
- __wbg_bindBuffer_2195e89b585ce0c3: function(arg0, arg1, arg2) {
2073
- arg0.bindBuffer(arg1 >>> 0, arg2);
2074
- },
2075
- __wbg_bindFramebuffer_22e4b8e6e6d8d0e8: function(arg0, arg1, arg2) {
2076
- arg0.bindFramebuffer(arg1 >>> 0, arg2);
2077
- },
2078
- __wbg_bindFramebuffer_378eb18ef219d37a: function(arg0, arg1, arg2) {
2079
- arg0.bindFramebuffer(arg1 >>> 0, arg2);
2080
- },
2081
- __wbg_bindRenderbuffer_db090531fb28de34: function(arg0, arg1, arg2) {
2082
- arg0.bindRenderbuffer(arg1 >>> 0, arg2);
2083
- },
2084
- __wbg_bindRenderbuffer_e0c5aeef245a913a: function(arg0, arg1, arg2) {
2085
- arg0.bindRenderbuffer(arg1 >>> 0, arg2);
2086
- },
2087
- __wbg_bindTexture_3cf008f256f3ed99: function(arg0, arg1, arg2) {
2088
- arg0.bindTexture(arg1 >>> 0, arg2);
2089
- },
2090
- __wbg_bindTexture_613a47b8917a0ccd: function(arg0, arg1, arg2) {
2091
- arg0.bindTexture(arg1 >>> 0, arg2);
2092
- },
2093
- __wbg_bindVertexArrayOES_3141815cb8234a6e: function(arg0, arg1) {
2094
- arg0.bindVertexArrayOES(arg1);
2095
- },
2096
- __wbg_bindVertexArray_f58af0a346185ec5: function(arg0, arg1) {
2097
- arg0.bindVertexArray(arg1);
2098
- },
2099
- __wbg_blendEquation_5fb8aee6a55cf900: function(arg0, arg1) {
2100
- arg0.blendEquation(arg1 >>> 0);
2101
- },
2102
- __wbg_blendEquation_d21914e937b14896: function(arg0, arg1) {
2103
- arg0.blendEquation(arg1 >>> 0);
2104
- },
2105
- __wbg_blendFuncSeparate_28abe082febb1a26: function(arg0, arg1, arg2, arg3, arg4) {
2106
- arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
2107
- },
2108
- __wbg_blendFuncSeparate_2af9d47f7efc0452: function(arg0, arg1, arg2, arg3, arg4) {
2109
- arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
2110
- },
2111
- __wbg_blendFunc_491ee1105079ce76: function(arg0, arg1, arg2) {
2112
- arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
2113
- },
2114
- __wbg_blendFunc_589e4252bb396484: function(arg0, arg1, arg2) {
2115
- arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
2116
- },
1963
+ __wbg_beginRenderPass_3c53642423af50dc: function() { return handleError(function (arg0, arg1) {
1964
+ const ret = arg0.beginRenderPass(arg1);
1965
+ return ret;
1966
+ }, arguments); },
2117
1967
  __wbg_blob_232135c7e297b861: function() { return handleError(function (arg0) {
2118
1968
  const ret = arg0.blob();
2119
1969
  return ret;
2120
1970
  }, arguments); },
2121
- __wbg_bufferData_50f5eb06469330e4: function(arg0, arg1, arg2, arg3) {
2122
- arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
2123
- },
2124
- __wbg_bufferData_53e0f7a06b58fe81: function(arg0, arg1, arg2, arg3) {
2125
- arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
2126
- },
2127
- __wbg_bufferData_5fa44d94fe7a3878: function(arg0, arg1, arg2, arg3) {
2128
- arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
2129
- },
2130
- __wbg_bufferData_bad7ce562b6a9eac: function(arg0, arg1, arg2, arg3) {
2131
- arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
2132
- },
2133
- __wbg_bufferSubData_22c4c420e0f67cda: function(arg0, arg1, arg2, arg3) {
2134
- arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
1971
+ __wbg_buffer_6aace268d05b9dbe: function(arg0) {
1972
+ const ret = arg0.buffer;
1973
+ return ret;
2135
1974
  },
2136
- __wbg_bufferSubData_8609cd8a2c013181: function(arg0, arg1, arg2, arg3) {
2137
- arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
1975
+ __wbg_buffer_9cb148c510fd44ba: function(arg0) {
1976
+ const ret = arg0.buffer;
1977
+ return ret;
2138
1978
  },
2139
1979
  __wbg_byteLength_141bda7c7c28aa72: function(arg0) {
2140
1980
  const ret = arg0.byteLength;
@@ -2152,6 +1992,14 @@ function __wbg_get_imports() {
2152
1992
  const ret = arg0.byteLength;
2153
1993
  return ret;
2154
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
+ },
2155
2003
  __wbg_call_01721c8c75200a10: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2156
2004
  const ret = arg0.call(arg1, arg2, arg3, arg4, arg5);
2157
2005
  return ret;
@@ -2168,63 +2016,39 @@ function __wbg_get_imports() {
2168
2016
  const ret = arg0.call(arg1);
2169
2017
  return ret;
2170
2018
  }, arguments); },
2171
- __wbg_clearColor_3f6aa096dc12e8b7: function(arg0, arg1, arg2, arg3, arg4) {
2172
- arg0.clearColor(arg1, arg2, arg3, arg4);
2173
- },
2174
- __wbg_clearColor_796427e8ac60fe14: function(arg0, arg1, arg2, arg3, arg4) {
2175
- arg0.clearColor(arg1, arg2, arg3, arg4);
2176
- },
2177
- __wbg_clearDepth_4840a5497ae51286: function(arg0, arg1) {
2178
- arg0.clearDepth(arg1);
2179
- },
2180
- __wbg_clearDepth_5a119c24c5d193bc: function(arg0, arg1) {
2181
- arg0.clearDepth(arg1);
2182
- },
2183
- __wbg_clearStencil_1b8b8c727f598eec: function(arg0, arg1) {
2184
- arg0.clearStencil(arg1);
2185
- },
2186
- __wbg_clearStencil_e4383e4a543e7997: function(arg0, arg1) {
2187
- arg0.clearStencil(arg1);
2188
- },
2189
- __wbg_clear_175cf3cb6d98d72b: function(arg0, arg1) {
2190
- arg0.clear(arg1 >>> 0);
2191
- },
2192
- __wbg_clear_cb96796cc568b7c8: function(arg0, arg1) {
2193
- arg0.clear(arg1 >>> 0);
2194
- },
2195
2019
  __wbg_close_355afba6ea5ad1ae: function(arg0) {
2196
2020
  arg0.close();
2197
2021
  },
2198
- __wbg_colorMask_4d6afbbbc3022fbe: function(arg0, arg1, arg2, arg3, arg4) {
2199
- arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
2200
- },
2201
- __wbg_colorMask_8c903995f6f873be: function(arg0, arg1, arg2, arg3, arg4) {
2202
- arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
2203
- },
2204
- __wbg_compileShader_073a75409aaf96d2: function(arg0, arg1) {
2205
- arg0.compileShader(arg1);
2206
- },
2207
- __wbg_compileShader_c2b53ff3a8851f60: function(arg0, arg1) {
2208
- arg0.compileShader(arg1);
2209
- },
2210
- __wbg_compressedTexImage2D_93d2b30687f2cfad: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2211
- arg0.compressedTexImage2D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6, arg7);
2212
- },
2213
- __wbg_createBuffer_d1dd23bf8704564c: function(arg0) {
2214
- const ret = arg0.createBuffer();
2215
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2216
- },
2217
- __wbg_createBuffer_ffe613371d42cfd3: function(arg0) {
2218
- const ret = arg0.createBuffer();
2219
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2220
- },
2221
- __wbg_createFramebuffer_2c6b5b0f49c88e5d: function(arg0) {
2222
- const ret = arg0.createFramebuffer();
2223
- 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;
2224
2044
  },
2225
- __wbg_createFramebuffer_d0969af4e9886297: function(arg0) {
2226
- const ret = arg0.createFramebuffer();
2227
- 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;
2228
2052
  },
2229
2053
  __wbg_createImageBitmap_1b985e01e4c81baa: function() { return handleError(function (arg0, arg1, arg2) {
2230
2054
  const ret = arg0.createImageBitmap(arg1, arg2);
@@ -2234,322 +2058,134 @@ function __wbg_get_imports() {
2234
2058
  const ret = arg0.createImageBitmap(arg1, arg2);
2235
2059
  return ret;
2236
2060
  }, arguments); },
2237
- __wbg_createProgram_cbf448e6f18a9402: function(arg0) {
2238
- const ret = arg0.createProgram();
2239
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2061
+ __wbg_createPipelineLayout_6eab52c327118937: function(arg0, arg1) {
2062
+ const ret = arg0.createPipelineLayout(arg1);
2063
+ return ret;
2240
2064
  },
2241
- __wbg_createProgram_e0c81b0d2b8d0fd0: function(arg0) {
2242
- const ret = arg0.createProgram();
2243
- 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;
2244
2072
  },
2245
- __wbg_createRenderbuffer_2b17e9fe2e6fb4be: function(arg0) {
2246
- const ret = arg0.createRenderbuffer();
2247
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2073
+ __wbg_createShaderModule_cefa51336cb288ae: function(arg0, arg1) {
2074
+ const ret = arg0.createShaderModule(arg1);
2075
+ return ret;
2248
2076
  },
2249
- __wbg_createRenderbuffer_c864095d6ebd60d0: function(arg0) {
2250
- const ret = arg0.createRenderbuffer();
2251
- 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);
2252
2091
  },
2253
- __wbg_createShader_6c1a2295587878a5: function(arg0, arg1) {
2254
- const ret = arg0.createShader(arg1 >>> 0);
2092
+ __wbg_document_9854e03c05fc8834: function(arg0) {
2093
+ const ret = arg0.document;
2255
2094
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2256
2095
  },
2257
- __wbg_createShader_7c9d99a21ecb08c0: function(arg0, arg1) {
2258
- const ret = arg0.createShader(arg1 >>> 0);
2259
- 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);
2260
2098
  },
2261
- __wbg_createTexture_01e8e591b64237de: function(arg0) {
2262
- const ret = arg0.createTexture();
2263
- 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);
2264
2101
  },
2265
- __wbg_createTexture_5f2583508ebe379b: function(arg0) {
2266
- const ret = arg0.createTexture();
2267
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2102
+ __wbg_end_b57473834b877409: function(arg0) {
2103
+ arg0.end();
2268
2104
  },
2269
- __wbg_createVertexArrayOES_a8dc8498b56df937: function(arg0) {
2270
- const ret = arg0.createVertexArrayOES();
2271
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2105
+ __wbg_engine_new: function(arg0) {
2106
+ const ret = Engine.__wrap(arg0);
2107
+ return ret;
2272
2108
  },
2273
- __wbg_createVertexArray_b223ea69dd08fcab: function(arg0) {
2274
- const ret = arg0.createVertexArray();
2275
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2109
+ __wbg_error_8c8dff942c7c4f11: function(arg0) {
2110
+ const ret = arg0.error;
2111
+ return ret;
2276
2112
  },
2277
- __wbg_cullFace_12123c1c97f1ba2c: function(arg0, arg1) {
2278
- arg0.cullFace(arg1 >>> 0);
2113
+ __wbg_error_c9cf3fc2064683a9: function(arg0) {
2114
+ console.error(arg0);
2279
2115
  },
2280
- __wbg_cullFace_1a01f0b6d5aeb687: function(arg0, arg1) {
2281
- arg0.cullFace(arg1 >>> 0);
2116
+ __wbg_features_5cac120c28ba0475: function(arg0) {
2117
+ const ret = arg0.features;
2118
+ return ret;
2282
2119
  },
2283
- __wbg_deleteBuffer_070e58aaaf2a7a8b: function(arg0, arg1) {
2284
- arg0.deleteBuffer(arg1);
2120
+ __wbg_features_dec7bd2fd3d91bd6: function(arg0) {
2121
+ const ret = arg0.features;
2122
+ return ret;
2285
2123
  },
2286
- __wbg_deleteBuffer_7775ee9e248c8468: function(arg0, arg1) {
2287
- arg0.deleteBuffer(arg1);
2124
+ __wbg_fetch_b322877f1ed6457d: function(arg0, arg1, arg2, arg3) {
2125
+ const ret = arg0.fetch(getStringFromWasm0(arg1, arg2), arg3);
2126
+ return ret;
2288
2127
  },
2289
- __wbg_deleteFramebuffer_3f8ab330098bf8e6: function(arg0, arg1) {
2290
- arg0.deleteFramebuffer(arg1);
2128
+ __wbg_finish_09ec094c10f41e7b: function(arg0) {
2129
+ const ret = arg0.finish();
2130
+ return ret;
2291
2131
  },
2292
- __wbg_deleteFramebuffer_570d3b214a509fa2: function(arg0, arg1) {
2293
- arg0.deleteFramebuffer(arg1);
2132
+ __wbg_finish_ec1c191f66a895b1: function(arg0, arg1) {
2133
+ const ret = arg0.finish(arg1);
2134
+ return ret;
2294
2135
  },
2295
- __wbg_deleteProgram_822906f0368175d0: function(arg0, arg1) {
2296
- 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;
2297
2155
  },
2298
- __wbg_deleteProgram_b524b30ad176cdb4: function(arg0, arg1) {
2299
- 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);
2300
2174
  },
2301
- __wbg_deleteRenderbuffer_826c9b43b7ea68f5: function(arg0, arg1) {
2302
- arg0.deleteRenderbuffer(arg1);
2175
+ __wbg_get_index_f4750150bb3083b3: function(arg0, arg1) {
2176
+ const ret = arg0[arg1 >>> 0];
2177
+ return ret;
2303
2178
  },
2304
- __wbg_deleteRenderbuffer_f4e121a3ab21c605: function(arg0, arg1) {
2305
- arg0.deleteRenderbuffer(arg1);
2179
+ __wbg_get_unchecked_288889d017702237: function(arg0, arg1) {
2180
+ const ret = arg0[arg1 >>> 0];
2181
+ return ret;
2306
2182
  },
2307
- __wbg_deleteShader_a70f6cc1918d67eb: function(arg0, arg1) {
2308
- arg0.deleteShader(arg1);
2309
- },
2310
- __wbg_deleteShader_da18a294158c2d15: function(arg0, arg1) {
2311
- arg0.deleteShader(arg1);
2312
- },
2313
- __wbg_deleteSync_4f0be28b03f50495: function(arg0, arg1) {
2314
- arg0.deleteSync(arg1);
2315
- },
2316
- __wbg_deleteTexture_78c170241204a466: function(arg0, arg1) {
2317
- arg0.deleteTexture(arg1);
2318
- },
2319
- __wbg_deleteTexture_9f42750adb092e4f: function(arg0, arg1) {
2320
- arg0.deleteTexture(arg1);
2321
- },
2322
- __wbg_deleteVertexArrayOES_e01f31634d466176: function(arg0, arg1) {
2323
- arg0.deleteVertexArrayOES(arg1);
2324
- },
2325
- __wbg_deleteVertexArray_ca9768805d051d49: function(arg0, arg1) {
2326
- arg0.deleteVertexArray(arg1);
2327
- },
2328
- __wbg_depthFunc_92e96d8f46a23300: function(arg0, arg1) {
2329
- arg0.depthFunc(arg1 >>> 0);
2330
- },
2331
- __wbg_depthFunc_a41fb5adacb22e09: function(arg0, arg1) {
2332
- arg0.depthFunc(arg1 >>> 0);
2333
- },
2334
- __wbg_depthMask_06ecff4d4514c38f: function(arg0, arg1) {
2335
- arg0.depthMask(arg1 !== 0);
2336
- },
2337
- __wbg_depthMask_0d7c3dec3b8405ee: function(arg0, arg1) {
2338
- arg0.depthMask(arg1 !== 0);
2339
- },
2340
- __wbg_depthRange_24c7969249461e8e: function(arg0, arg1, arg2) {
2341
- arg0.depthRange(arg1, arg2);
2342
- },
2343
- __wbg_depthRange_6a4e169ccf314148: function(arg0, arg1, arg2) {
2344
- arg0.depthRange(arg1, arg2);
2345
- },
2346
- __wbg_detachShader_1ed15fc2d289cf15: function(arg0, arg1, arg2) {
2347
- arg0.detachShader(arg1, arg2);
2348
- },
2349
- __wbg_detachShader_67dabaaad80a795e: function(arg0, arg1, arg2) {
2350
- arg0.detachShader(arg1, arg2);
2351
- },
2352
- __wbg_disableVertexAttribArray_11c9f11bee30c9d8: function(arg0, arg1) {
2353
- arg0.disableVertexAttribArray(arg1 >>> 0);
2354
- },
2355
- __wbg_disableVertexAttribArray_c4c8af1f9e4120d4: function(arg0, arg1) {
2356
- arg0.disableVertexAttribArray(arg1 >>> 0);
2357
- },
2358
- __wbg_disable_19fe787eccdf0272: function(arg0, arg1) {
2359
- arg0.disable(arg1 >>> 0);
2360
- },
2361
- __wbg_disable_81b2cb5f8cea15ae: function(arg0, arg1) {
2362
- arg0.disable(arg1 >>> 0);
2363
- },
2364
- __wbg_drawArraysInstancedANGLE_b76512b5abba6668: function(arg0, arg1, arg2, arg3, arg4) {
2365
- arg0.drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
2366
- },
2367
- __wbg_drawArraysInstanced_9b44aa78a087154d: function(arg0, arg1, arg2, arg3, arg4) {
2368
- arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
2369
- },
2370
- __wbg_drawArrays_08872e02fb57b847: function(arg0, arg1, arg2, arg3) {
2371
- arg0.drawArrays(arg1 >>> 0, arg2, arg3);
2372
- },
2373
- __wbg_drawArrays_741af5c3f8db636f: function(arg0, arg1, arg2, arg3) {
2374
- arg0.drawArrays(arg1 >>> 0, arg2, arg3);
2375
- },
2376
- __wbg_drawElementsInstancedANGLE_c3fc0cfa9e29a1bc: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2377
- arg0.drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
2378
- },
2379
- __wbg_drawElementsInstanced_d7c396aa034159b6: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2380
- arg0.drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
2381
- },
2382
- __wbg_drawElements_c8988ba71de1101a: function(arg0, arg1, arg2, arg3, arg4) {
2383
- arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4);
2384
- },
2385
- __wbg_drawElements_cc1e6c631e89eddf: function(arg0, arg1, arg2, arg3, arg4) {
2386
- arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4);
2387
- },
2388
- __wbg_enableVertexAttribArray_1496b78a8dbab9fd: function(arg0, arg1) {
2389
- arg0.enableVertexAttribArray(arg1 >>> 0);
2390
- },
2391
- __wbg_enableVertexAttribArray_d52693866bc8b8dd: function(arg0, arg1) {
2392
- arg0.enableVertexAttribArray(arg1 >>> 0);
2393
- },
2394
- __wbg_enable_6eeb9c0e9b483cee: function(arg0, arg1) {
2395
- arg0.enable(arg1 >>> 0);
2396
- },
2397
- __wbg_enable_cb4fc19b51148c37: function(arg0, arg1) {
2398
- arg0.enable(arg1 >>> 0);
2399
- },
2400
- __wbg_error_c9cf3fc2064683a9: function(arg0) {
2401
- console.error(arg0);
2402
- },
2403
- __wbg_fenceSync_330293024adb66bc: function(arg0, arg1, arg2) {
2404
- const ret = arg0.fenceSync(arg1 >>> 0, arg2 >>> 0);
2405
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2406
- },
2407
- __wbg_fetch_b322877f1ed6457d: function(arg0, arg1, arg2, arg3) {
2408
- const ret = arg0.fetch(getStringFromWasm0(arg1, arg2), arg3);
2409
- return ret;
2410
- },
2411
- __wbg_flush_13b162660ad850d2: function(arg0) {
2412
- arg0.flush();
2413
- },
2414
- __wbg_flush_a5ad38200881ac35: function(arg0) {
2415
- arg0.flush();
2416
- },
2417
- __wbg_framebufferRenderbuffer_1c6337e0030411f3: function(arg0, arg1, arg2, arg3, arg4) {
2418
- arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
2419
- },
2420
- __wbg_framebufferRenderbuffer_f019e9231b142c0d: function(arg0, arg1, arg2, arg3, arg4) {
2421
- arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
2422
- },
2423
- __wbg_framebufferTexture2D_73c52f23ec33aa22: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2424
- arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
2425
- },
2426
- __wbg_framebufferTexture2D_caddefa1f767646e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2427
- arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
2428
- },
2429
- __wbg_from_296ca31f8d0f1c52: function(arg0) {
2430
- const ret = Array.from(arg0);
2431
- return ret;
2432
- },
2433
- __wbg_frontFace_6751b4b97f997aeb: function(arg0, arg1) {
2434
- arg0.frontFace(arg1 >>> 0);
2435
- },
2436
- __wbg_frontFace_b064adb15b6f3772: function(arg0, arg1) {
2437
- arg0.frontFace(arg1 >>> 0);
2438
- },
2439
- __wbg_generateMipmap_c63604006bfa52d5: function(arg0, arg1) {
2440
- arg0.generateMipmap(arg1 >>> 0);
2441
- },
2442
- __wbg_generateMipmap_cd49f6eec9558721: function(arg0, arg1) {
2443
- arg0.generateMipmap(arg1 >>> 0);
2444
- },
2445
- __wbg_getActiveUniform_239de631a40c387a: function(arg0, arg1, arg2) {
2446
- const ret = arg0.getActiveUniform(arg1, arg2 >>> 0);
2447
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2448
- },
2449
- __wbg_getActiveUniform_f2052b3c57679fe2: function(arg0, arg1, arg2) {
2450
- const ret = arg0.getActiveUniform(arg1, arg2 >>> 0);
2451
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2452
- },
2453
- __wbg_getBufferSubData_dd23246099b166d1: function(arg0, arg1, arg2, arg3) {
2454
- arg0.getBufferSubData(arg1 >>> 0, arg2, arg3);
2455
- },
2456
- __wbg_getContext_051324720aa5b7e8: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2457
- const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
2458
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2459
- }, arguments); },
2460
- __wbg_getExtension_abfda2c5db286b07: function() { return handleError(function (arg0, arg1, arg2) {
2461
- const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
2462
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2463
- }, arguments); },
2464
- __wbg_getParameter_974595a6624c6c10: function() { return handleError(function (arg0, arg1) {
2465
- const ret = arg0.getParameter(arg1 >>> 0);
2466
- return ret;
2467
- }, arguments); },
2468
- __wbg_getParameter_a97f491753b05668: function() { return handleError(function (arg0, arg1) {
2469
- const ret = arg0.getParameter(arg1 >>> 0);
2470
- return ret;
2471
- }, arguments); },
2472
- __wbg_getProgramInfoLog_208fb1ff31006495: function(arg0, arg1, arg2) {
2473
- const ret = arg1.getProgramInfoLog(arg2);
2474
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2475
- var len1 = WASM_VECTOR_LEN;
2476
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2477
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2478
- },
2479
- __wbg_getProgramInfoLog_3276b294d6d42fe2: function(arg0, arg1, arg2) {
2480
- const ret = arg1.getProgramInfoLog(arg2);
2481
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2482
- var len1 = WASM_VECTOR_LEN;
2483
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2484
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2485
- },
2486
- __wbg_getProgramParameter_50bafab01cf88652: function(arg0, arg1, arg2) {
2487
- const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
2488
- return ret;
2489
- },
2490
- __wbg_getProgramParameter_fc7124bb9fb7c675: function(arg0, arg1, arg2) {
2491
- const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
2492
- return ret;
2493
- },
2494
- __wbg_getShaderInfoLog_7e0cbba353ca95da: function(arg0, arg1, arg2) {
2495
- const ret = arg1.getShaderInfoLog(arg2);
2496
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2497
- var len1 = WASM_VECTOR_LEN;
2498
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2499
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2500
- },
2501
- __wbg_getShaderInfoLog_bb64c5a52df0b7a3: function(arg0, arg1, arg2) {
2502
- const ret = arg1.getShaderInfoLog(arg2);
2503
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2504
- var len1 = WASM_VECTOR_LEN;
2505
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2506
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2507
- },
2508
- __wbg_getShaderParameter_745acf10b8e45e31: function(arg0, arg1, arg2) {
2509
- const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
2510
- return ret;
2511
- },
2512
- __wbg_getShaderParameter_e55ea9c456df5484: function(arg0, arg1, arg2) {
2513
- const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
2514
- return ret;
2515
- },
2516
- __wbg_getSupportedExtensions_1459bad37860c0c3: function(arg0) {
2517
- const ret = arg0.getSupportedExtensions();
2518
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2519
- },
2520
- __wbg_getSyncParameter_bb4be47b67bfa2f8: function(arg0, arg1, arg2) {
2521
- const ret = arg0.getSyncParameter(arg1, arg2 >>> 0);
2522
- return ret;
2523
- },
2524
- __wbg_getUniformLocation_50ba45dade572703: function(arg0, arg1, arg2, arg3) {
2525
- const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
2526
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2527
- },
2528
- __wbg_getUniformLocation_cb4e3e121235f91a: function(arg0, arg1, arg2, arg3) {
2529
- const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
2530
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2531
- },
2532
- __wbg_get_31af05bd4842a84f: function() { return handleError(function (arg0, arg1) {
2533
- const ret = Reflect.get(arg0, arg1);
2534
- return ret;
2535
- }, arguments); },
2536
- __wbg_get_806853698d9fc227: function() { return handleError(function (arg0, arg1) {
2537
- const ret = Reflect.get(arg0, arg1 >>> 0);
2538
- return ret;
2539
- }, arguments); },
2540
- __wbg_get_f75619e20cb68514: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2541
- const ret = arg1.get(getStringFromWasm0(arg2, arg3));
2542
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2543
- var len1 = WASM_VECTOR_LEN;
2544
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2545
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2546
- }, arguments); },
2547
- __wbg_get_index_f4750150bb3083b3: function(arg0, arg1) {
2548
- const ret = arg0[arg1 >>> 0];
2183
+ __wbg_gpu_afdd4387c7afe5f9: function(arg0) {
2184
+ const ret = arg0.gpu;
2549
2185
  return ret;
2550
2186
  },
2551
- __wbg_get_unchecked_288889d017702237: function(arg0, arg1) {
2552
- const ret = arg0[arg1 >>> 0];
2187
+ __wbg_has_eafa12e457ea88fb: function(arg0, arg1, arg2) {
2188
+ const ret = arg0.has(getStringFromWasm0(arg1, arg2));
2553
2189
  return ret;
2554
2190
  },
2555
2191
  __wbg_headers_eba93595f8944c2f: function(arg0) {
@@ -2560,6 +2196,14 @@ function __wbg_get_imports() {
2560
2196
  const ret = arg0.height;
2561
2197
  return ret;
2562
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
+ },
2563
2207
  __wbg_instanceof_ArrayBuffer_a99f175873e5d9b8: function(arg0) {
2564
2208
  let result;
2565
2209
  try {
@@ -2610,6 +2254,26 @@ function __wbg_get_imports() {
2610
2254
  const ret = result;
2611
2255
  return ret;
2612
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
+ },
2613
2277
  __wbg_instanceof_ImageBitmap_74bea45ee48d3d7a: function(arg0) {
2614
2278
  let result;
2615
2279
  try {
@@ -2660,16 +2324,6 @@ function __wbg_get_imports() {
2660
2324
  const ret = result;
2661
2325
  return ret;
2662
2326
  },
2663
- __wbg_instanceof_WebGl2RenderingContext_64c994c14c0790fb: function(arg0) {
2664
- let result;
2665
- try {
2666
- result = arg0 instanceof WebGL2RenderingContext;
2667
- } catch (_) {
2668
- result = false;
2669
- }
2670
- const ret = result;
2671
- return ret;
2672
- },
2673
2327
  __wbg_instanceof_Window_82d71df4eddf88bc: function(arg0) {
2674
2328
  let result;
2675
2329
  try {
@@ -2684,25 +2338,20 @@ function __wbg_get_imports() {
2684
2338
  const ret = Array.isArray(arg0);
2685
2339
  return ret;
2686
2340
  },
2687
- __wbg_isContextLost_fbbab8b921e614b7: function(arg0) {
2688
- const ret = arg0.isContextLost();
2689
- return ret;
2690
- },
2691
- __wbg_isEnabled_a3522bc4076e6296: function(arg0, arg1) {
2692
- const ret = arg0.isEnabled(arg1 >>> 0);
2693
- return ret;
2694
- },
2695
- __wbg_isEnabled_acb9d89bd88c16bd: function(arg0, arg1) {
2696
- const ret = arg0.isEnabled(arg1 >>> 0);
2341
+ __wbg_isFallbackAdapter_4c8cc3b18677460a: function(arg0) {
2342
+ const ret = arg0.isFallbackAdapter;
2697
2343
  return ret;
2698
2344
  },
2699
2345
  __wbg_is_4b278c0bd3caba97: function(arg0, arg1) {
2700
2346
  const ret = Object.is(arg0, arg1);
2701
2347
  return ret;
2702
2348
  },
2703
- __wbg_length_511b1f84719d3462: function(arg0) {
2704
- const ret = arg0.length;
2705
- 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);
2706
2355
  },
2707
2356
  __wbg_length_58572db4c38f3c3e: function(arg0) {
2708
2357
  const ret = arg0.length;
@@ -2720,23 +2369,161 @@ function __wbg_get_imports() {
2720
2369
  const ret = arg0.length;
2721
2370
  return ret;
2722
2371
  },
2723
- __wbg_linkProgram_571a9ea00d38ff83: function(arg0, arg1) {
2724
- arg0.linkProgram(arg1);
2372
+ __wbg_limits_06bcb36c8409843b: function(arg0) {
2373
+ const ret = arg0.limits;
2374
+ return ret;
2375
+ },
2376
+ __wbg_limits_601ad2e086ef8141: function(arg0) {
2377
+ const ret = arg0.limits;
2378
+ return ret;
2725
2379
  },
2726
- __wbg_linkProgram_acdc299c43d734a0: function(arg0, arg1) {
2727
- arg0.linkProgram(arg1);
2380
+ __wbg_mapAsync_b0597127f5037286: function(arg0, arg1, arg2, arg3) {
2381
+ const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
2382
+ return ret;
2728
2383
  },
2729
- __wbg_message_5f8387f0c32b90a7: function(arg0) {
2730
- const ret = arg0.message;
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;
2731
2390
  return ret;
2732
2391
  },
2733
- __wbg_name_91a697e9ff1634bf: function(arg0, arg1) {
2734
- const ret = arg1.name;
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;
2434
+ return ret;
2435
+ },
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;
2735
2502
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2736
2503
  const len1 = WASM_VECTOR_LEN;
2737
2504
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2738
2505
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2739
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
+ },
2740
2527
  __wbg_new_1dbf7428bba60a42: function(arg0) {
2741
2528
  const ret = new Uint8Array(arg0);
2742
2529
  return ret;
@@ -2771,30 +2558,52 @@ function __wbg_get_imports() {
2771
2558
  const ret = new Headers();
2772
2559
  return ret;
2773
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); },
2774
2565
  __wbg_new_ee2291f50781bf1d: function() {
2775
2566
  const ret = new Array();
2776
2567
  return ret;
2777
2568
  },
2778
- __wbg_new_from_slice_37a3c3a194266cb8: function(arg0, arg1) {
2779
- const ret = new Uint32Array(getArrayU32FromWasm0(arg0, arg1));
2780
- return ret;
2781
- },
2782
2569
  __wbg_new_from_slice_9a868026ffa4208a: function(arg0, arg1) {
2783
2570
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
2784
2571
  return ret;
2785
2572
  },
2786
- __wbg_new_from_slice_ca6ad97db1f4779a: function(arg0, arg1) {
2787
- const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
2788
- return ret;
2789
- },
2790
2573
  __wbg_new_from_slice_f545fd22ddc142b8: function(arg0, arg1) {
2791
2574
  const ret = new Float64Array(getArrayF64FromWasm0(arg0, arg1));
2792
2575
  return ret;
2793
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
+ },
2794
2599
  __wbg_new_with_byte_offset_70ba6193352e027b: function(arg0, arg1) {
2795
2600
  const ret = new Uint8Array(arg0, arg1 >>> 0);
2796
2601
  return ret;
2797
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
+ },
2798
2607
  __wbg_new_with_byte_offset_and_length_40c170286adc9005: function(arg0, arg1, arg2) {
2799
2608
  const ret = new Float32Array(arg0, arg1 >>> 0, arg2 >>> 0);
2800
2609
  return ret;
@@ -2811,450 +2620,829 @@ function __wbg_get_imports() {
2811
2620
  const ret = arg0.now();
2812
2621
  return ret;
2813
2622
  },
2814
- __wbg_of_20798cb14708764f: function(arg0, arg1) {
2815
- const ret = Array.of(arg0, arg1);
2816
- 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];
2817
3023
  },
2818
- __wbg_of_d5dbecdc59e02e34: function(arg0) {
2819
- const ret = Array.of(arg0);
2820
- return ret;
3024
+ __wbg_set_lod_max_clamp_db24179f67f3aa31: function(arg0, arg1) {
3025
+ arg0.lodMaxClamp = arg1;
2821
3026
  },
2822
- __wbg_of_dde0b9d3265685ee: function(arg0, arg1, arg2) {
2823
- const ret = Array.of(arg0, arg1, arg2);
2824
- return ret;
3027
+ __wbg_set_lod_min_clamp_2bbce566e9fefa04: function(arg0, arg1) {
3028
+ arg0.lodMinClamp = arg1;
2825
3029
  },
2826
- __wbg_of_fea2613674ee0d0f: function(arg0, arg1, arg2, arg3, arg4) {
2827
- const ret = Array.of(arg0, arg1, arg2, arg3, arg4);
2828
- return ret;
3030
+ __wbg_set_mag_filter_db8e6b42d4f8846d: function(arg0, arg1) {
3031
+ arg0.magFilter = __wbindgen_enum_GpuFilterMode[arg1];
2829
3032
  },
2830
- __wbg_ok_125878a7db256ecb: function(arg0) {
2831
- const ret = arg0.ok;
2832
- return ret;
3033
+ __wbg_set_mapped_at_creation_3f320fef6761b02c: function(arg0, arg1) {
3034
+ arg0.mappedAtCreation = arg1 !== 0;
2833
3035
  },
2834
- __wbg_performance_d0d7b03fc649b694: function(arg0) {
2835
- const ret = arg0.performance;
2836
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3036
+ __wbg_set_mask_c1079e551ec360dc: function(arg0, arg1) {
3037
+ arg0.mask = arg1 >>> 0;
2837
3038
  },
2838
- __wbg_pixelStorei_af18e636b3e7b725: function(arg0, arg1, arg2) {
2839
- arg0.pixelStorei(arg1 >>> 0, arg2);
3039
+ __wbg_set_max_anisotropy_84749fdcec362dc4: function(arg0, arg1) {
3040
+ arg0.maxAnisotropy = arg1;
2840
3041
  },
2841
- __wbg_pixelStorei_cb4e43466f5b8703: function(arg0, arg1, arg2) {
2842
- arg0.pixelStorei(arg1 >>> 0, arg2);
3042
+ __wbg_set_min_binding_size_f64_897e3cd4496ddec9: function(arg0, arg1) {
3043
+ arg0.minBindingSize = arg1;
2843
3044
  },
2844
- __wbg_polygonOffset_81dc8ca84e29572b: function(arg0, arg1, arg2) {
2845
- arg0.polygonOffset(arg1, arg2);
3045
+ __wbg_set_min_filter_d435bbfc5a637757: function(arg0, arg1) {
3046
+ arg0.minFilter = __wbindgen_enum_GpuFilterMode[arg1];
2846
3047
  },
2847
- __wbg_polygonOffset_8f922d9173d8849d: function(arg0, arg1, arg2) {
2848
- arg0.polygonOffset(arg1, arg2);
3048
+ __wbg_set_mip_level_03ed7bbd0ded367f: function(arg0, arg1) {
3049
+ arg0.mipLevel = arg1 >>> 0;
2849
3050
  },
2850
- __wbg_prototypesetcall_06eb15da165dee8f: function(arg0, arg1, arg2) {
2851
- Uint32Array.prototype.set.call(getArrayU32FromWasm0(arg0, arg1), arg2);
3051
+ __wbg_set_mip_level_count_047936c630acee7b: function(arg0, arg1) {
3052
+ arg0.mipLevelCount = arg1 >>> 0;
2852
3053
  },
2853
- __wbg_prototypesetcall_8b03c01e2c0f8066: function(arg0, arg1, arg2) {
2854
- Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), arg2);
3054
+ __wbg_set_mip_level_count_44bc46a1ae6f6daa: function(arg0, arg1) {
3055
+ arg0.mipLevelCount = arg1 >>> 0;
2855
3056
  },
2856
- __wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
2857
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
3057
+ __wbg_set_mip_level_f3745730372683d5: function(arg0, arg1) {
3058
+ arg0.mipLevel = arg1 >>> 0;
2858
3059
  },
2859
- __wbg_prototypesetcall_d49a4fab5ca427bc: function(arg0, arg1, arg2) {
2860
- Float64Array.prototype.set.call(getArrayF64FromWasm0(arg0, arg1), arg2);
3060
+ __wbg_set_mipmap_filter_62fb49a84b0747ff: function(arg0, arg1) {
3061
+ arg0.mipmapFilter = __wbindgen_enum_GpuMipmapFilterMode[arg1];
2861
3062
  },
2862
- __wbg_push_2baf45db356cf468: function(arg0, arg1) {
2863
- const ret = arg0.push(arg1);
2864
- return ret;
3063
+ __wbg_set_mode_7edfbc344ef9c650: function(arg0, arg1) {
3064
+ arg0.mode = __wbindgen_enum_GpuCanvasToneMappingMode[arg1];
2865
3065
  },
2866
- __wbg_queueMicrotask_9833f9a49df95a49: function(arg0) {
2867
- const ret = arg0.queueMicrotask;
2868
- return ret;
3066
+ __wbg_set_module_392eeaa269f203b0: function(arg0, arg1) {
3067
+ arg0.module = arg1;
2869
3068
  },
2870
- __wbg_queueMicrotask_a72f977e97f23c5f: function(arg0) {
2871
- queueMicrotask(arg0);
3069
+ __wbg_set_module_715d37652c4998ec: function(arg0, arg1) {
3070
+ arg0.module = arg1;
2872
3071
  },
2873
- __wbg_readPixels_31e44e70558ac590: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2874
- arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
2875
- }, arguments); },
2876
- __wbg_readPixels_3321086a7818a739: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2877
- arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
2878
- }, arguments); },
2879
- __wbg_readPixels_eb030cd9976eeca5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2880
- arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
2881
- }, arguments); },
2882
- __wbg_renderbufferStorage_52b131bbf3112b3a: function(arg0, arg1, arg2, arg3, arg4) {
2883
- arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
3072
+ __wbg_set_multisample_ff72a7a5456cbeb7: function(arg0, arg1) {
3073
+ arg0.multisample = arg1;
2884
3074
  },
2885
- __wbg_renderbufferStorage_bca487b0dea425b8: function(arg0, arg1, arg2, arg3, arg4) {
2886
- arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
3075
+ __wbg_set_multisampled_039f032dc4b67367: function(arg0, arg1) {
3076
+ arg0.multisampled = arg1 !== 0;
2887
3077
  },
2888
- __wbg_resolve_0076e10020304ede: function(arg0) {
2889
- const ret = Promise.resolve(arg0);
2890
- return ret;
3078
+ __wbg_set_offset_f64_127e8a0aa5c5485a: function(arg0, arg1) {
3079
+ arg0.offset = arg1;
2891
3080
  },
2892
- __wbg_scissor_12ddc324094acd50: function(arg0, arg1, arg2, arg3, arg4) {
2893
- arg0.scissor(arg1, arg2, arg3, arg4);
3081
+ __wbg_set_offset_f64_457756429ede426d: function(arg0, arg1) {
3082
+ arg0.offset = arg1;
2894
3083
  },
2895
- __wbg_scissor_a9468482697c2bdb: function(arg0, arg1, arg2, arg3, arg4) {
2896
- arg0.scissor(arg1, arg2, arg3, arg4);
3084
+ __wbg_set_offset_f64_a903425d5a8e5815: function(arg0, arg1) {
3085
+ arg0.offset = arg1;
2897
3086
  },
2898
- __wbg_setTimeout_db7bbc18a17e152a: function() { return handleError(function (arg0, arg1, arg2) {
2899
- const ret = arg0.setTimeout(arg1, arg2);
2900
- return ret;
2901
- }, arguments); },
2902
- __wbg_set_145a351398b48c65: function() { return handleError(function (arg0, arg1, arg2) {
2903
- const ret = Reflect.set(arg0, arg1, arg2);
2904
- return ret;
2905
- }, arguments); },
2906
- __wbg_set_af5932e3f78b5648: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2907
- arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
2908
- }, arguments); },
2909
- __wbg_set_alpha_6dea851a46253adf: function(arg0, arg1) {
2910
- arg0.alpha = arg1 !== 0;
3087
+ __wbg_set_offset_f64_d1d115dd438165b5: function(arg0, arg1) {
3088
+ arg0.offset = arg1;
2911
3089
  },
2912
- __wbg_set_antialias_1f699e96763e8a35: function(arg0, arg1) {
2913
- arg0.antialias = arg1 !== 0;
3090
+ __wbg_set_onuncapturederror_bb813f1102da2296: function(arg0, arg1) {
3091
+ arg0.onuncapturederror = arg1;
2914
3092
  },
2915
- __wbg_set_cache_7507c4cc5938ccc7: function(arg0, arg1) {
2916
- arg0.cache = __wbindgen_enum_RequestCache[arg1];
3093
+ __wbg_set_operation_00a77386523b88f9: function(arg0, arg1) {
3094
+ arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
2917
3095
  },
2918
- __wbg_set_color_space_conversion_f27e9d866a683b4b: function(arg0, arg1) {
2919
- arg0.colorSpaceConversion = __wbindgen_enum_ColorSpaceConversion[arg1];
3096
+ __wbg_set_origin_gpu_origin_2d_dict_8156da81552cd590: function(arg0, arg1) {
3097
+ arg0.origin = arg1;
2920
3098
  },
2921
- __wbg_set_depth_8b49de49803d4e60: function(arg0, arg1) {
2922
- arg0.depth = arg1 !== 0;
3099
+ __wbg_set_origin_gpu_origin_3d_dict_0619d4860adb4eb6: function(arg0, arg1) {
3100
+ arg0.origin = arg1;
2923
3101
  },
2924
- __wbg_set_headers_40ad33dcf016613f: function(arg0, arg1) {
2925
- 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];
2926
3107
  },
2927
- __wbg_set_power_preference_6ef22d4c8baf517f: function(arg0, arg1) {
2928
- 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;
2929
3113
  },
2930
3114
  __wbg_set_premultiply_alpha_45a4cf9a1e87bfbf: function(arg0, arg1) {
2931
3115
  arg0.premultiplyAlpha = __wbindgen_enum_PremultiplyAlpha[arg1];
2932
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
+ },
2933
3132
  __wbg_set_resize_height_274433c2f249624d: function(arg0, arg1) {
2934
3133
  arg0.resizeHeight = arg1 >>> 0;
2935
3134
  },
2936
3135
  __wbg_set_resize_width_6f06543b29d1ca48: function(arg0, arg1) {
2937
3136
  arg0.resizeWidth = arg1 >>> 0;
2938
3137
  },
2939
- __wbg_set_signal_2dbd377604627f26: function(arg0, arg1) {
2940
- arg0.signal = arg1;
3138
+ __wbg_set_resolve_target_gpu_texture_view_e4c1e3bbb8c27d87: function(arg0, arg1) {
3139
+ arg0.resolveTarget = arg1;
2941
3140
  },
2942
- __wbg_set_stencil_edc32d9477c7c107: function(arg0, arg1) {
2943
- arg0.stencil = arg1 !== 0;
3141
+ __wbg_set_resource_8fd8658b30d86ecf: function(arg0, arg1) {
3142
+ arg0.resource = arg1;
2944
3143
  },
2945
- __wbg_set_type_dcf75b2afa60c694: function(arg0, arg1, arg2) {
2946
- arg0.type = getStringFromWasm0(arg1, arg2);
3144
+ __wbg_set_resource_gpu_buffer_binding_33099b25da65b610: function(arg0, arg1) {
3145
+ arg0.resource = arg1;
2947
3146
  },
2948
- __wbg_shaderSource_06379dac249994dd: function(arg0, arg1, arg2, arg3) {
2949
- arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
3147
+ __wbg_set_resource_gpu_texture_view_4cffe7bc7c8e5cbe: function(arg0, arg1) {
3148
+ arg0.resource = arg1;
2950
3149
  },
2951
- __wbg_shaderSource_c8812639b47d87b9: function(arg0, arg1, arg2, arg3) {
2952
- arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
3150
+ __wbg_set_rows_per_image_c6d50d227e634379: function(arg0, arg1) {
3151
+ arg0.rowsPerImage = arg1 >>> 0;
2953
3152
  },
2954
- __wbg_signal_e5a49a2d9c65b7f6: function(arg0) {
2955
- const ret = arg0.signal;
2956
- return ret;
3153
+ __wbg_set_rows_per_image_deb456502f23c260: function(arg0, arg1) {
3154
+ arg0.rowsPerImage = arg1 >>> 0;
2957
3155
  },
2958
- __wbg_size_74c48d7329291685: function(arg0) {
2959
- const ret = arg0.size;
2960
- return ret;
3156
+ __wbg_set_sample_count_481c255a12054e1d: function(arg0, arg1) {
3157
+ arg0.sampleCount = arg1 >>> 0;
2961
3158
  },
2962
- __wbg_static_accessor_GLOBAL_266715b9d96ba635: function() {
2963
- const ret = typeof global === 'undefined' ? null : global;
2964
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3159
+ __wbg_set_sample_type_ebc5fcd029513bda: function(arg0, arg1) {
3160
+ arg0.sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
2965
3161
  },
2966
- __wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179: function() {
2967
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
2968
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3162
+ __wbg_set_sampler_89cb4a7efcfc6005: function(arg0, arg1) {
3163
+ arg0.sampler = arg1;
2969
3164
  },
2970
- __wbg_static_accessor_SELF_0b583911f537483a: function() {
2971
- const ret = typeof self === 'undefined' ? null : self;
2972
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3165
+ __wbg_set_shader_location_3fb9f6a012eba494: function(arg0, arg1) {
3166
+ arg0.shaderLocation = arg1 >>> 0;
2973
3167
  },
2974
- __wbg_static_accessor_WINDOW_d7f903d1508cbdc4: function() {
2975
- const ret = typeof window === 'undefined' ? null : window;
2976
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3168
+ __wbg_set_signal_2dbd377604627f26: function(arg0, arg1) {
3169
+ arg0.signal = arg1;
2977
3170
  },
2978
- __wbg_status_ce0a98d3c57125f3: function(arg0) {
2979
- const ret = arg0.status;
2980
- return ret;
3171
+ __wbg_set_size_f64_2f591b0654540477: function(arg0, arg1) {
3172
+ arg0.size = arg1;
2981
3173
  },
2982
- __wbg_stencilFunc_aa3cd8856be514c4: function(arg0, arg1, arg2, arg3) {
2983
- arg0.stencilFunc(arg1 >>> 0, arg2, arg3 >>> 0);
3174
+ __wbg_set_size_f64_e844c985b8f95261: function(arg0, arg1) {
3175
+ arg0.size = arg1;
2984
3176
  },
2985
- __wbg_stencilFunc_bab7e0b7c443f093: function(arg0, arg1, arg2, arg3) {
2986
- arg0.stencilFunc(arg1 >>> 0, arg2, arg3 >>> 0);
3177
+ __wbg_set_size_gpu_extent_3d_dict_adf57388ab1d4f18: function(arg0, arg1) {
3178
+ arg0.size = arg1;
2987
3179
  },
2988
- __wbg_stencilMask_9e18cc018897c747: function(arg0, arg1) {
2989
- arg0.stencilMask(arg1 >>> 0);
3180
+ __wbg_set_source_211aa06496d82b73: function(arg0, arg1) {
3181
+ arg0.source = arg1;
2990
3182
  },
2991
- __wbg_stencilMask_a22be64c66abd825: function(arg0, arg1) {
2992
- arg0.stencilMask(arg1 >>> 0);
3183
+ __wbg_set_source_html_canvas_element_5577621adc0f8ff6: function(arg0, arg1) {
3184
+ arg0.source = arg1;
2993
3185
  },
2994
- __wbg_stencilOpSeparate_7d01185cbdb89d99: function(arg0, arg1, arg2, arg3, arg4) {
2995
- 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;
2996
3188
  },
2997
- __wbg_stencilOpSeparate_c5af5f5dbd237bea: function(arg0, arg1, arg2, arg3, arg4) {
2998
- 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;
2999
3191
  },
3000
- __wbg_stencilOp_12274af665ab8a00: function(arg0, arg1, arg2, arg3) {
3001
- arg0.stencilOp(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
3192
+ __wbg_set_source_image_data_c80600573a809775: function(arg0, arg1) {
3193
+ arg0.source = arg1;
3002
3194
  },
3003
- __wbg_stencilOp_2697194654fee819: function(arg0, arg1, arg2, arg3) {
3004
- arg0.stencilOp(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
3195
+ __wbg_set_source_offscreen_canvas_7d49271754887b4e: function(arg0, arg1) {
3196
+ arg0.source = arg1;
3005
3197
  },
3006
- __wbg_subarray_002b94d5e13d1411: function(arg0, arg1, arg2) {
3007
- const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3008
- return ret;
3198
+ __wbg_set_source_video_frame_e4faebda27c393e4: function(arg0, arg1) {
3199
+ arg0.source = arg1;
3009
3200
  },
3010
- __wbg_texImage2D_1b3349107ad0faae: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3011
- arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4 >>> 0, arg5 >>> 0, arg6);
3012
- }, arguments); },
3013
- __wbg_texImage2D_82bf2b4c8aa9a1db: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
3014
- arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
3015
- }, arguments); },
3016
- __wbg_texImage2D_8fc2f2fcca249b59: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3017
- arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4 >>> 0, arg5 >>> 0, arg6);
3018
- }, arguments); },
3019
- __wbg_texImage2D_a856af552acdc9d9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
3020
- arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
3021
- }, arguments); },
3022
- __wbg_texImage2D_ca3d0fe24620ec85: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
3023
- arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
3024
- }, arguments); },
3025
- __wbg_texParameteri_647fdb1426809cb5: function(arg0, arg1, arg2, arg3) {
3026
- arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
3201
+ __wbg_set_src_factor_6f2c9ec8e4d3d979: function(arg0, arg1) {
3202
+ arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
3027
3203
  },
3028
- __wbg_texParameteri_7864076abcdb03e0: function(arg0, arg1, arg2, arg3) {
3029
- arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
3204
+ __wbg_set_stencil_back_c54d0443b8b6a957: function(arg0, arg1) {
3205
+ arg0.stencilBack = arg1;
3030
3206
  },
3031
- __wbg_texStorage2D_cf2bd991072d9efb: function(arg0, arg1, arg2, arg3, arg4, arg5) {
3032
- arg0.texStorage2D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
3207
+ __wbg_set_stencil_clear_value_a321b0e045bfd8c2: function(arg0, arg1) {
3208
+ arg0.stencilClearValue = arg1 >>> 0;
3033
3209
  },
3034
- __wbg_texStorage3D_74b701c2b176380c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3035
- arg0.texStorage3D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6);
3210
+ __wbg_set_stencil_front_3ff3f8385852efff: function(arg0, arg1) {
3211
+ arg0.stencilFront = arg1;
3036
3212
  },
3037
- __wbg_texSubImage2D_31a0c2797aa04f32: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
3038
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
3039
- }, arguments); },
3040
- __wbg_texSubImage2D_5e90c7a719d40256: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
3041
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
3042
- }, arguments); },
3043
- __wbg_texSubImage2D_bb322aae90f7657f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
3044
- arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
3045
- }, arguments); },
3046
- __wbg_texSubImage3D_5143d5af7e182ddc: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
3047
- arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
3048
- }, arguments); },
3049
- __wbg_texSubImage3D_5d773fc7a8cd4d08: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
3050
- arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
3051
- }, arguments); },
3052
- __wbg_texSubImage3D_e0d113b7047a5130: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
3053
- arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
3054
- }, arguments); },
3055
- __wbg_then_c949d5a25a4e78f8: function(arg0, arg1, arg2) {
3056
- const ret = arg0.then(arg1, arg2);
3057
- return ret;
3213
+ __wbg_set_stencil_load_op_37d20deccb26a0f1: function(arg0, arg1) {
3214
+ arg0.stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
3058
3215
  },
3059
- __wbg_then_e71170d78fcf8954: function(arg0, arg1) {
3060
- const ret = arg0.then(arg1);
3061
- return ret;
3216
+ __wbg_set_stencil_read_mask_021ef4271b24352c: function(arg0, arg1) {
3217
+ arg0.stencilReadMask = arg1 >>> 0;
3062
3218
  },
3063
- __wbg_type_ff6f7b321fe8478b: function(arg0) {
3064
- const ret = arg0.type;
3065
- 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;
3066
3233
  },
3067
- __wbg_uniform1f_9cfecfaeb8cf43c1: function(arg0, arg1, arg2) {
3068
- arg0.uniform1f(arg1, arg2);
3234
+ __wbg_set_store_op_678f33376d741711: function(arg0, arg1) {
3235
+ arg0.storeOp = __wbindgen_enum_GpuStoreOp[arg1];
3069
3236
  },
3070
- __wbg_uniform1f_b5856e35a43b65a1: function(arg0, arg1, arg2) {
3071
- arg0.uniform1f(arg1, arg2);
3237
+ __wbg_set_strip_index_format_70313df755145d5e: function(arg0, arg1) {
3238
+ arg0.stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
3072
3239
  },
3073
- __wbg_uniform1fv_1bf537fc926ef8b9: function(arg0, arg1, arg2, arg3) {
3074
- arg0.uniform1fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3240
+ __wbg_set_targets_674b33931e512fb1: function(arg0, arg1, arg2) {
3241
+ arg0.targets = getArrayJsValueViewFromWasm0(arg1, arg2);
3075
3242
  },
3076
- __wbg_uniform1fv_1cc1d09bc13b03bf: function(arg0, arg1, arg2, arg3) {
3077
- arg0.uniform1fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3243
+ __wbg_set_texture_4e0ee4c98ac25b81: function(arg0, arg1) {
3244
+ arg0.texture = arg1;
3078
3245
  },
3079
- __wbg_uniform1i_531b98c4a7177366: function(arg0, arg1, arg2) {
3080
- arg0.uniform1i(arg1, arg2);
3246
+ __wbg_set_texture_95f2bfdf7767e76f: function(arg0, arg1) {
3247
+ arg0.texture = arg1;
3081
3248
  },
3082
- __wbg_uniform1i_fc2dc8cadc49d8ec: function(arg0, arg1, arg2) {
3083
- arg0.uniform1i(arg1, arg2);
3249
+ __wbg_set_texture_a33be3fe02ac6264: function(arg0, arg1) {
3250
+ arg0.texture = arg1;
3084
3251
  },
3085
- __wbg_uniform1iv_4b8cbceccddfaa62: function(arg0, arg1, arg2, arg3) {
3086
- arg0.uniform1iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3252
+ __wbg_set_timestamp_writes_de6a09f299b71b76: function(arg0, arg1) {
3253
+ arg0.timestampWrites = arg1;
3087
3254
  },
3088
- __wbg_uniform1iv_8fc880ae80c77c74: function(arg0, arg1, arg2, arg3) {
3089
- arg0.uniform1iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3255
+ __wbg_set_tone_mapping_320c1aad31db2e7f: function(arg0, arg1) {
3256
+ arg0.toneMapping = arg1;
3090
3257
  },
3091
- __wbg_uniform1ui_353c67ec681b540c: function(arg0, arg1, arg2) {
3092
- arg0.uniform1ui(arg1, arg2 >>> 0);
3258
+ __wbg_set_topology_b92cfe523bd9653b: function(arg0, arg1) {
3259
+ arg0.topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
3093
3260
  },
3094
- __wbg_uniform1uiv_ad5e946730aacbec: function(arg0, arg1, arg2, arg3) {
3095
- arg0.uniform1uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
3261
+ __wbg_set_type_43e0092f16775979: function(arg0, arg1) {
3262
+ arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
3096
3263
  },
3097
- __wbg_uniform2f_131da2d4bf17e4b9: function(arg0, arg1, arg2, arg3) {
3098
- arg0.uniform2f(arg1, arg2, arg3);
3264
+ __wbg_set_type_79cec55caf4cdb6d: function(arg0, arg1) {
3265
+ arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
3099
3266
  },
3100
- __wbg_uniform2f_a92b5bb95dc5b4d9: function(arg0, arg1, arg2, arg3) {
3101
- 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;
3102
3275
  },
3103
- __wbg_uniform2fv_319c49f0ce340f26: function(arg0, arg1, arg2, arg3) {
3104
- arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3276
+ __wbg_set_usage_2365e2704b1fdb10: function(arg0, arg1) {
3277
+ arg0.usage = arg1 >>> 0;
3105
3278
  },
3106
- __wbg_uniform2fv_a7d3c1830d18c1b2: function(arg0, arg1, arg2, arg3) {
3107
- arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3279
+ __wbg_set_usage_d53ee6f0c7aedbfa: function(arg0, arg1) {
3280
+ arg0.usage = arg1 >>> 0;
3108
3281
  },
3109
- __wbg_uniform2iv_65f36fc9777697d7: function(arg0, arg1, arg2, arg3) {
3110
- arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3282
+ __wbg_set_usage_f3e34822998d2147: function(arg0, arg1) {
3283
+ arg0.usage = arg1 >>> 0;
3111
3284
  },
3112
- __wbg_uniform2iv_ca9cb507409b9ad1: function(arg0, arg1, arg2, arg3) {
3113
- arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3285
+ __wbg_set_vertex_77ed7a1229239b5a: function(arg0, arg1) {
3286
+ arg0.vertex = arg1;
3114
3287
  },
3115
- __wbg_uniform2uiv_c95af5fb653ccb86: function(arg0, arg1, arg2, arg3) {
3116
- arg0.uniform2uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
3288
+ __wbg_set_view_dimension_893e2d16561e56e8: function(arg0, arg1) {
3289
+ arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
3117
3290
  },
3118
- __wbg_uniform3f_1211579ff87ccfad: function(arg0, arg1, arg2, arg3, arg4) {
3119
- arg0.uniform3f(arg1, arg2, arg3, arg4);
3291
+ __wbg_set_view_dimension_f2c5fe4bf927c3fe: function(arg0, arg1) {
3292
+ arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
3120
3293
  },
3121
- __wbg_uniform3f_ee105161897ee48a: function(arg0, arg1, arg2, arg3, arg4) {
3122
- arg0.uniform3f(arg1, arg2, arg3, arg4);
3294
+ __wbg_set_view_formats_427069064d8b7139: function(arg0, arg1, arg2) {
3295
+ arg0.viewFormats = getArrayJsValueViewFromWasm0(arg1, arg2);
3123
3296
  },
3124
- __wbg_uniform3fv_055ea5ac38af4fce: function(arg0, arg1, arg2, arg3) {
3125
- arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3297
+ __wbg_set_view_formats_9c2f01a6f3b365c7: function(arg0, arg1, arg2) {
3298
+ arg0.viewFormats = getArrayJsValueViewFromWasm0(arg1, arg2);
3126
3299
  },
3127
- __wbg_uniform3fv_58520ffe22a6e27c: function(arg0, arg1, arg2, arg3) {
3128
- arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3300
+ __wbg_set_view_gpu_texture_view_35f4655788535c4d: function(arg0, arg1) {
3301
+ arg0.view = arg1;
3129
3302
  },
3130
- __wbg_uniform3iv_0590e8b7eff2a791: function(arg0, arg1, arg2, arg3) {
3131
- arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3303
+ __wbg_set_view_gpu_texture_view_a532c825c52042c0: function(arg0, arg1) {
3304
+ arg0.view = arg1;
3132
3305
  },
3133
- __wbg_uniform3iv_e91b1410dc299f50: function(arg0, arg1, arg2, arg3) {
3134
- arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3306
+ __wbg_set_visibility_d8a6821789538c25: function(arg0, arg1) {
3307
+ arg0.visibility = arg1 >>> 0;
3135
3308
  },
3136
- __wbg_uniform3uiv_9992491000463a52: function(arg0, arg1, arg2, arg3) {
3137
- arg0.uniform3uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
3309
+ __wbg_set_width_0ca908d167690992: function(arg0, arg1) {
3310
+ arg0.width = arg1 >>> 0;
3138
3311
  },
3139
- __wbg_uniform4f_22bfec882308eec2: function(arg0, arg1, arg2, arg3, arg4, arg5) {
3140
- arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
3312
+ __wbg_set_width_b0e1267db4b196b5: function(arg0, arg1) {
3313
+ arg0.width = arg1 >>> 0;
3141
3314
  },
3142
- __wbg_uniform4f_8dd8f311e656ca0d: function(arg0, arg1, arg2, arg3, arg4, arg5) {
3143
- arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
3315
+ __wbg_set_width_b20525f5f4df4eb8: function(arg0, arg1) {
3316
+ arg0.width = arg1 >>> 0;
3144
3317
  },
3145
- __wbg_uniform4fv_3ef2f5121fcb78ae: function(arg0, arg1, arg2, arg3) {
3146
- arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3318
+ __wbg_set_write_mask_42d89f182ade6b2d: function(arg0, arg1) {
3319
+ arg0.writeMask = arg1 >>> 0;
3147
3320
  },
3148
- __wbg_uniform4fv_cf8ff646c36232c8: function(arg0, arg1, arg2, arg3) {
3149
- arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
3321
+ __wbg_set_x_58965df5af1ad27d: function(arg0, arg1) {
3322
+ arg0.x = arg1 >>> 0;
3150
3323
  },
3151
- __wbg_uniform4iv_6fc5436b4f876039: function(arg0, arg1, arg2, arg3) {
3152
- arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3324
+ __wbg_set_x_f470b03dd54724cd: function(arg0, arg1) {
3325
+ arg0.x = arg1 >>> 0;
3153
3326
  },
3154
- __wbg_uniform4iv_99c2b07787d362d6: function(arg0, arg1, arg2, arg3) {
3155
- arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
3327
+ __wbg_set_y_4c44eb40ebca5bfc: function(arg0, arg1) {
3328
+ arg0.y = arg1 >>> 0;
3156
3329
  },
3157
- __wbg_uniform4uiv_a6fb3237d9df7ed4: function(arg0, arg1, arg2, arg3) {
3158
- arg0.uniform4uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
3330
+ __wbg_set_y_b79cba22b145de99: function(arg0, arg1) {
3331
+ arg0.y = arg1 >>> 0;
3159
3332
  },
3160
- __wbg_uniformMatrix3fv_472e7824735acce1: function(arg0, arg1, arg2, arg3, arg4) {
3161
- 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;
3162
3339
  },
3163
- __wbg_uniformMatrix3fv_83fdc9c3c0d43204: function(arg0, arg1, arg2, arg3, arg4) {
3164
- 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);
3165
3343
  },
3166
- __wbg_uniformMatrix4fv_dff9738d995fd0b1: function(arg0, arg1, arg2, arg3, arg4) {
3167
- 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);
3168
3347
  },
3169
- __wbg_uniformMatrix4fv_e691d7f14d3609f7: function(arg0, arg1, arg2, arg3, arg4) {
3170
- 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);
3171
3351
  },
3172
- __wbg_useProgram_5bdae58fd9f9826f: function(arg0, arg1) {
3173
- 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);
3174
3355
  },
3175
- __wbg_useProgram_e075c2902e420761: function(arg0, arg1) {
3176
- arg0.useProgram(arg1);
3356
+ __wbg_status_ce0a98d3c57125f3: function(arg0) {
3357
+ const ret = arg0.status;
3358
+ return ret;
3177
3359
  },
3178
- __wbg_vertexAttrib1f_37ce0547e8fa5f36: function(arg0, arg1, arg2) {
3179
- 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;
3180
3363
  },
3181
- __wbg_vertexAttrib1f_470b2556c148483a: function(arg0, arg1, arg2) {
3182
- arg0.vertexAttrib1f(arg1 >>> 0, arg2);
3364
+ __wbg_subgroupMaxSize_b43be0aa16182403: function(arg0) {
3365
+ const ret = arg0.subgroupMaxSize;
3366
+ return ret;
3183
3367
  },
3184
- __wbg_vertexAttribDivisorANGLE_659fb027198a47c3: function(arg0, arg1, arg2) {
3185
- arg0.vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0);
3368
+ __wbg_subgroupMinSize_03feb6ee0cda6775: function(arg0) {
3369
+ const ret = arg0.subgroupMinSize;
3370
+ return ret;
3186
3371
  },
3187
- __wbg_vertexAttribDivisor_7575d382215322f7: function(arg0, arg1, arg2) {
3188
- arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
3372
+ __wbg_submit_077c85cc28e36892: function(arg0, arg1, arg2) {
3373
+ arg0.submit(getArrayJsValueViewFromWasm0(arg1, arg2));
3189
3374
  },
3190
- __wbg_vertexAttribIPointer_fc8057c62cfcc63c: function(arg0, arg1, arg2, arg3, arg4, arg5) {
3191
- 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;
3192
3378
  },
3193
- __wbg_vertexAttribPointer_24b495e18df325dc: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3194
- 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;
3195
3382
  },
3196
- __wbg_vertexAttribPointer_54d56b18f71a946d: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3197
- arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
3383
+ __wbg_unconfigure_835307f58dc68d80: function(arg0) {
3384
+ arg0.unconfigure();
3198
3385
  },
3199
- __wbg_viewport_16936692526e2ce6: function(arg0, arg1, arg2, arg3, arg4) {
3200
- arg0.viewport(arg1, arg2, arg3, arg4);
3386
+ __wbg_unmap_6a96b14c9ef5f7f5: function(arg0) {
3387
+ arg0.unmap();
3201
3388
  },
3202
- __wbg_viewport_e35d16c542d2ce70: function(arg0, arg1, arg2, arg3, arg4) {
3203
- arg0.viewport(arg1, arg2, arg3, arg4);
3389
+ __wbg_valueOf_02fd4d101b7553c7: function(arg0) {
3390
+ const ret = arg0.valueOf();
3391
+ return ret;
3204
3392
  },
3205
3393
  __wbg_warn_13abc63e0d4b3527: function(arg0) {
3206
3394
  console.warn(arg0);
3207
3395
  },
3396
+ __wbg_width_3d0dce3d9892e35e: function(arg0) {
3397
+ const ret = arg0.width;
3398
+ return ret;
3399
+ },
3208
3400
  __wbg_width_8a9cc26363f10d5f: function(arg0) {
3209
3401
  const ret = arg0.width;
3210
3402
  return ret;
3211
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); },
3212
3410
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
3213
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 234, 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`.
3214
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_);
3215
3413
  return ret;
3216
3414
  },
3217
- __wbindgen_generic_0000000000000002: function(arg0) {
3218
- // Cast intrinsic for `F64 -> Externref`.
3219
- 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_);
3220
3418
  return ret;
3221
3419
  },
3222
3420
  __wbindgen_generic_0000000000000003: function(arg0, arg1) {
3223
- // Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
3224
- 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_);
3225
3423
  return ret;
3226
3424
  },
3227
3425
  __wbindgen_generic_0000000000000004: function(arg0, arg1) {
3228
- // Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
3229
- 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);
3230
3428
  return ret;
3231
3429
  },
3232
3430
  __wbindgen_generic_0000000000000005: function(arg0, arg1) {
3233
- // Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
3234
- 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);
3235
3433
  return ret;
3236
3434
  },
3237
- __wbindgen_generic_0000000000000006: function(arg0, arg1) {
3238
- // Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
3239
- const ret = getArrayI8FromWasm0(arg0, arg1);
3435
+ __wbindgen_generic_0000000000000006: function(arg0) {
3436
+ // Cast intrinsic for `F64 -> Externref`.
3437
+ const ret = arg0;
3240
3438
  return ret;
3241
3439
  },
3242
3440
  __wbindgen_generic_0000000000000007: function(arg0, arg1) {
3243
- // Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
3244
- const ret = getArrayU16FromWasm0(arg0, arg1);
3245
- return ret;
3246
- },
3247
- __wbindgen_generic_0000000000000008: function(arg0, arg1) {
3248
- // Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
3249
- const ret = getArrayU32FromWasm0(arg0, arg1);
3250
- return ret;
3251
- },
3252
- __wbindgen_generic_0000000000000009: function(arg0, arg1) {
3253
3441
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
3254
3442
  const ret = getArrayU8FromWasm0(arg0, arg1);
3255
3443
  return ret;
3256
3444
  },
3257
- __wbindgen_generic_000000000000000a: function(arg0, arg1) {
3445
+ __wbindgen_generic_0000000000000008: function(arg0, arg1) {
3258
3446
  // Cast intrinsic for `Ref(String) -> Externref`.
3259
3447
  const ret = getStringFromWasm0(arg0, arg1);
3260
3448
  return ret;
@@ -3271,10 +3459,14 @@ function __wbg_get_imports() {
3271
3459
  };
3272
3460
  return {
3273
3461
  __proto__: null,
3274
- "./isard_bg.js": import0,
3462
+ "./isard_webgpu_bg.js": import0,
3275
3463
  };
3276
3464
  }
3277
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
+
3278
3470
  function wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true_(arg0, arg1, arg2) {
3279
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);
3280
3472
  if (ret[1]) {
@@ -3282,6 +3474,27 @@ function wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bin
3282
3474
  }
3283
3475
  }
3284
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
+
3285
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) {
3286
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);
3287
3500
  }
@@ -3290,13 +3503,94 @@ function wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___js_sys_b
3290
3503
  const __wbindgen_enum_ColorSpaceConversion = ["none", "default"];
3291
3504
 
3292
3505
 
3293
- const __wbindgen_enum_PremultiplyAlpha = ["none", "premultiply", "default"];
3506
+ const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
3294
3507
 
3295
3508
 
3296
- 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
+
3297
3526
 
3527
+ const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
3298
3528
 
3299
- 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"];
3300
3594
  const EngineFinalization = (typeof FinalizationRegistry === 'undefined')
3301
3595
  ? { register: () => {}, unregister: () => {} }
3302
3596
  : new FinalizationRegistry(ptr => wasm.__wbg_engine_free(ptr, 1));
@@ -3386,24 +3680,14 @@ function getArrayF64FromWasm0(ptr, len) {
3386
3680
  return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
3387
3681
  }
3388
3682
 
3389
- function getArrayI16FromWasm0(ptr, len) {
3390
- ptr = ptr >>> 0;
3391
- return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
3392
- }
3393
-
3394
- function getArrayI32FromWasm0(ptr, len) {
3683
+ function getArrayJsValueViewFromWasm0(ptr, len) {
3395
3684
  ptr = ptr >>> 0;
3396
- return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
3397
- }
3398
-
3399
- function getArrayI8FromWasm0(ptr, len) {
3400
- ptr = ptr >>> 0;
3401
- return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
3402
- }
3403
-
3404
- function getArrayU16FromWasm0(ptr, len) {
3405
- ptr = ptr >>> 0;
3406
- 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;
3407
3691
  }
3408
3692
 
3409
3693
  function getArrayU32FromWasm0(ptr, len) {
@@ -3440,30 +3724,6 @@ function getFloat64ArrayMemory0() {
3440
3724
  return cachedFloat64ArrayMemory0;
3441
3725
  }
3442
3726
 
3443
- let cachedInt16ArrayMemory0 = null;
3444
- function getInt16ArrayMemory0() {
3445
- if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) {
3446
- cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer);
3447
- }
3448
- return cachedInt16ArrayMemory0;
3449
- }
3450
-
3451
- let cachedInt32ArrayMemory0 = null;
3452
- function getInt32ArrayMemory0() {
3453
- if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
3454
- cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
3455
- }
3456
- return cachedInt32ArrayMemory0;
3457
- }
3458
-
3459
- let cachedInt8ArrayMemory0 = null;
3460
- function getInt8ArrayMemory0() {
3461
- if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) {
3462
- cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer);
3463
- }
3464
- return cachedInt8ArrayMemory0;
3465
- }
3466
-
3467
3727
  function getStringFromWasm0(ptr, len) {
3468
3728
  return decodeText(ptr >>> 0, len);
3469
3729
  }
@@ -3658,9 +3918,6 @@ function __wbg_finalize_init(instance, module) {
3658
3918
  cachedDataViewMemory0 = null;
3659
3919
  cachedFloat32ArrayMemory0 = null;
3660
3920
  cachedFloat64ArrayMemory0 = null;
3661
- cachedInt16ArrayMemory0 = null;
3662
- cachedInt32ArrayMemory0 = null;
3663
- cachedInt8ArrayMemory0 = null;
3664
3921
  cachedUint16ArrayMemory0 = null;
3665
3922
  cachedUint32ArrayMemory0 = null;
3666
3923
  cachedUint8ArrayMemory0 = null;
@@ -3740,7 +3997,7 @@ async function __wbg_init(module_or_path) {
3740
3997
  }
3741
3998
 
3742
3999
  if (module_or_path === undefined) {
3743
- module_or_path = new URL('isard_bg.wasm', import.meta.url);
4000
+ module_or_path = new URL('isard_webgpu_bg.wasm', import.meta.url);
3744
4001
  }
3745
4002
  const imports = __wbg_get_imports();
3746
4003