isard 1.16.0 → 2.1.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 (122) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +5 -5
  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/vectortiles/vectors.d.ts +3 -1
  8. package/dist/basemap/vectortiles/vectors.js +2 -0
  9. package/dist/basemap/vectortiles/vectors.js.map +1 -1
  10. package/dist/basemap/vectortiles.d.ts +1 -3
  11. package/dist/basemap/vectortiles.js +1 -3
  12. package/dist/basemap/vectortiles.js.map +1 -1
  13. package/dist/basemap/workerpool.d.ts +1 -1
  14. package/dist/basemap/workerpool.js.map +1 -1
  15. package/dist/bind/layers.js +2 -2
  16. package/dist/bind/layers.js.map +1 -1
  17. package/dist/decoder.worker.js +4 -5
  18. package/dist/decoder.worker.js.map +6 -6
  19. package/dist/decoding/decoders.d.ts +1 -1
  20. package/dist/decoding/decoders.js.map +1 -1
  21. package/dist/decoding/loader.d.ts +6 -3
  22. package/dist/decoding/loader.js +7 -5
  23. package/dist/decoding/loader.js.map +1 -1
  24. package/dist/decoding/protocol.d.ts +3 -2
  25. package/dist/decoding/protocol.js.map +1 -1
  26. package/dist/engine-loader.d.ts +20 -18
  27. package/dist/engine-loader.js +45 -42
  28. package/dist/engine-loader.js.map +1 -1
  29. package/dist/index.d.ts +3 -3
  30. package/dist/index.js.map +1 -1
  31. package/dist/isard_grid_bg.wasm +0 -0
  32. package/dist/isard_tess_bg.wasm +0 -0
  33. package/dist/isard_tiles3d_bg.wasm +0 -0
  34. package/dist/isard_webgl2_bg.wasm +0 -0
  35. package/dist/isard_webgpu_bg.wasm +0 -0
  36. package/dist/layers/custom.d.ts +35 -29
  37. package/dist/layers/custom.js +60 -46
  38. package/dist/layers/custom.js.map +1 -1
  39. package/dist/layers/extrusions.d.ts +6 -1
  40. package/dist/layers/extrusions.js +15 -4
  41. package/dist/layers/extrusions.js.map +1 -1
  42. package/dist/layers/features.js.map +1 -1
  43. package/dist/layers/flow.js.map +1 -1
  44. package/dist/layers/glyphs.d.ts +1 -1
  45. package/dist/layers/glyphs.js.map +1 -1
  46. package/dist/layers/ground.d.ts +21 -14
  47. package/dist/layers/ground.js +30 -9
  48. package/dist/layers/ground.js.map +1 -1
  49. package/dist/layers/icons.d.ts +1 -1
  50. package/dist/layers/icons.js.map +1 -1
  51. package/dist/layers/layers.d.ts +1 -2
  52. package/dist/layers/layers.js +3 -12
  53. package/dist/layers/layers.js.map +1 -1
  54. package/dist/layers/models.d.ts +7 -1
  55. package/dist/layers/models.js +19 -5
  56. package/dist/layers/models.js.map +1 -1
  57. package/dist/layers/network.d.ts +1 -1
  58. package/dist/layers/network.js.map +1 -1
  59. package/dist/layers/panoramas.d.ts +1 -0
  60. package/dist/layers/panoramas.js +3 -2
  61. package/dist/layers/panoramas.js.map +1 -1
  62. package/dist/layers/pointclouds.d.ts +3 -3
  63. package/dist/layers/pointclouds.js +3 -7
  64. package/dist/layers/pointclouds.js.map +1 -1
  65. package/dist/layers/raster.js +5 -0
  66. package/dist/layers/raster.js.map +1 -1
  67. package/dist/layers/symbols.js.map +1 -1
  68. package/dist/layers/tiles3d.d.ts +5 -7
  69. package/dist/layers/tiles3d.js +9 -18
  70. package/dist/layers/tiles3d.js.map +1 -1
  71. package/dist/layers/vectors.d.ts +10 -5
  72. package/dist/layers/vectors.js +25 -16
  73. package/dist/layers/vectors.js.map +1 -1
  74. package/dist/map/engine-settings.d.ts +5 -2
  75. package/dist/map/engine-settings.js +13 -2
  76. package/dist/map/engine-settings.js.map +1 -1
  77. package/dist/map/engines.d.ts +11 -26
  78. package/dist/map/engines.js +10 -48
  79. package/dist/map/engines.js.map +1 -1
  80. package/dist/map/frame-loop.d.ts +1 -3
  81. package/dist/map/frame-loop.js +3 -3
  82. package/dist/map/frame-loop.js.map +1 -1
  83. package/dist/map/hover-pick.d.ts +9 -3
  84. package/dist/map/hover-pick.js +29 -6
  85. package/dist/map/hover-pick.js.map +1 -1
  86. package/dist/map/layer-stack.d.ts +7 -8
  87. package/dist/map/layer-stack.js +6 -9
  88. package/dist/map/layer-stack.js.map +1 -1
  89. package/dist/map/symbol-atlases.d.ts +5 -4
  90. package/dist/map/symbol-atlases.js +8 -13
  91. package/dist/map/symbol-atlases.js.map +1 -1
  92. package/dist/map/viewshed.d.ts +1 -1
  93. package/dist/map/viewshed.js.map +1 -1
  94. package/dist/map.d.ts +45 -26
  95. package/dist/map.js +141 -90
  96. package/dist/map.js.map +1 -1
  97. package/dist/react/IsardMap.d.ts +1 -1
  98. package/dist/react/IsardMap.js.map +1 -1
  99. package/dist/react/VectorGeometry.d.ts +4 -1
  100. package/dist/react/VectorGeometry.js +5 -1
  101. package/dist/react/VectorGeometry.js.map +1 -1
  102. package/dist/react/index.d.ts +1 -1
  103. package/dist/react/index.js.map +1 -1
  104. package/dist/settings.d.ts +2 -0
  105. package/dist/settings.js +1 -1
  106. package/dist/settings.js.map +1 -1
  107. package/dist/types.d.ts +52 -22
  108. package/dist/types.js.map +1 -1
  109. package/dist/ui/interaction.d.ts +1 -1
  110. package/dist/ui/interaction.js.map +1 -1
  111. package/dist/util/animation.d.ts +1 -1
  112. package/dist/util/animation.js.map +1 -1
  113. package/dist/wasm/isard_tiles3d.d.ts +181 -0
  114. package/dist/wasm/isard_tiles3d.js +387 -0
  115. package/dist/wasm/{isard_core.d.ts → isard_webgl2.d.ts} +387 -182
  116. package/dist/wasm/{isard_core.js → isard_webgl2.js} +2087 -324
  117. package/dist/wasm/{isard.d.ts → isard_webgpu.d.ts} +195 -358
  118. package/dist/wasm/{isard.js → isard_webgpu.js} +1320 -1042
  119. package/package.json +4 -3
  120. package/vite.js +5 -4
  121. package/dist/isard_bg.wasm +0 -0
  122. package/dist/isard_core_bg.wasm +0 -0
@@ -1,10 +1,16 @@
1
- /* @ts-self-types="./isard_core.d.ts" */
1
+ /* @ts-self-types="./isard_webgl2.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
@@ -173,18 +181,36 @@ export class Engine {
173
181
  }
174
182
  return ret[0] >>> 0;
175
183
  }
184
+ /**
185
+ * A glTF / GLB model (its URL, a `blob:` one for data of the page) drawn at each instance of `instances`
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
189
+ * @param {string} url
190
+ * @param {Float64Array} instances
191
+ * @param {boolean} ground
192
+ * @returns {number}
193
+ */
194
+ addModels(url, instances, ground) {
195
+ const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
196
+ const len0 = WASM_VECTOR_LEN;
197
+ const ptr1 = passArrayF64ToWasm0(instances, wasm.__wbindgen_malloc);
198
+ const len1 = WASM_VECTOR_LEN;
199
+ const ret = wasm.engine_addModels(this.__wbg_ptr, ptr0, len0, ptr1, len1, ground);
200
+ return ret >>> 0;
201
+ }
176
202
  /**
177
203
  * Network of `mercator.length / 2` nodes (Mercator [0, 1], y towards the south, interleaved: converted by the
178
204
  * JavaScript side, where `Math.tan` and `Math.log` are much faster than in WebAssembly) and `edges.length / 2`
179
- * edges (node index pairs, interleaved). `line_start` and `line_points`: the line of each edge from A to B, points
180
- * `line_start[e] .. line_start[e + 1]` of `line_points` (Mercator, interleaved; straight if fewer than two). `costs`: per edge, the
181
- * 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.
182
209
  *
183
210
  * # Errors
184
211
  *
185
- * Throws (to JavaScript) when `style` is not 25 numbers, `edges` is not node pairs or names a node past
186
- * those of `mercator`, the nodes or edges need a table texture past the GPU's `MAX_TEXTURE_SIZE`, or when
187
- * 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
188
214
  * @param {Float64Array} mercator
189
215
  * @param {Uint32Array} edges
190
216
  * @param {Uint32Array | null | undefined} line_start
@@ -212,14 +238,25 @@ export class Engine {
212
238
  }
213
239
  return ret[0] >>> 0;
214
240
  }
241
+ /**
242
+ * A COPC point cloud from its URL (HTTP range requests). `resolve(wkt)` gives the CRS of the file from its WKT
243
+ * (undefined if it has none): its inverse projection, whether its altitudes are above the geoid, the metres of
244
+ * a unit of z; it may throw (an unknown CRS), the layer then stays empty
245
+ * The file is read later: a bad file, or a `resolve` that throws, leaves the layer empty
246
+ * @param {string} url
247
+ * @param {(wkt: string | undefined) => PointCloudCrs} resolve
248
+ * @returns {number}
249
+ */
250
+ addPointCloud(url, resolve) {
251
+ const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
252
+ const len0 = WASM_VECTOR_LEN;
253
+ const ret = wasm.engine_addPointCloud(this.__wbg_ptr, ptr0, len0, resolve);
254
+ return ret >>> 0;
255
+ }
215
256
  /**
216
257
  * Raster tiles in Web Mercator; `url` holds {z}, {x} and {y}. `size`: side of the tiles' textures (256 by
217
258
  * default); `loader`: draws each tile instead of fetching `url`, `(z, x, y, signal) => Promise<ImageBitmap |
218
259
  * null>`, an image of `size` × `size` (null: nothing there); `ground: false`: draped on 3D layers only
219
- *
220
- * # Errors
221
- *
222
- * Throws (to JavaScript) when the texture holding the layer's tiles cannot be created
223
260
  * @param {string} url
224
261
  * @param {number} min_z
225
262
  * @param {number} max_z
@@ -234,18 +271,14 @@ export class Engine {
234
271
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
235
272
  const len0 = WASM_VECTOR_LEN;
236
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);
237
- if (ret[2]) {
238
- throw takeFromExternrefTable0(ret[1]);
239
- }
240
- return ret[0] >>> 0;
274
+ return ret >>> 0;
241
275
  }
242
276
  /**
243
277
  * An empty symbol layer
244
278
  *
245
279
  * # Errors
246
280
  *
247
- * Throws (to JavaScript) when a WebGL object cannot be created or a shader fails to compile (the error carries its
248
- * info log)
281
+ * Never in practice: its tables start empty
249
282
  * @returns {number}
250
283
  */
251
284
  addSymbols() {
@@ -255,13 +288,30 @@ export class Engine {
255
288
  }
256
289
  return ret[0] >>> 0;
257
290
  }
291
+ /**
292
+ * 3D Tiles (b3dm / glb textured meshes, external tilesets) from the URL of a `tileset.json`. `max_error`:
293
+ * screen-space error (CSS pixels) above which a tile is refined; 16 is the usual value, lower is finer.
294
+ * `geoid`: its heights are altitudes (NGF-IGN69), each tile raised by the RAF20 geoid onto the relief.
295
+ *
296
+ * The tileset is read later: a bad one leaves the layer empty
297
+ * @param {string} url
298
+ * @param {number} max_error
299
+ * @param {boolean | null} [geoid]
300
+ * @returns {number}
301
+ */
302
+ addTiles3d(url, max_error, geoid) {
303
+ const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
304
+ const len0 = WASM_VECTOR_LEN;
305
+ const ret = wasm.engine_addTiles3d(this.__wbg_ptr, ptr0, len0, max_error, isLikeNone(geoid) ? 0xFFFFFF : geoid ? 1 : 0);
306
+ return ret >>> 0;
307
+ }
258
308
  /**
259
309
  * An empty layer of vector tiles drawn as geometry: its style layers come with `setVectorSublayers`, its tiles
260
- * with `setVectorTile`
310
+ * with `setVectorTile` or `setVectorTileMesh`
261
311
  *
262
312
  * # Errors
263
313
  *
264
- * Throws (to JavaScript) when a shader fails to compile (the error carries its info log)
314
+ * Never in practice: the layer starts empty
265
315
  * @returns {number}
266
316
  */
267
317
  addVectorTiles() {
@@ -271,6 +321,22 @@ export class Engine {
271
321
  }
272
322
  return ret[0] >>> 0;
273
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
+ }
274
340
  /**
275
341
  * Longitudes and latitudes the view covers on the ground, `[west, south, east, north]` (degrees): the screen's
276
342
  * border cast on the ground, or on the far plane where it passes the horizon
@@ -290,6 +356,12 @@ export class Engine {
290
356
  const ret = wasm.engine_camera(this.__wbg_ptr);
291
357
  return ret;
292
358
  }
359
+ /**
360
+ * Removes the panorama
361
+ */
362
+ clearPanorama() {
363
+ wasm.engine_clearPanorama(this.__wbg_ptr);
364
+ }
293
365
  /**
294
366
  * The turns go around the screen center again
295
367
  */
@@ -309,7 +381,23 @@ export class Engine {
309
381
  wasm.engine_clearViewshed(this.__wbg_ptr);
310
382
  }
311
383
  /**
312
- * 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
313
401
  * longitude, latitude (degrees) and altitude (metres): x east, y north, z up, in metres. Undefined outside the
314
402
  * callback of a custom layer. Static: the engine is borrowed while it draws
315
403
  * @param {number} lon
@@ -349,9 +437,15 @@ export class Engine {
349
437
  return ret;
350
438
  }
351
439
  /**
352
- * Position under a screen point (CSS pixels), undefined above the horizon; on the relief itself: from the copy of
353
- * its tiles kept on the CPU, the drawn ground read back from the GPU only where none is there (a read back waits
354
- * 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
355
449
  * @param {number} x
356
450
  * @param {number} y
357
451
  * @returns {[lon: number, lat: number] | undefined}
@@ -361,8 +455,8 @@ export class Engine {
361
455
  return ret;
362
456
  }
363
457
  /**
364
- * Colors an extrusion layer by the node values of network layer `network` (undefined: by its own values):
365
- * 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`),
366
460
  * through the layer's ramp, up to `max` (above: its own color)
367
461
  * @param {number} id
368
462
  * @param {number | null | undefined} network
@@ -372,9 +466,9 @@ export class Engine {
372
466
  wasm.engine_linkExtrusionNetwork(this.__wbg_ptr, id, isLikeNone(network) ? Number.MAX_SAFE_INTEGER : (network) >>> 0, max);
373
467
  }
374
468
  /**
375
- * Model-view-projection matrix (16 numbers, column-major) of the local frame at a longitude, latitude (degrees)
376
- * and altitude (metres), x east, y north, z up, in metres, for the last frame drawn (else the camera): the 3D
377
- * 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
378
472
  * @param {number} lon
379
473
  * @param {number} lat
380
474
  * @param {number} altitude
@@ -386,6 +480,25 @@ export class Engine {
386
480
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
387
481
  return v1;
388
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
+ }
491
+ /**
492
+ * The GPU memory of the layers the budget counts (`setMemoryBudget`): two numbers a layer, its id and its bytes
493
+ * (a raster's pool, the tiles of a 3D Tiles layer or a point cloud), the relief last with id 0
494
+ * @returns {Float64Array}
495
+ */
496
+ memory() {
497
+ const ret = wasm.engine_memory(this.__wbg_ptr);
498
+ var v1 = getArrayF64FromWasm0(ret[0], ret[1]).slice();
499
+ wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
500
+ return v1;
501
+ }
389
502
  /**
390
503
  * Moves a layer to a drawing position (0 = bottom)
391
504
  * @param {number} id
@@ -403,26 +516,6 @@ export class Engine {
403
516
  const ret = wasm.engine_networkStats(this.__wbg_ptr, id);
404
517
  return ret;
405
518
  }
406
- /**
407
- * `redraw` is called when the engine needs a new frame (a tile arrived); `antialias`: multisampled (default true)
408
- *
409
- * # Errors
410
- *
411
- * Throws (to JavaScript) when the canvas gives no WebGL2 context ("WebGL2 is not available"), or when a WebGL
412
- * object of the globe, the sky or the raster pass cannot be created or one of their shaders fails to compile
413
- * @param {HTMLCanvasElement} canvas
414
- * @param {() => void} redraw
415
- * @param {boolean | null} [antialias]
416
- */
417
- constructor(canvas, redraw, antialias) {
418
- const ret = wasm.engine_new(canvas, redraw, isLikeNone(antialias) ? 0xFFFFFF : antialias ? 1 : 0);
419
- if (ret[2]) {
420
- throw takeFromExternrefTable0(ret[1]);
421
- }
422
- this.__wbg_ptr = ret[0];
423
- EngineFinalization.register(this, this.__wbg_ptr, this);
424
- return this;
425
- }
426
519
  /**
427
520
  * Drags the ground from one screen point to another (CSS pixels); in relief, the ground point grabbed stays
428
521
  * under the cursor
@@ -435,30 +528,42 @@ export class Engine {
435
528
  wasm.engine_pan(this.__wbg_ptr, x0, y0, x1, y1);
436
529
  }
437
530
  /**
438
- * Feature under a screen point (CSS pixels), or the nearest one within `radius` CSS pixels: its layer and its
439
- * index there (the edge of a network, the feature of a line, circle or fill layer), undefined if none. The
440
- * pickable layers are drawn with each feature colored by its number; then the fills are tested on the ground.
441
- * `only`: the ids of the layers to look in (all if undefined): the others are not drawn and hide nothing.
442
- * Reads the pixels back at once (the GPU finishes its work first): for clicks; `requestPick` for the hover
443
- * @param {number} x
444
- * @param {number} y
445
- * @param {number | null} [radius]
446
- * @param {Uint32Array | null} [only]
447
- * @returns {PickHit | undefined}
531
+ * What a point cloud says of itself, undefined before its head is read
532
+ * @param {number} id
533
+ * @returns {PointCloudInfo | undefined}
448
534
  */
449
- pick(x, y, radius, only) {
450
- var ptr0 = isLikeNone(only) ? 0 : passArray32ToWasm0(only, wasm.__wbindgen_malloc);
451
- var len0 = WASM_VECTOR_LEN;
452
- const ret = wasm.engine_pick(this.__wbg_ptr, x, y, !isLikeNone(radius), isLikeNone(radius) ? 0 : radius, ptr0, len0);
535
+ pointCloudInfo(id) {
536
+ const ret = wasm.engine_pointCloudInfo(this.__wbg_ptr, id);
537
+ return ret;
538
+ }
539
+ /**
540
+ * The point of a point cloud picked by `pollPick` (its index there): read back with the answer; undefined for
541
+ * another
542
+ * @param {number} id
543
+ * @param {number} index
544
+ * @returns {PointCloudPoint | undefined}
545
+ */
546
+ pointCloudPoint(id, index) {
547
+ const ret = wasm.engine_pointCloudPoint(this.__wbg_ptr, id, index);
548
+ return ret;
549
+ }
550
+ /**
551
+ * Counters of a point cloud layer, undefined if there is none with this id
552
+ * @param {number} id
553
+ * @returns {PointCloudStats | undefined}
554
+ */
555
+ pointCloudStats(id) {
556
+ const ret = wasm.engine_pointCloudStats(this.__wbg_ptr, id);
453
557
  return ret;
454
558
  }
455
559
  /**
456
- * The answer to the last `requestPick` once the GPU has delivered it (then forgotten), undefined while it is not
457
- * there yet (or nothing was asked, or the context was lost)
560
+ * The answer to request `id` once the GPU has delivered it (then forgotten), undefined while it is not there yet
561
+ * (or for a request given up)
562
+ * @param {number} id
458
563
  * @returns {PickResult | undefined}
459
564
  */
460
- pollPick() {
461
- const ret = wasm.engine_pollPick(this.__wbg_ptr);
565
+ pollPick(id) {
566
+ const ret = wasm.engine_pollPick(this.__wbg_ptr, id);
462
567
  return ret;
463
568
  }
464
569
  /**
@@ -500,7 +605,7 @@ export class Engine {
500
605
  wasm.engine_removeExtrusionBatch(this.__wbg_ptr, id, key);
501
606
  }
502
607
  /**
503
- * Removes a layer and frees its GPU objects; the other layers forget it (a layer that referred to it)
608
+ * Removes a layer and frees its GPU objects (as it drops)
504
609
  * @param {number} id
505
610
  */
506
611
  removeLayer(id) {
@@ -515,8 +620,8 @@ export class Engine {
515
620
  wasm.engine_removeVectorTile(this.__wbg_ptr, id, key);
516
621
  }
517
622
  /**
518
- * Draws a frame: the backdrop, the ground and the layers over it bottom to top, then the panorama and the
519
- * viewshed; returns true while tiles are still loading (a new frame will be asked through `redraw`)
623
+ * Draws a frame: the backdrop, the ground; returns true while tiles are still loading (a new frame will be asked
624
+ * through `redraw`)
520
625
  * @returns {boolean}
521
626
  */
522
627
  render() {
@@ -524,20 +629,21 @@ export class Engine {
524
629
  return ret !== 0;
525
630
  }
526
631
  /**
527
- * Asks what is under a screen point without waiting for the GPU (as `pick`, with the position there): the
528
- * picking pass is drawn now and read back into a buffer; `pollPick` gives the answer on a later frame. A new
529
- * request replaces the one in flight. Returns false if nothing could be asked (no WebGL2 fence)
632
+ * Asks what is under a screen point (CSS pixels), or nearest to it within `radius` CSS pixels, without waiting
633
+ * for the GPU: the picking pass is drawn now, its pixels read back later; `pollPick` gives the answer. `only`: the
634
+ * ids of the layers to look in (all if undefined): the others are not drawn and hide nothing. The request's
635
+ * number, never 0
530
636
  * @param {number} x
531
637
  * @param {number} y
532
638
  * @param {number | null} [radius]
533
639
  * @param {Uint32Array | null} [only]
534
- * @returns {boolean}
640
+ * @returns {number}
535
641
  */
536
642
  requestPick(x, y, radius, only) {
537
643
  var ptr0 = isLikeNone(only) ? 0 : passArray32ToWasm0(only, wasm.__wbindgen_malloc);
538
644
  var len0 = WASM_VECTOR_LEN;
539
645
  const ret = wasm.engine_requestPick(this.__wbg_ptr, x, y, !isLikeNone(radius), isLikeNone(radius) ? 0 : radius, ptr0, len0);
540
- return ret !== 0;
646
+ return ret >>> 0;
541
647
  }
542
648
  /**
543
649
  * Viewport in CSS pixels and device pixel ratio
@@ -579,8 +685,7 @@ export class Engine {
579
685
  * The body the map is drawn on: its equatorial radius (metres) and flattening (0 for a sphere), the halo of its
580
686
  * atmosphere around the globe (RGB 0-1 and its strength, 4 numbers; `undefined` for an airless body), and the
581
687
  * lowest and highest altitudes of its ground (metres: what its relief may raise into view). WGS 84, the Earth's
582
- * blue halo and the range of its relief worldwide (-450 m to 8900 m) by default; set before the layers and the
583
- * relief, whose shaders may take its size (`ISARD_CIRCUMFERENCE` of the ground layers)
688
+ * blue halo and the range of its relief worldwide (-450 m to 8900 m) by default
584
689
  * @param {number} radius
585
690
  * @param {number} flattening
586
691
  * @param {Float32Array | null | undefined} halo
@@ -625,13 +730,23 @@ export class Engine {
625
730
  const len1 = WASM_VECTOR_LEN;
626
731
  wasm.engine_setCircles(this.__wbg_ptr, id, ptr0, len0, ptr1, len1);
627
732
  }
733
+ /**
734
+ * A raster layer draped on the roofs, or all the faces, of a 3D Tiles layer, an extrusion layer, a vector tiles
735
+ * layer's buildings or a model layer (`raster` undefined: none)
736
+ * @param {number} id
737
+ * @param {number | null | undefined} raster
738
+ * @param {boolean} all_faces
739
+ * @param {number} opacity
740
+ */
741
+ setDrape(id, raster, all_faces, opacity) {
742
+ wasm.engine_setDrape(this.__wbg_ptr, id, isLikeNone(raster) ? Number.MAX_SAFE_INTEGER : (raster) >>> 0, all_faces, opacity);
743
+ }
628
744
  /**
629
745
  * Anchors of batch `key` on the linked network: per feature, node A, node B, cost from A, cost from B
630
746
  *
631
747
  * # Errors
632
748
  *
633
- * Throws (to JavaScript) when the batch's features need an anchor texture past the GPU's
634
- * `MAX_TEXTURE_SIZE`, or when it cannot be created
749
+ * Throws (to JavaScript) when the batch's features need a table past the GPU's largest texture
635
750
  * @param {number} id
636
751
  * @param {number} key
637
752
  * @param {Float32Array} anchors
@@ -650,8 +765,7 @@ export class Engine {
650
765
  *
651
766
  * # Errors
652
767
  *
653
- * Throws (to JavaScript) when a WebGL buffer or vertex array of the batch cannot be created, or when
654
- * `feature_count` features need a table texture past the GPU's `MAX_TEXTURE_SIZE`
768
+ * Throws (to JavaScript) when `feature_count` features need a table past the GPU's largest texture
655
769
  * @param {number} id
656
770
  * @param {number} key
657
771
  * @param {Float64Array} points
@@ -879,7 +993,7 @@ export class Engine {
879
993
  *
880
994
  * # Errors
881
995
  *
882
- * Throws (to JavaScript) as `setGlyphPages` does: a size that is not positive, or the texture not created
996
+ * Throws (to JavaScript) as `setGlyphPages` does
883
997
  * @param {number} width
884
998
  * @param {number} height
885
999
  * @param {Uint8Array | null} [data]
@@ -899,8 +1013,8 @@ export class Engine {
899
1013
  *
900
1014
  * # Errors
901
1015
  *
902
- * Throws (to JavaScript) when `width` or `height` is not positive (or their product overflows), `pages`
903
- * is not 1 to 256, or the atlas texture cannot be created
1016
+ * Throws (to JavaScript) when `width` or `height` is not positive or past the GPU's largest texture, or `pages`
1017
+ * is not 1 to 256
904
1018
  * @param {number} width
905
1019
  * @param {number} height
906
1020
  * @param {number} pages
@@ -923,42 +1037,40 @@ export class Engine {
923
1037
  wasm.engine_setGroundBounds(this.__wbg_ptr, id, min_x, min_y, max_x, max_y);
924
1038
  }
925
1039
  /**
926
- * Creates the texture of sampler `name` (`format`: r8, r8ui, r16ui, r16i, r32ui, r32f, rg16ui, rg32f, rgba8,
927
- * rgba8ui, rgba16ui, rgba32f; `depth` 0 for 2D, else a 2D array of that many layers; `linear` filtering for the
928
- * non-integer formats); `data`: its texels as bytes, or undefined for an empty texture
1040
+ * Creates the texture `name` of a ground layer (`format`: r8, r8ui, r16ui, r16i, r32ui, r32f, rg16ui, rg32f,
1041
+ * rgba8, rgba8ui, rgba16ui, rgba32f; `depth` 0 for 2D, else a 2D array of that many layers); `data`: its texels
1042
+ * as bytes, or undefined for an empty texture
929
1043
  *
930
1044
  * # Errors
931
1045
  *
932
- * Throws (to JavaScript) on an unknown `format`, a size not positive (or overflowing), `data` shorter
933
- * than the texels, more textures than the layer takes, or a texture WebGL cannot create
1046
+ * Throws (to JavaScript) on an unknown `format`, a size of 0, `data` shorter than the texels, a name WGSL does not
1047
+ * take, or more textures than the layer takes
934
1048
  * @param {number} id
935
1049
  * @param {string} name
936
1050
  * @param {string} format
937
1051
  * @param {number} width
938
1052
  * @param {number} height
939
1053
  * @param {number} depth
940
- * @param {boolean} linear
941
1054
  * @param {Uint8Array | null} [data]
942
1055
  */
943
- setGroundTexture(id, name, format, width, height, depth, linear, data) {
1056
+ setGroundTexture(id, name, format, width, height, depth, data) {
944
1057
  const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
945
1058
  const len0 = WASM_VECTOR_LEN;
946
1059
  const ptr1 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
947
1060
  const len1 = WASM_VECTOR_LEN;
948
1061
  var ptr2 = isLikeNone(data) ? 0 : passArray8ToWasm0(data, wasm.__wbindgen_malloc);
949
1062
  var len2 = WASM_VECTOR_LEN;
950
- const ret = wasm.engine_setGroundTexture(this.__wbg_ptr, id, ptr0, len0, ptr1, len1, width, height, depth, linear, ptr2, len2);
1063
+ const ret = wasm.engine_setGroundTexture(this.__wbg_ptr, id, ptr0, len0, ptr1, len1, width, height, depth, ptr2, len2);
951
1064
  if (ret[1]) {
952
1065
  throw takeFromExternrefTable0(ret[0]);
953
1066
  }
954
1067
  }
955
1068
  /**
956
- * A uniform of a ground layer's code, as numbers
1069
+ * A uniform of a ground layer's code, as numbers (column major for a matrix)
957
1070
  *
958
1071
  * # Errors
959
1072
  *
960
- * Throws (to JavaScript) when the shader has no uniform `name` (one its code does not use is removed
961
- * by the compiler)
1073
+ * Throws (to JavaScript) when no uniform `name` was declared, or for a count of numbers not its type's
962
1074
  * @param {number} id
963
1075
  * @param {string} name
964
1076
  * @param {Float64Array} values
@@ -987,8 +1099,7 @@ export class Engine {
987
1099
  *
988
1100
  * # Errors
989
1101
  *
990
- * Throws (to JavaScript) when `width` or `height` is not positive (or their product overflows), or the
991
- * atlas texture cannot be created
1102
+ * Throws (to JavaScript) when `width` or `height` is not positive or past the GPU's largest texture
992
1103
  * @param {number} width
993
1104
  * @param {number} height
994
1105
  */
@@ -1020,8 +1131,8 @@ export class Engine {
1020
1131
  *
1021
1132
  * # Errors
1022
1133
  *
1023
- * Throws (to JavaScript) when the lines need a table texture past the GPU's `MAX_TEXTURE_SIZE`, or
1024
- * when it cannot be created; the layer then keeps its lines
1134
+ * Throws (to JavaScript) when the lines need a table past the GPU's largest texture; the layer then keeps its
1135
+ * lines
1025
1136
  * @param {number} id
1026
1137
  * @param {Float64Array} points
1027
1138
  * @param {Uint32Array} start
@@ -1050,6 +1161,50 @@ export class Engine {
1050
1161
  setMaxPitch(max) {
1051
1162
  wasm.engine_setMaxPitch(this.__wbg_ptr, max);
1052
1163
  }
1164
+ /**
1165
+ * The GPU memory the layers' tiles (3D Tiles, point clouds) and the rasters' pools may hold all together (bytes):
1166
+ * past it the tiles drawn least recently are unloaded, whichever their layer. A raster's pool takes its memory
1167
+ * when it is made: one made later takes the budget as it is then
1168
+ * @param {number} bytes
1169
+ */
1170
+ setMemoryBudget(bytes) {
1171
+ wasm.engine_setMemoryBudget(this.__wbg_ptr, bytes);
1172
+ }
1173
+ /**
1174
+ * Lights at night the part of a model layer's model from `from` metres up (a street lamp's head) in `r, g, b`;
1175
+ * `from` not a number: none
1176
+ * @param {number} id
1177
+ * @param {number} from
1178
+ * @param {number} r
1179
+ * @param {number} g
1180
+ * @param {number} b
1181
+ */
1182
+ setModelGlow(id, from, r, g, b) {
1183
+ wasm.engine_setModelGlow(this.__wbg_ptr, id, from, r, g, b);
1184
+ }
1185
+ /**
1186
+ * Highlights the feature `feature` of a model layer's model (an IFC model's element) in `r, g, b`; `feature` not a
1187
+ * number: none
1188
+ * @param {number} id
1189
+ * @param {number} feature
1190
+ * @param {number} r
1191
+ * @param {number} g
1192
+ * @param {number} b
1193
+ */
1194
+ setModelHighlight(id, feature, r, g, b) {
1195
+ wasm.engine_setModelHighlight(this.__wbg_ptr, id, feature, r, g, b);
1196
+ }
1197
+ /**
1198
+ * Replaces the instances of a model layer (as for `addModels`) and the reference of their altitudes
1199
+ * @param {number} id
1200
+ * @param {Float64Array} instances
1201
+ * @param {boolean} ground
1202
+ */
1203
+ setModelInstances(id, instances, ground) {
1204
+ const ptr0 = passArrayF64ToWasm0(instances, wasm.__wbindgen_malloc);
1205
+ const len0 = WASM_VECTOR_LEN;
1206
+ wasm.engine_setModelInstances(this.__wbg_ptr, id, ptr0, len0, ground);
1207
+ }
1053
1208
  /**
1054
1209
  * Costs of a network's edges (see `addNetwork`), when the way it is travelled changes; null: interpolated values
1055
1210
  * @param {number} id
@@ -1102,10 +1257,46 @@ export class Engine {
1102
1257
  const len0 = WASM_VECTOR_LEN;
1103
1258
  wasm.engine_setNetworkValues(this.__wbg_ptr, id, ptr0, len0);
1104
1259
  }
1260
+ /**
1261
+ * The image of camera `index` of the panorama (the images sharing the size of the first), which the engine takes
1262
+ * (closes once copied)
1263
+ * @param {number} index
1264
+ * @param {ImageBitmap} image
1265
+ */
1266
+ setPanoramaImage(index, image) {
1267
+ wasm.engine_setPanoramaImage(this.__wbg_ptr, index, image);
1268
+ }
1269
+ /**
1270
+ * Shows a panorama: at `lon`, `lat` (degrees) and `height` (metres above the ellipsoid), turned by `rotation`
1271
+ * (9 numbers, row-major: its frame to east, north, up), its `cameras` (25 numbers each: rotation from the panorama
1272
+ * frame, row-major, 9; position in it, 3; focal x, y; center x, y; skew; image width, height; principal point of
1273
+ * the distortion x, y; its coefficients r³, r⁵, r⁷; its limit, pixels), a backdrop sphere of `radius` metres, at
1274
+ * `opacity`. Its images come after (`setPanoramaImage`)
1275
+ *
1276
+ * # Errors
1277
+ *
1278
+ * Throws (to JavaScript) when `rotation` holds fewer than 9 numbers
1279
+ * @param {number} lon
1280
+ * @param {number} lat
1281
+ * @param {number} height
1282
+ * @param {Float64Array} rotation
1283
+ * @param {Float64Array} cameras
1284
+ * @param {number} radius
1285
+ * @param {number} opacity
1286
+ */
1287
+ setPanorama(lon, lat, height, rotation, cameras, radius, opacity) {
1288
+ const ptr0 = passArrayF64ToWasm0(rotation, wasm.__wbindgen_malloc);
1289
+ const len0 = WASM_VECTOR_LEN;
1290
+ const ptr1 = passArrayF64ToWasm0(cameras, wasm.__wbindgen_malloc);
1291
+ const len1 = WASM_VECTOR_LEN;
1292
+ const ret = wasm.engine_setPanorama(this.__wbg_ptr, lon, lat, height, ptr0, len0, ptr1, len1, radius, opacity);
1293
+ if (ret[1]) {
1294
+ throw takeFromExternrefTable0(ret[0]);
1295
+ }
1296
+ }
1105
1297
  /**
1106
1298
  * Sets the point the next turns and tilts go around (`rotate`): what is drawn under a screen point (CSS
1107
- * pixels), a roof or a mesh as the relief. Read back from the last frame (a stall): once, where a drag starts.
1108
- * Returns whether something was drawn there; over nothing, the turns go around the center
1299
+ * pixels). Returns whether something was drawn there; over nothing, the turns go around the center
1109
1300
  * @param {number} x
1110
1301
  * @param {number} y
1111
1302
  * @returns {boolean}
@@ -1114,6 +1305,23 @@ export class Engine {
1114
1305
  const ret = wasm.engine_setPivot(this.__wbg_ptr, x, y);
1115
1306
  return ret !== 0;
1116
1307
  }
1308
+ /**
1309
+ * The style of a point cloud: 14 numbers (see `Style::parse`), the colors of the 256 classes (RGBA,
1310
+ * alpha 0 hides a class) and the ramp of the altitudes (256 RGBA texels)
1311
+ * @param {number} id
1312
+ * @param {Float64Array} style
1313
+ * @param {Uint8Array} palette
1314
+ * @param {Uint8Array} ramp
1315
+ */
1316
+ setPointCloudStyle(id, style, palette, ramp) {
1317
+ const ptr0 = passArrayF64ToWasm0(style, wasm.__wbindgen_malloc);
1318
+ const len0 = WASM_VECTOR_LEN;
1319
+ const ptr1 = passArray8ToWasm0(palette, wasm.__wbindgen_malloc);
1320
+ const len1 = WASM_VECTOR_LEN;
1321
+ const ptr2 = passArray8ToWasm0(ramp, wasm.__wbindgen_malloc);
1322
+ const len2 = WASM_VECTOR_LEN;
1323
+ wasm.engine_setPointCloudStyle(this.__wbg_ptr, id, ptr0, len0, ptr1, len1, ptr2, len2);
1324
+ }
1117
1325
  /**
1118
1326
  * Opacity and saturation (0-1) of a raster layer; nothing for another id
1119
1327
  * @param {number} id
@@ -1150,25 +1358,17 @@ export class Engine {
1150
1358
  * The sun casting shadows and the night: its azimuth (degrees clockwise from north) and altitude (degrees above
1151
1359
  * the horizon), the shadows' opacity (0 to 1; none under the horizon or not a number), how dark the night is (0 to
1152
1360
  * 1: the frame tinted, the lights of the layers on). Neither shadows nor night: nothing drawn
1153
- *
1154
- * # Errors
1155
- *
1156
- * Throws (to JavaScript) when a WebGL object cannot be created or the pass fails to compile
1157
1361
  * @param {number} azimuth
1158
1362
  * @param {number} altitude
1159
1363
  * @param {number} opacity
1160
1364
  * @param {number} night
1161
1365
  */
1162
1366
  setSun(azimuth, altitude, opacity, night) {
1163
- const ret = wasm.engine_setSun(this.__wbg_ptr, azimuth, altitude, opacity, night);
1164
- if (ret[1]) {
1165
- throw takeFromExternrefTable0(ret[0]);
1166
- }
1367
+ wasm.engine_setSun(this.__wbg_ptr, azimuth, altitude, opacity, night);
1167
1368
  }
1168
1369
  /**
1169
- * Shows `layers` on one side of a vertical line only, the others beneath on the other side (comparing two states
1170
- * of a place): left of `x` (CSS pixels from the left of the canvas), or right of it; `others` on the other side
1171
- * only (two meshes of the same place, each on its side, never drawn over each other); a non-finite `x` stops
1370
+ * Shows `layers` left of `x` (CSS pixels from the left of the canvas; right of it if `right`), `others` on the
1371
+ * other side only; `x` not a number, or no layer: no swipe
1172
1372
  * @param {number} x
1173
1373
  * @param {boolean} right
1174
1374
  * @param {Uint32Array} layers
@@ -1207,8 +1407,8 @@ export class Engine {
1207
1407
  *
1208
1408
  * # Errors
1209
1409
  *
1210
- * Throws (to JavaScript) when the labels need a table texture past the GPU's `MAX_TEXTURE_SIZE`, or
1211
- * when it cannot be created; the layer then keeps its labels
1410
+ * Throws (to JavaScript) when the labels need a table past the GPU's largest texture; the layer then keeps its
1411
+ * labels
1212
1412
  * @param {number} id
1213
1413
  * @param {Float64Array} anchors
1214
1414
  * @param {Float32Array} boxes
@@ -1236,15 +1436,10 @@ export class Engine {
1236
1436
  * Relief under the raster layers, from raw altitudes (`image/x-bil;bits=32`, 256 × 256, or the same followed by
1237
1437
  * the validity mask of an `ArcGIS` raw grid): `url` is a template with `{bbox}` (WMS `GetMap` in EPSG:3857, or in
1238
1438
  * the Mercator metres of another body) or `{z}/{x}/{y}`; `undefined` turns it off. `exaggeration` scales the
1239
- * heights (1: true relief); `max_z`: finest level loaded (up to 15, from 6 on the Earth, coarser on bodies of a
1240
- * larger relief for their size: `terrain_levels`); `geoid`: altitudes raised by the RAF20 geoid height (heights
1241
- * above the ellipsoid, those of 3D Tiles; over France, on the Earth only), else left as served (the default);
1242
- * `loader`: gives the
1243
- * altitudes of each tile instead of fetching `url` (an encoding decoded by the page: Terrarium, Terrain-RGB)
1244
- *
1245
- * # Errors
1246
- *
1247
- * Throws (to JavaScript) when the texture holding the relief's tiles cannot be created
1439
+ * heights (1: true relief); `max_z`: finest level loaded; `geoid`: altitudes raised by the RAF20 geoid height
1440
+ * (heights above the ellipsoid, those of 3D Tiles; over France, on the Earth only), else left as served (the
1441
+ * default); `loader`: gives the altitudes of each tile instead of fetching `url` (an encoding decoded by the
1442
+ * page: Terrarium, Terrain-RGB)
1248
1443
  * @param {string | null | undefined} url
1249
1444
  * @param {number} exaggeration
1250
1445
  * @param {number | null | undefined} max_z
@@ -1254,21 +1449,56 @@ export class Engine {
1254
1449
  setTerrain(url, exaggeration, max_z, geoid, loader) {
1255
1450
  var ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1256
1451
  var len0 = WASM_VECTOR_LEN;
1257
- 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));
1258
- if (ret[1]) {
1259
- throw takeFromExternrefTable0(ret[0]);
1260
- }
1452
+ 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));
1453
+ }
1454
+ /**
1455
+ * Pool of workers that fetch and decode 3D Tiles content off the main thread: an object with
1456
+ * `load(id, url, transform, yUp, reload, priority) → Promise<{ anchor, primitives }>` and `abort(id)`. Without
1457
+ * it, tiles are decoded on the main thread. Set it before adding 3D Tiles layers.
1458
+ * @param {import('./isard_tiles3d.js').TileLoaderLike | null} loader
1459
+ */
1460
+ setTileLoader(loader) {
1461
+ wasm.engine_setTileLoader(this.__wbg_ptr, loader);
1462
+ }
1463
+ /**
1464
+ * Whether the walls of a 3D Tiles layer's untextured meshes show their windows: glass by day, some lit at night
1465
+ * @param {number} id
1466
+ * @param {boolean} facades
1467
+ */
1468
+ setTiles3dFacades(id, facades) {
1469
+ wasm.engine_setTiles3dFacades(this.__wbg_ptr, id, facades);
1470
+ }
1471
+ /**
1472
+ * Each feature of a 3D Tiles layer its color (null: the layer's)
1473
+ * @param {number} id
1474
+ * @param {((properties: Record<string, unknown>[] | undefined, count: number) => Uint8Array) | null} colors
1475
+ */
1476
+ setTiles3dFeatureColors(id, colors) {
1477
+ wasm.engine_setTiles3dFeatureColors(this.__wbg_ptr, id, colors);
1478
+ }
1479
+ /**
1480
+ * Screen-space error threshold, opacity, size of the points (CSS pixels, 2 if not given) and color (RGB 0-1, empty
1481
+ * for none: it tints the textures and colors the untextured meshes) of a 3D Tiles layer
1482
+ * @param {number} id
1483
+ * @param {number} max_error
1484
+ * @param {number} opacity
1485
+ * @param {number | null | undefined} point_size
1486
+ * @param {Float32Array} color
1487
+ */
1488
+ setTiles3dStyle(id, max_error, opacity, point_size, color) {
1489
+ const ptr0 = passArrayF32ToWasm0(color, wasm.__wbindgen_malloc);
1490
+ const len0 = WASM_VECTOR_LEN;
1491
+ wasm.engine_setTiles3dStyle(this.__wbg_ptr, id, max_error, opacity, !isLikeNone(point_size), isLikeNone(point_size) ? 0 : point_size, ptr0, len0);
1261
1492
  }
1262
1493
  /**
1263
1494
  * The style layers of a vector tile layer, in drawing order: per layer, its kind (0 fill, 1 line, 2 extrusion, 3
1264
- * circle), its zoom range
1265
- * (two numbers: shown from the first, included, to the second, excluded), whether it shows (0 or 1), its dashes
1266
- * (four numbers: dash, gap, dash, gap, in line widths; 0: solid), its opacity as zoom stops (four zooms then four
1267
- * values; missing: opaque), the caps of its lines' ends (0 butt, 1 round, 2 square; missing: round), whether its
1268
- * lines glow at night (streets; 0 or 1), the joins of its lines (two numbers: 0 round, 1 miter, 2 bevel, then the
1269
- * miter limit in line widths; missing: round), the translation of its fills or lines (three numbers: x and y in CSS
1270
- * 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
1271
- * fills have patterns (0 or 1)
1495
+ * circle), its zoom range (two numbers: shown from the first, included, to the second, excluded), whether it shows
1496
+ * (0 or 1), its dashes (four numbers: dash, gap, dash, gap, in line widths; 0: solid), its opacity as zoom stops
1497
+ * (four zooms then four values; missing: opaque), the caps of its lines' ends (0 butt, 1 round, 2 square; missing:
1498
+ * round), whether its lines glow at night (streets; 0 or 1), the joins of its lines (two numbers: 0 round, 1
1499
+ * miter, 2 bevel, then the miter limit in line widths; missing: round), the translation of its fills or lines
1500
+ * (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
1501
+ * screen; missing: none), whether its fills have patterns (0 or 1)
1272
1502
  * @param {number} id
1273
1503
  * @param {Uint8Array} kinds
1274
1504
  * @param {Float64Array} zooms
@@ -1306,18 +1536,18 @@ export class Engine {
1306
1536
  }
1307
1537
  /**
1308
1538
  * Adds or replaces tile `key` of a vector tile layer ready for the GPU, as the basemap workers make it (the
1309
- * tessellation module): its polygons as for `setVectorTile` (picked here; their prisms built here if drawn in
1310
- * relief while `prism` is false), the vertices of its fills (`shapes::Vertex` as bytes, each with its feature),
1311
- * their triangles, per sublayer its top cap and the rest of its prism (`fill_ranges`: four numbers, first and
1312
- * end of each), its line pieces (`pieces::Piece` as bytes), the line table (feature and length of each line),
1539
+ * tessellation module): its polygons as for `setVectorTile` (their prisms built here if drawn in relief while
1540
+ * `prism` is false), the vertices of its fills (`shapes::Vertex` as bytes, each with its feature), their
1541
+ * triangles, per sublayer its top cap and the rest of its prism (`fill_ranges`: four numbers, first and end of
1542
+ * each), its line pieces (`vector_tiles::TilePiece` as bytes), the line table (feature and length of each line),
1313
1543
  * per sublayer its pieces (`line_ranges`: first, end), the blocks of its extrusion sublayers (`shapes::Block` as
1314
1544
  * bytes), their triangles, per sublayer its blocks' triangles (`block_ranges`: first, end), the extent of its
1315
1545
  * points (`bounds`: min x, min y, max x, max y), its features' sublayers (one each, as for `setVectorTile`)
1316
1546
  *
1317
1547
  * # Errors
1318
1548
  *
1319
- * Throws (to JavaScript) when the vertices, pieces or blocks are cut short, when a WebGL object of the tile cannot be
1320
- * created, or when its features or lines need a table texture past the GPU's `MAX_TEXTURE_SIZE`
1549
+ * Throws (to JavaScript) when the vertices, pieces or blocks are cut short, or when its features or lines need a
1550
+ * table past the GPU's largest texture
1321
1551
  * @param {number} id
1322
1552
  * @param {number} key
1323
1553
  * @param {Float64Array} points
@@ -1399,19 +1629,16 @@ export class Engine {
1399
1629
  * Adds or replaces tile `key` of a vector tile layer: its polygons as for `addFills` (`fill_start`: the first
1400
1630
  * polygon of each sublayer, and the end; those of an extrusion sublayer raised into blocks), its lines as for
1401
1631
  * `addLines` (`line_start`: the first line of each sublayer, and the end), its features' sublayers (one each, the
1402
- * features of a sublayer after those of the one before), styled as an
1403
- * extrusion layer's (`setFeatureStyle` with the key: a color, then a line's width or a block's height and base);
1404
- * `tile`: the corners of the tile they are cut to (west, north, east, south; empty: none), along whose edges no
1405
- * wall of a block rises; `roofs` and `roof_heights`: per polygon, the shape and height of its block's roof
1406
- * (`shapes::Roofs`: 0 flat, 1 to 5 `RoofShape::number`, 255 generated from its outline; metres, not a number: as
1407
- * its slopes make it; empty: flat), the whole outlines of the buildings the tile cuts (`roof_outlines`, interleaved
1408
- * Mercator points, `roof_outline_start`: where each polygon's starts, and the end), `roof_metres` the metres per
1409
- * Mercator unit at the tile
1632
+ * features of a sublayer after those of the one before), styled as an extrusion layer's (`setFeatureStyle` with
1633
+ * the key); `tile`: the corners of the tile they are cut to (west, north, east, south; empty: none), along whose
1634
+ * edges no wall of a block rises; `roofs` and `roof_heights`: per polygon, the shape and height of its block's
1635
+ * roof (`shapes::Roofs`), the whole outlines of the buildings the tile cuts (`roof_outlines`, interleaved Mercator
1636
+ * points, `roof_outline_start`: where each polygon's starts, and the end), `roof_metres` the metres per Mercator
1637
+ * unit at the tile
1410
1638
  *
1411
1639
  * # Errors
1412
1640
  *
1413
- * Throws (to JavaScript) when a WebGL object of the tile cannot be created, or when its features or lines need a
1414
- * table texture past the GPU's `MAX_TEXTURE_SIZE`
1641
+ * Throws (to JavaScript) when its features or lines need a table past the GPU's largest texture
1415
1642
  * @param {number} id
1416
1643
  * @param {number} key
1417
1644
  * @param {Float64Array} points
@@ -1473,11 +1700,6 @@ export class Engine {
1473
1700
  * only heading, tilt, angles of view across and up (degrees), the heading NaN to look all around. What some
1474
1701
  * observer sees is tinted with `visible`, what is hidden from all those that reach it with `hidden` (RGB 0-1),
1475
1702
  * at `opacity`; `outline` (RGB 0-1, or empty) the color of the cones' edges drawn in 3D
1476
- *
1477
- * # Errors
1478
- *
1479
- * Throws (to JavaScript) when, on the first call, a WebGL object cannot be created or a shader fails to compile
1480
- * (the error carries its info log)
1481
1703
  * @param {Float64Array} observers
1482
1704
  * @param {Float32Array} visible
1483
1705
  * @param {Float32Array} hidden
@@ -1493,10 +1715,7 @@ export class Engine {
1493
1715
  const len2 = WASM_VECTOR_LEN;
1494
1716
  const ptr3 = passArrayF32ToWasm0(outline, wasm.__wbindgen_malloc);
1495
1717
  const len3 = WASM_VECTOR_LEN;
1496
- const ret = wasm.engine_setViewshed(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, opacity, ptr3, len3);
1497
- if (ret[1]) {
1498
- throw takeFromExternrefTable0(ret[0]);
1499
- }
1718
+ wasm.engine_setViewshed(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, opacity, ptr3, len3);
1500
1719
  }
1501
1720
  /**
1502
1721
  * Lowest and highest zoom levels the camera accepts
@@ -1527,8 +1746,9 @@ export class Engine {
1527
1746
  }
1528
1747
  /**
1529
1748
  * The height above the relief (metres) of the top of what stands at a position (degrees): a roof, a mesh, 0 on
1530
- * the bare ground; undefined where nothing of the last frame is there. The scene is drawn from above into a single
1531
- * pixel and read back (a stall, cheap: one pixel to fill)
1749
+ * the bare ground; undefined where nothing of the last frame is there, or until measured: the scene is drawn
1750
+ * looking down at it after a frame and read back a frame or two later (a frame is asked for), the answer kept and
1751
+ * measured again every 250 ms at most
1532
1752
  * @param {number} lon
1533
1753
  * @param {number} lat
1534
1754
  * @returns {any}
@@ -1539,8 +1759,8 @@ export class Engine {
1539
1759
  }
1540
1760
  /**
1541
1761
  * What is drawn under a screen point (CSS pixels): longitude, latitude and its height above the relief (metres),
1542
- * on a roof, a wall or a mesh as on the ground; undefined where nothing was drawn. The scene is drawn again and
1543
- * read back (a stall): for clicks and drags
1762
+ * on a roof, a wall or a mesh as on the ground; undefined where nothing was drawn. From the last copy of the
1763
+ * scene's depth (a frame or two old, one pixel in 4 CSS pixels): at once, without waiting for the GPU
1544
1764
  * @param {number} x
1545
1765
  * @param {number} y
1546
1766
  * @returns {[lon: number, lat: number, height: number] | undefined}
@@ -1549,6 +1769,35 @@ export class Engine {
1549
1769
  const ret = wasm.engine_surface(this.__wbg_ptr, x, y);
1550
1770
  return ret;
1551
1771
  }
1772
+ /**
1773
+ * Compressed texture formats of the GPU, for the KTX2 transcoding
1774
+ * @returns {import('./isard_tiles3d.js').TextureFormats}
1775
+ */
1776
+ textureFormats() {
1777
+ const ret = wasm.engine_textureFormats(this.__wbg_ptr);
1778
+ return ret;
1779
+ }
1780
+ /**
1781
+ * The feature of a picked handle (`pick`'s index on a 3D Tiles layer): `[properties, feature]`, its properties
1782
+ * (undefined when its tile has none) and its index in its tile; undefined if the handle is not of the last picking
1783
+ * pass
1784
+ * @param {number} id
1785
+ * @param {number} index
1786
+ * @returns {[properties: Record<string, unknown> | undefined, feature: number] | undefined}
1787
+ */
1788
+ tiles3dFeature(id, index) {
1789
+ const ret = wasm.engine_tiles3dFeature(this.__wbg_ptr, id, index);
1790
+ return ret;
1791
+ }
1792
+ /**
1793
+ * Counters of a 3D Tiles layer, undefined if there is none with this id
1794
+ * @param {number} id
1795
+ * @returns {Tiles3dStats | undefined}
1796
+ */
1797
+ tiles3dStats(id) {
1798
+ const ret = wasm.engine_tiles3dStats(this.__wbg_ptr, id);
1799
+ return ret;
1800
+ }
1552
1801
  /**
1553
1802
  * A region of the first page of the glyph atlas: `width` × `height` bytes at (`x`, `y`)
1554
1803
  * @param {number} x
@@ -1581,8 +1830,8 @@ export class Engine {
1581
1830
  *
1582
1831
  * # Errors
1583
1832
  *
1584
- * Throws (to JavaScript) when there is no texture `name`, or when the region is out of its bounds or
1585
- * `data` holds too few bytes
1833
+ * Throws (to JavaScript) when there is no texture `name`, or when the region is out of its bounds or `data` holds
1834
+ * too few bytes
1586
1835
  * @param {number} id
1587
1836
  * @param {string} name
1588
1837
  * @param {number} x
@@ -1615,22 +1864,11 @@ export class Engine {
1615
1864
  const len0 = WASM_VECTOR_LEN;
1616
1865
  wasm.engine_updateIconAtlas(this.__wbg_ptr, x, y, width, height, ptr0, len0);
1617
1866
  }
1618
- /**
1619
- * 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
1620
- * several frames); whether some are left. Its blocks are drawn once they are all there
1621
- * @param {number} id
1622
- * @param {number} key
1623
- * @returns {boolean}
1624
- */
1625
- uploadVectorTile(id, key) {
1626
- const ret = wasm.engine_uploadVectorTile(this.__wbg_ptr, id, key);
1627
- return ret !== 0;
1628
- }
1629
1867
  /**
1630
1868
  * Vector tiles (512 CSS pixels across at their level, as `MapLibre`'s) for the view of the last frame (else the
1631
1869
  * camera's), levels `min_z` to `max_z`, three numbers per tile (z, x, y), the nearest to the eye first: what a
1632
- * vector tile layer draws (`addVectorTiles`), coarser far away in a tilted view as the raster layers, and no
1633
- * farther than `reach` times the screen center's distance (infinite: to the horizon)
1870
+ * vector tile layer draws, coarser far away in a tilted view as the raster layers, and no farther than `reach`
1871
+ * times the screen center's distance (infinite: to the horizon)
1634
1872
  * @param {number} min_z
1635
1873
  * @param {number} max_z
1636
1874
  * @param {number} reach
@@ -1668,6 +1906,14 @@ if (Symbol.dispose) Engine.prototype[Symbol.dispose] = Engine.prototype.free;
1668
1906
  function __wbg_get_imports() {
1669
1907
  const import0 = {
1670
1908
  __proto__: null,
1909
+ __wbg_Window_a2a6c4d665047b14: function(arg0) {
1910
+ const ret = arg0.Window;
1911
+ return ret;
1912
+ },
1913
+ __wbg_WorkerGlobalScope_2664448a7c667d67: function(arg0) {
1914
+ const ret = arg0.WorkerGlobalScope;
1915
+ return ret;
1916
+ },
1671
1917
  __wbg___wbindgen_boolean_get_5b446f51afd21013: function(arg0) {
1672
1918
  const v = arg0;
1673
1919
  const ret = typeof(v) === 'boolean' ? v : undefined;
@@ -1680,6 +1926,10 @@ function __wbg_get_imports() {
1680
1926
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1681
1927
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1682
1928
  },
1929
+ __wbg___wbindgen_is_falsy_16bd49b68658263e: function(arg0) {
1930
+ const ret = !arg0;
1931
+ return ret;
1932
+ },
1683
1933
  __wbg___wbindgen_is_function_1f9d30630b8b1d3d: function(arg0) {
1684
1934
  const ret = typeof(arg0) === 'function';
1685
1935
  return ret;
@@ -1688,6 +1938,15 @@ function __wbg_get_imports() {
1688
1938
  const ret = arg0 === null;
1689
1939
  return ret;
1690
1940
  },
1941
+ __wbg___wbindgen_is_object_3c45d4f2dde4e749: function(arg0) {
1942
+ const val = arg0;
1943
+ const ret = typeof(val) === 'object' && val !== null;
1944
+ return ret;
1945
+ },
1946
+ __wbg___wbindgen_is_string_90b56bc79aad6f6c: function(arg0) {
1947
+ const ret = typeof(arg0) === 'string';
1948
+ return ret;
1949
+ },
1691
1950
  __wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(arg0) {
1692
1951
  const ret = arg0 === undefined;
1693
1952
  return ret;
@@ -1725,6 +1984,10 @@ function __wbg_get_imports() {
1725
1984
  __wbg_activeTexture_2fad46c01cafe6b1: function(arg0, arg1) {
1726
1985
  arg0.activeTexture(arg1 >>> 0);
1727
1986
  },
1987
+ __wbg_apply_a910804df6e1e433: function() { return handleError(function (arg0, arg1, arg2) {
1988
+ const ret = arg0.apply(arg1, arg2);
1989
+ return ret;
1990
+ }, arguments); },
1728
1991
  __wbg_arrayBuffer_f07be74819944ea2: function() { return handleError(function (arg0) {
1729
1992
  const ret = arg0.arrayBuffer();
1730
1993
  return ret;
@@ -1735,6 +1998,22 @@ function __wbg_get_imports() {
1735
1998
  __wbg_attachShader_9567ae57af6746d5: function(arg0, arg1, arg2) {
1736
1999
  arg0.attachShader(arg1, arg2);
1737
2000
  },
2001
+ __wbg_beginQuery_eaee271e7ccd67d1: function(arg0, arg1, arg2) {
2002
+ arg0.beginQuery(arg1 >>> 0, arg2);
2003
+ },
2004
+ __wbg_beginRenderPass_3c53642423af50dc: function() { return handleError(function (arg0, arg1) {
2005
+ const ret = arg0.beginRenderPass(arg1);
2006
+ return ret;
2007
+ }, arguments); },
2008
+ __wbg_bindAttribLocation_6a6f66cbe96ef24e: function(arg0, arg1, arg2, arg3, arg4) {
2009
+ arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
2010
+ },
2011
+ __wbg_bindAttribLocation_ade0ee986a734cdf: function(arg0, arg1, arg2, arg3, arg4) {
2012
+ arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
2013
+ },
2014
+ __wbg_bindBufferRange_a5aef3642afdabc8: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2015
+ arg0.bindBufferRange(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
2016
+ },
1738
2017
  __wbg_bindBuffer_0324f62b876c4403: function(arg0, arg1, arg2) {
1739
2018
  arg0.bindBuffer(arg1 >>> 0, arg2);
1740
2019
  },
@@ -1753,6 +2032,9 @@ function __wbg_get_imports() {
1753
2032
  __wbg_bindRenderbuffer_e0c5aeef245a913a: function(arg0, arg1, arg2) {
1754
2033
  arg0.bindRenderbuffer(arg1 >>> 0, arg2);
1755
2034
  },
2035
+ __wbg_bindSampler_9b9743706aee71d1: function(arg0, arg1, arg2) {
2036
+ arg0.bindSampler(arg1 >>> 0, arg2);
2037
+ },
1756
2038
  __wbg_bindTexture_3cf008f256f3ed99: function(arg0, arg1, arg2) {
1757
2039
  arg0.bindTexture(arg1 >>> 0, arg2);
1758
2040
  },
@@ -1765,6 +2047,18 @@ function __wbg_get_imports() {
1765
2047
  __wbg_bindVertexArray_f58af0a346185ec5: function(arg0, arg1) {
1766
2048
  arg0.bindVertexArray(arg1);
1767
2049
  },
2050
+ __wbg_blendColor_68fc6d6454f2128d: function(arg0, arg1, arg2, arg3, arg4) {
2051
+ arg0.blendColor(arg1, arg2, arg3, arg4);
2052
+ },
2053
+ __wbg_blendColor_a6256f41d1925899: function(arg0, arg1, arg2, arg3, arg4) {
2054
+ arg0.blendColor(arg1, arg2, arg3, arg4);
2055
+ },
2056
+ __wbg_blendEquationSeparate_0a17fa4ea863d445: function(arg0, arg1, arg2) {
2057
+ arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
2058
+ },
2059
+ __wbg_blendEquationSeparate_fa2d4e5dde5ad8b3: function(arg0, arg1, arg2) {
2060
+ arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
2061
+ },
1768
2062
  __wbg_blendEquation_5fb8aee6a55cf900: function(arg0, arg1) {
1769
2063
  arg0.blendEquation(arg1 >>> 0);
1770
2064
  },
@@ -1783,6 +2077,9 @@ function __wbg_get_imports() {
1783
2077
  __wbg_blendFunc_589e4252bb396484: function(arg0, arg1, arg2) {
1784
2078
  arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
1785
2079
  },
2080
+ __wbg_blitFramebuffer_7b39bfec6cfece56: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
2081
+ arg0.blitFramebuffer(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0);
2082
+ },
1786
2083
  __wbg_blob_232135c7e297b861: function() { return handleError(function (arg0) {
1787
2084
  const ret = arg0.blob();
1788
2085
  return ret;
@@ -1805,26 +2102,71 @@ function __wbg_get_imports() {
1805
2102
  __wbg_bufferSubData_8609cd8a2c013181: function(arg0, arg1, arg2, arg3) {
1806
2103
  arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
1807
2104
  },
1808
- __wbg_byteLength_27689b065d089962: function(arg0) {
1809
- const ret = arg0.byteLength;
2105
+ __wbg_buffer_6aace268d05b9dbe: function(arg0) {
2106
+ const ret = arg0.buffer;
1810
2107
  return ret;
1811
2108
  },
1812
- __wbg_call_01721c8c75200a10: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1813
- const ret = arg0.call(arg1, arg2, arg3, arg4, arg5);
2109
+ __wbg_buffer_9cb148c510fd44ba: function(arg0) {
2110
+ const ret = arg0.buffer;
1814
2111
  return ret;
1815
- }, arguments); },
1816
- __wbg_call_6137034ef55c9d0f: function() { return handleError(function (arg0, arg1) {
1817
- const ret = arg0.call(arg1);
2112
+ },
2113
+ __wbg_byteLength_141bda7c7c28aa72: function(arg0) {
2114
+ const ret = arg0.byteLength;
1818
2115
  return ret;
1819
- }, arguments); },
1820
- __wbg_clearColor_3f6aa096dc12e8b7: function(arg0, arg1, arg2, arg3, arg4) {
1821
- arg0.clearColor(arg1, arg2, arg3, arg4);
1822
2116
  },
1823
- __wbg_clearColor_796427e8ac60fe14: function(arg0, arg1, arg2, arg3, arg4) {
1824
- arg0.clearColor(arg1, arg2, arg3, arg4);
2117
+ __wbg_byteLength_18a1704c0bf397bb: function(arg0) {
2118
+ const ret = arg0.byteLength;
2119
+ return ret;
1825
2120
  },
1826
- __wbg_clearStencil_1b8b8c727f598eec: function(arg0, arg1) {
1827
- arg0.clearStencil(arg1);
2121
+ __wbg_byteLength_27689b065d089962: function(arg0) {
2122
+ const ret = arg0.byteLength;
2123
+ return ret;
2124
+ },
2125
+ __wbg_byteLength_9f985b8373f1f3fe: function(arg0) {
2126
+ const ret = arg0.byteLength;
2127
+ return ret;
2128
+ },
2129
+ __wbg_byteOffset_0a6d6550fa691da7: function(arg0) {
2130
+ const ret = arg0.byteOffset;
2131
+ return ret;
2132
+ },
2133
+ __wbg_byteOffset_58a6efdc19adce02: function(arg0) {
2134
+ const ret = arg0.byteOffset;
2135
+ return ret;
2136
+ },
2137
+ __wbg_call_01721c8c75200a10: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2138
+ const ret = arg0.call(arg1, arg2, arg3, arg4, arg5);
2139
+ return ret;
2140
+ }, arguments); },
2141
+ __wbg_call_1875a20c43a36133: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2142
+ const ret = arg0.call(arg1, arg2, arg3);
2143
+ return ret;
2144
+ }, arguments); },
2145
+ __wbg_call_187d372bd5fdd4aa: function() { return handleError(function (arg0, arg1, arg2) {
2146
+ const ret = arg0.call(arg1, arg2);
2147
+ return ret;
2148
+ }, arguments); },
2149
+ __wbg_call_6137034ef55c9d0f: function() { return handleError(function (arg0, arg1) {
2150
+ const ret = arg0.call(arg1);
2151
+ return ret;
2152
+ }, arguments); },
2153
+ __wbg_clearBufferfv_05f7fc7252e623eb: function(arg0, arg1, arg2, arg3, arg4) {
2154
+ arg0.clearBufferfv(arg1 >>> 0, arg2, getArrayF32FromWasm0(arg3, arg4));
2155
+ },
2156
+ __wbg_clearBufferiv_e8e740accbd0f2df: function(arg0, arg1, arg2, arg3, arg4) {
2157
+ arg0.clearBufferiv(arg1 >>> 0, arg2, getArrayI32FromWasm0(arg3, arg4));
2158
+ },
2159
+ __wbg_clearBufferuiv_e7f50f91f2195e38: function(arg0, arg1, arg2, arg3, arg4) {
2160
+ arg0.clearBufferuiv(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4));
2161
+ },
2162
+ __wbg_clearDepth_4840a5497ae51286: function(arg0, arg1) {
2163
+ arg0.clearDepth(arg1);
2164
+ },
2165
+ __wbg_clearDepth_5a119c24c5d193bc: function(arg0, arg1) {
2166
+ arg0.clearDepth(arg1);
2167
+ },
2168
+ __wbg_clearStencil_1b8b8c727f598eec: function(arg0, arg1) {
2169
+ arg0.clearStencil(arg1);
1828
2170
  },
1829
2171
  __wbg_clearStencil_e4383e4a543e7997: function(arg0, arg1) {
1830
2172
  arg0.clearStencil(arg1);
@@ -1835,6 +2177,10 @@ function __wbg_get_imports() {
1835
2177
  __wbg_clear_cb96796cc568b7c8: function(arg0, arg1) {
1836
2178
  arg0.clear(arg1 >>> 0);
1837
2179
  },
2180
+ __wbg_clientWaitSync_73122aa040ce343d: function(arg0, arg1, arg2, arg3) {
2181
+ const ret = arg0.clientWaitSync(arg1, arg2 >>> 0, arg3 >>> 0);
2182
+ return ret;
2183
+ },
1838
2184
  __wbg_close_355afba6ea5ad1ae: function(arg0) {
1839
2185
  arg0.close();
1840
2186
  },
@@ -1850,14 +2196,72 @@ function __wbg_get_imports() {
1850
2196
  __wbg_compileShader_c2b53ff3a8851f60: function(arg0, arg1) {
1851
2197
  arg0.compileShader(arg1);
1852
2198
  },
2199
+ __wbg_compressedTexSubImage2D_4942a783e20221c2: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
2200
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8);
2201
+ },
2202
+ __wbg_compressedTexSubImage2D_4c408678ff5f3056: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2203
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8, arg9);
2204
+ },
2205
+ __wbg_compressedTexSubImage2D_80961cdbbd2b3aea: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
2206
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8);
2207
+ },
2208
+ __wbg_compressedTexSubImage3D_1e0f86237d82f8b9: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
2209
+ arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10);
2210
+ },
2211
+ __wbg_compressedTexSubImage3D_682e402a0ac201ba: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2212
+ arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10, arg11);
2213
+ },
2214
+ __wbg_configure_1e2c1c9edad07d26: function() { return handleError(function (arg0, arg1) {
2215
+ arg0.configure(arg1);
2216
+ }, arguments); },
2217
+ __wbg_copyBufferSubData_e82219c4834bd9ae: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2218
+ arg0.copyBufferSubData(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
2219
+ },
2220
+ __wbg_copyBufferToBuffer_01766818654a9868: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2221
+ arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4);
2222
+ }, arguments); },
2223
+ __wbg_copyBufferToBuffer_9c174b96fb08d551: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2224
+ arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4, arg5);
2225
+ }, arguments); },
2226
+ __wbg_copyExternalImageToTexture_116560f3be856776: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2227
+ arg0.copyExternalImageToTexture(arg1, arg2, arg3);
2228
+ }, arguments); },
2229
+ __wbg_copyTexSubImage2D_455fba12cf4a776c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
2230
+ arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
2231
+ },
2232
+ __wbg_copyTexSubImage2D_fe71e36efa520f37: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
2233
+ arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
2234
+ },
2235
+ __wbg_copyTexSubImage3D_717cd6c97934f2e6: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2236
+ arg0.copyTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
2237
+ },
2238
+ __wbg_copyTextureToBuffer_1234b3210431ad05: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2239
+ arg0.copyTextureToBuffer(arg1, arg2, arg3);
2240
+ }, arguments); },
2241
+ __wbg_createBindGroupLayout_b1bd63b4e88459d8: function() { return handleError(function (arg0, arg1) {
2242
+ const ret = arg0.createBindGroupLayout(arg1);
2243
+ return ret;
2244
+ }, arguments); },
2245
+ __wbg_createBindGroup_f539b26ca341308f: function(arg0, arg1) {
2246
+ const ret = arg0.createBindGroup(arg1);
2247
+ return ret;
2248
+ },
1853
2249
  __wbg_createBuffer_d1dd23bf8704564c: function(arg0) {
1854
2250
  const ret = arg0.createBuffer();
1855
2251
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1856
2252
  },
2253
+ __wbg_createBuffer_d800e9b1d41b2ee5: function() { return handleError(function (arg0, arg1) {
2254
+ const ret = arg0.createBuffer(arg1);
2255
+ return ret;
2256
+ }, arguments); },
1857
2257
  __wbg_createBuffer_ffe613371d42cfd3: function(arg0) {
1858
2258
  const ret = arg0.createBuffer();
1859
2259
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1860
2260
  },
2261
+ __wbg_createCommandEncoder_3352d1ffc36c6fc0: function(arg0, arg1) {
2262
+ const ret = arg0.createCommandEncoder(arg1);
2263
+ return ret;
2264
+ },
1861
2265
  __wbg_createFramebuffer_2c6b5b0f49c88e5d: function(arg0) {
1862
2266
  const ret = arg0.createFramebuffer();
1863
2267
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -1874,6 +2278,10 @@ function __wbg_get_imports() {
1874
2278
  const ret = arg0.createImageBitmap(arg1, arg2);
1875
2279
  return ret;
1876
2280
  }, arguments); },
2281
+ __wbg_createPipelineLayout_6eab52c327118937: function(arg0, arg1) {
2282
+ const ret = arg0.createPipelineLayout(arg1);
2283
+ return ret;
2284
+ },
1877
2285
  __wbg_createProgram_cbf448e6f18a9402: function(arg0) {
1878
2286
  const ret = arg0.createProgram();
1879
2287
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -1882,6 +2290,14 @@ function __wbg_get_imports() {
1882
2290
  const ret = arg0.createProgram();
1883
2291
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1884
2292
  },
2293
+ __wbg_createQuery_ec241083d0b36197: function(arg0) {
2294
+ const ret = arg0.createQuery();
2295
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2296
+ },
2297
+ __wbg_createRenderPipeline_0ebb7ebc653e9207: function() { return handleError(function (arg0, arg1) {
2298
+ const ret = arg0.createRenderPipeline(arg1);
2299
+ return ret;
2300
+ }, arguments); },
1885
2301
  __wbg_createRenderbuffer_2b17e9fe2e6fb4be: function(arg0) {
1886
2302
  const ret = arg0.createRenderbuffer();
1887
2303
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -1890,6 +2306,18 @@ function __wbg_get_imports() {
1890
2306
  const ret = arg0.createRenderbuffer();
1891
2307
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1892
2308
  },
2309
+ __wbg_createSampler_1b330d9da0c6523f: function(arg0) {
2310
+ const ret = arg0.createSampler();
2311
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2312
+ },
2313
+ __wbg_createSampler_9bd91d7e928c0060: function(arg0, arg1) {
2314
+ const ret = arg0.createSampler(arg1);
2315
+ return ret;
2316
+ },
2317
+ __wbg_createShaderModule_cefa51336cb288ae: function(arg0, arg1) {
2318
+ const ret = arg0.createShaderModule(arg1);
2319
+ return ret;
2320
+ },
1893
2321
  __wbg_createShader_6c1a2295587878a5: function(arg0, arg1) {
1894
2322
  const ret = arg0.createShader(arg1 >>> 0);
1895
2323
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -1906,6 +2334,10 @@ function __wbg_get_imports() {
1906
2334
  const ret = arg0.createTexture();
1907
2335
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1908
2336
  },
2337
+ __wbg_createTexture_ed7e9fc04dd54d84: function() { return handleError(function (arg0, arg1) {
2338
+ const ret = arg0.createTexture(arg1);
2339
+ return ret;
2340
+ }, arguments); },
1909
2341
  __wbg_createVertexArrayOES_a8dc8498b56df937: function(arg0) {
1910
2342
  const ret = arg0.createVertexArrayOES();
1911
2343
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -1914,6 +2346,10 @@ function __wbg_get_imports() {
1914
2346
  const ret = arg0.createVertexArray();
1915
2347
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1916
2348
  },
2349
+ __wbg_createView_da41c2d2cb212715: function() { return handleError(function (arg0, arg1) {
2350
+ const ret = arg0.createView(arg1);
2351
+ return ret;
2352
+ }, arguments); },
1917
2353
  __wbg_cullFace_12123c1c97f1ba2c: function(arg0, arg1) {
1918
2354
  arg0.cullFace(arg1 >>> 0);
1919
2355
  },
@@ -1938,12 +2374,18 @@ function __wbg_get_imports() {
1938
2374
  __wbg_deleteProgram_b524b30ad176cdb4: function(arg0, arg1) {
1939
2375
  arg0.deleteProgram(arg1);
1940
2376
  },
2377
+ __wbg_deleteQuery_266895df9763e0b3: function(arg0, arg1) {
2378
+ arg0.deleteQuery(arg1);
2379
+ },
1941
2380
  __wbg_deleteRenderbuffer_826c9b43b7ea68f5: function(arg0, arg1) {
1942
2381
  arg0.deleteRenderbuffer(arg1);
1943
2382
  },
1944
2383
  __wbg_deleteRenderbuffer_f4e121a3ab21c605: function(arg0, arg1) {
1945
2384
  arg0.deleteRenderbuffer(arg1);
1946
2385
  },
2386
+ __wbg_deleteSampler_f8afded8bf215d53: function(arg0, arg1) {
2387
+ arg0.deleteSampler(arg1);
2388
+ },
1947
2389
  __wbg_deleteShader_a70f6cc1918d67eb: function(arg0, arg1) {
1948
2390
  arg0.deleteShader(arg1);
1949
2391
  },
@@ -1983,11 +2425,15 @@ function __wbg_get_imports() {
1983
2425
  __wbg_depthRange_6a4e169ccf314148: function(arg0, arg1, arg2) {
1984
2426
  arg0.depthRange(arg1, arg2);
1985
2427
  },
1986
- __wbg_detachShader_1ed15fc2d289cf15: function(arg0, arg1, arg2) {
1987
- arg0.detachShader(arg1, arg2);
2428
+ __wbg_description_83b8a393160021b9: function(arg0, arg1) {
2429
+ const ret = arg1.description;
2430
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2431
+ const len1 = WASM_VECTOR_LEN;
2432
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2433
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1988
2434
  },
1989
- __wbg_detachShader_67dabaaad80a795e: function(arg0, arg1, arg2) {
1990
- arg0.detachShader(arg1, arg2);
2435
+ __wbg_destroy_637537007d9eaa44: function(arg0) {
2436
+ arg0.destroy();
1991
2437
  },
1992
2438
  __wbg_disableVertexAttribArray_11c9f11bee30c9d8: function(arg0, arg1) {
1993
2439
  arg0.disableVertexAttribArray(arg1 >>> 0);
@@ -2001,6 +2447,18 @@ function __wbg_get_imports() {
2001
2447
  __wbg_disable_81b2cb5f8cea15ae: function(arg0, arg1) {
2002
2448
  arg0.disable(arg1 >>> 0);
2003
2449
  },
2450
+ __wbg_displayHeight_903e670be87f29ab: function(arg0) {
2451
+ const ret = arg0.displayHeight;
2452
+ return ret;
2453
+ },
2454
+ __wbg_displayWidth_5da2bf55e335368a: function(arg0) {
2455
+ const ret = arg0.displayWidth;
2456
+ return ret;
2457
+ },
2458
+ __wbg_document_9854e03c05fc8834: function(arg0) {
2459
+ const ret = arg0.document;
2460
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2461
+ },
2004
2462
  __wbg_drawArraysInstancedANGLE_b76512b5abba6668: function(arg0, arg1, arg2, arg3, arg4) {
2005
2463
  arg0.drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
2006
2464
  },
@@ -2013,17 +2471,23 @@ function __wbg_get_imports() {
2013
2471
  __wbg_drawArrays_741af5c3f8db636f: function(arg0, arg1, arg2, arg3) {
2014
2472
  arg0.drawArrays(arg1 >>> 0, arg2, arg3);
2015
2473
  },
2474
+ __wbg_drawBuffersWEBGL_c1bc0bbfd584c9b2: function(arg0, arg1) {
2475
+ arg0.drawBuffersWEBGL(arg1);
2476
+ },
2477
+ __wbg_drawBuffers_7a58bd4729f7a1fc: function(arg0, arg1) {
2478
+ arg0.drawBuffers(arg1);
2479
+ },
2016
2480
  __wbg_drawElementsInstancedANGLE_c3fc0cfa9e29a1bc: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2017
2481
  arg0.drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
2018
2482
  },
2019
2483
  __wbg_drawElementsInstanced_d7c396aa034159b6: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2020
2484
  arg0.drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
2021
2485
  },
2022
- __wbg_drawElements_c8988ba71de1101a: function(arg0, arg1, arg2, arg3, arg4) {
2023
- arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4);
2486
+ __wbg_drawIndexed_638959aae942557c: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2487
+ arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
2024
2488
  },
2025
- __wbg_drawElements_cc1e6c631e89eddf: function(arg0, arg1, arg2, arg3, arg4) {
2026
- arg0.drawElements(arg1 >>> 0, arg2, arg3 >>> 0, arg4);
2489
+ __wbg_draw_086a9578fc9898c2: function(arg0, arg1, arg2, arg3, arg4) {
2490
+ arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
2027
2491
  },
2028
2492
  __wbg_enableVertexAttribArray_1496b78a8dbab9fd: function(arg0, arg1) {
2029
2493
  arg0.enableVertexAttribArray(arg1 >>> 0);
@@ -2037,6 +2501,31 @@ function __wbg_get_imports() {
2037
2501
  __wbg_enable_cb4fc19b51148c37: function(arg0, arg1) {
2038
2502
  arg0.enable(arg1 >>> 0);
2039
2503
  },
2504
+ __wbg_endQuery_73863d04a795d520: function(arg0, arg1) {
2505
+ arg0.endQuery(arg1 >>> 0);
2506
+ },
2507
+ __wbg_end_b57473834b877409: function(arg0) {
2508
+ arg0.end();
2509
+ },
2510
+ __wbg_engine_new: function(arg0) {
2511
+ const ret = Engine.__wrap(arg0);
2512
+ return ret;
2513
+ },
2514
+ __wbg_error_8c8dff942c7c4f11: function(arg0) {
2515
+ const ret = arg0.error;
2516
+ return ret;
2517
+ },
2518
+ __wbg_error_c9cf3fc2064683a9: function(arg0) {
2519
+ console.error(arg0);
2520
+ },
2521
+ __wbg_features_5cac120c28ba0475: function(arg0) {
2522
+ const ret = arg0.features;
2523
+ return ret;
2524
+ },
2525
+ __wbg_features_dec7bd2fd3d91bd6: function(arg0) {
2526
+ const ret = arg0.features;
2527
+ return ret;
2528
+ },
2040
2529
  __wbg_fenceSync_330293024adb66bc: function(arg0, arg1, arg2) {
2041
2530
  const ret = arg0.fenceSync(arg1 >>> 0, arg2 >>> 0);
2042
2531
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -2045,6 +2534,20 @@ function __wbg_get_imports() {
2045
2534
  const ret = arg0.fetch(getStringFromWasm0(arg1, arg2), arg3);
2046
2535
  return ret;
2047
2536
  },
2537
+ __wbg_finish_09ec094c10f41e7b: function(arg0) {
2538
+ const ret = arg0.finish();
2539
+ return ret;
2540
+ },
2541
+ __wbg_finish_173a156040775de3: function(arg0) {
2542
+ arg0.finish();
2543
+ },
2544
+ __wbg_finish_31ffb964be7e9749: function(arg0) {
2545
+ arg0.finish();
2546
+ },
2547
+ __wbg_finish_ec1c191f66a895b1: function(arg0, arg1) {
2548
+ const ret = arg0.finish(arg1);
2549
+ return ret;
2550
+ },
2048
2551
  __wbg_flush_13b162660ad850d2: function(arg0) {
2049
2552
  arg0.flush();
2050
2553
  },
@@ -2063,20 +2566,18 @@ function __wbg_get_imports() {
2063
2566
  __wbg_framebufferTexture2D_caddefa1f767646e: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2064
2567
  arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
2065
2568
  },
2569
+ __wbg_framebufferTextureLayer_1d5c0f0e3234e521: function(arg0, arg1, arg2, arg3, arg4, arg5) {
2570
+ arg0.framebufferTextureLayer(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
2571
+ },
2572
+ __wbg_framebufferTextureMultiviewOVR_77f19224ff7be6ef: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2573
+ arg0.framebufferTextureMultiviewOVR(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5, arg6);
2574
+ },
2066
2575
  __wbg_frontFace_6751b4b97f997aeb: function(arg0, arg1) {
2067
2576
  arg0.frontFace(arg1 >>> 0);
2068
2577
  },
2069
2578
  __wbg_frontFace_b064adb15b6f3772: function(arg0, arg1) {
2070
2579
  arg0.frontFace(arg1 >>> 0);
2071
2580
  },
2072
- __wbg_getActiveUniform_239de631a40c387a: function(arg0, arg1, arg2) {
2073
- const ret = arg0.getActiveUniform(arg1, arg2 >>> 0);
2074
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2075
- },
2076
- __wbg_getActiveUniform_f2052b3c57679fe2: function(arg0, arg1, arg2) {
2077
- const ret = arg0.getActiveUniform(arg1, arg2 >>> 0);
2078
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2079
- },
2080
2581
  __wbg_getBufferSubData_dd23246099b166d1: function(arg0, arg1, arg2, arg3) {
2081
2582
  arg0.getBufferSubData(arg1 >>> 0, arg2, arg3);
2082
2583
  },
@@ -2084,10 +2585,34 @@ function __wbg_get_imports() {
2084
2585
  const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
2085
2586
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2086
2587
  }, arguments); },
2588
+ __wbg_getContext_189ce278aa985704: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2589
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
2590
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2591
+ }, arguments); },
2592
+ __wbg_getContext_635e36719cad2623: function() { return handleError(function (arg0, arg1, arg2) {
2593
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
2594
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2595
+ }, arguments); },
2596
+ __wbg_getContext_e567868594d2e0c6: function() { return handleError(function (arg0, arg1, arg2) {
2597
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
2598
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2599
+ }, arguments); },
2600
+ __wbg_getCurrentTexture_9f3b84d0eaa6cd95: function() { return handleError(function (arg0) {
2601
+ const ret = arg0.getCurrentTexture();
2602
+ return ret;
2603
+ }, arguments); },
2087
2604
  __wbg_getExtension_abfda2c5db286b07: function() { return handleError(function (arg0, arg1, arg2) {
2088
2605
  const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
2089
2606
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2090
2607
  }, arguments); },
2608
+ __wbg_getIndexedParameter_0f49864473e337fa: function() { return handleError(function (arg0, arg1, arg2) {
2609
+ const ret = arg0.getIndexedParameter(arg1 >>> 0, arg2 >>> 0);
2610
+ return ret;
2611
+ }, arguments); },
2612
+ __wbg_getMappedRange_fb54c6327b2d8d20: function() { return handleError(function (arg0, arg1, arg2) {
2613
+ const ret = arg0.getMappedRange(arg1, arg2);
2614
+ return ret;
2615
+ }, arguments); },
2091
2616
  __wbg_getParameter_974595a6624c6c10: function() { return handleError(function (arg0, arg1) {
2092
2617
  const ret = arg0.getParameter(arg1 >>> 0);
2093
2618
  return ret;
@@ -2096,6 +2621,10 @@ function __wbg_get_imports() {
2096
2621
  const ret = arg0.getParameter(arg1 >>> 0);
2097
2622
  return ret;
2098
2623
  }, arguments); },
2624
+ __wbg_getPreferredCanvasFormat_0ef5034c8902201b: function(arg0) {
2625
+ const ret = arg0.getPreferredCanvasFormat();
2626
+ return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 102) - 1;
2627
+ },
2099
2628
  __wbg_getProgramInfoLog_208fb1ff31006495: function(arg0, arg1, arg2) {
2100
2629
  const ret = arg1.getProgramInfoLog(arg2);
2101
2630
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -2118,6 +2647,10 @@ function __wbg_get_imports() {
2118
2647
  const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
2119
2648
  return ret;
2120
2649
  },
2650
+ __wbg_getQueryParameter_937ba13f77db778f: function(arg0, arg1, arg2) {
2651
+ const ret = arg0.getQueryParameter(arg1, arg2 >>> 0);
2652
+ return ret;
2653
+ },
2121
2654
  __wbg_getShaderInfoLog_7e0cbba353ca95da: function(arg0, arg1, arg2) {
2122
2655
  const ret = arg1.getShaderInfoLog(arg2);
2123
2656
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -2144,10 +2677,18 @@ function __wbg_get_imports() {
2144
2677
  const ret = arg0.getSupportedExtensions();
2145
2678
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2146
2679
  },
2680
+ __wbg_getSupportedProfiles_7b2acfa66b565d24: function(arg0) {
2681
+ const ret = arg0.getSupportedProfiles();
2682
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2683
+ },
2147
2684
  __wbg_getSyncParameter_bb4be47b67bfa2f8: function(arg0, arg1, arg2) {
2148
2685
  const ret = arg0.getSyncParameter(arg1, arg2 >>> 0);
2149
2686
  return ret;
2150
2687
  },
2688
+ __wbg_getUniformBlockIndex_5e2252ceb34531a5: function(arg0, arg1, arg2, arg3) {
2689
+ const ret = arg0.getUniformBlockIndex(arg1, getStringFromWasm0(arg2, arg3));
2690
+ return ret;
2691
+ },
2151
2692
  __wbg_getUniformLocation_50ba45dade572703: function(arg0, arg1, arg2, arg3) {
2152
2693
  const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
2153
2694
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -2156,14 +2697,73 @@ function __wbg_get_imports() {
2156
2697
  const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
2157
2698
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2158
2699
  },
2700
+ __wbg_get_31af05bd4842a84f: function() { return handleError(function (arg0, arg1) {
2701
+ const ret = Reflect.get(arg0, arg1);
2702
+ return ret;
2703
+ }, arguments); },
2704
+ __wbg_get_806853698d9fc227: function() { return handleError(function (arg0, arg1) {
2705
+ const ret = Reflect.get(arg0, arg1 >>> 0);
2706
+ return ret;
2707
+ }, arguments); },
2708
+ __wbg_get_f75619e20cb68514: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2709
+ const ret = arg1.get(getStringFromWasm0(arg2, arg3));
2710
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2711
+ var len1 = WASM_VECTOR_LEN;
2712
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2713
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2714
+ }, arguments); },
2715
+ __wbg_get_fd12a9100976c296: function(arg0, arg1) {
2716
+ const ret = arg0[arg1 >>> 0];
2717
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2718
+ },
2719
+ __wbg_get_index_f4750150bb3083b3: function(arg0, arg1) {
2720
+ const ret = arg0[arg1 >>> 0];
2721
+ return ret;
2722
+ },
2159
2723
  __wbg_get_unchecked_288889d017702237: function(arg0, arg1) {
2160
2724
  const ret = arg0[arg1 >>> 0];
2161
2725
  return ret;
2162
2726
  },
2727
+ __wbg_gpu_afdd4387c7afe5f9: function(arg0) {
2728
+ const ret = arg0.gpu;
2729
+ return ret;
2730
+ },
2731
+ __wbg_has_eafa12e457ea88fb: function(arg0, arg1, arg2) {
2732
+ const ret = arg0.has(getStringFromWasm0(arg1, arg2));
2733
+ return ret;
2734
+ },
2735
+ __wbg_headers_eba93595f8944c2f: function(arg0) {
2736
+ const ret = arg0.headers;
2737
+ return ret;
2738
+ },
2739
+ __wbg_height_50d2b2bc8c6ec859: function(arg0) {
2740
+ const ret = arg0.height;
2741
+ return ret;
2742
+ },
2743
+ __wbg_height_816341c9bbd4e9e3: function(arg0) {
2744
+ const ret = arg0.height;
2745
+ return ret;
2746
+ },
2163
2747
  __wbg_height_9dca4d43c3e4b84b: function(arg0) {
2164
2748
  const ret = arg0.height;
2165
2749
  return ret;
2166
2750
  },
2751
+ __wbg_height_aa756cf29b6d629c: function(arg0) {
2752
+ const ret = arg0.height;
2753
+ return ret;
2754
+ },
2755
+ __wbg_height_fc97e1a0c2e7331f: function(arg0) {
2756
+ const ret = arg0.height;
2757
+ return ret;
2758
+ },
2759
+ __wbg_includes_9b0dfa946c313621: function(arg0, arg1, arg2) {
2760
+ const ret = arg0.includes(arg1, arg2);
2761
+ return ret;
2762
+ },
2763
+ __wbg_info_971d8b9db3dae69f: function(arg0) {
2764
+ const ret = arg0.info;
2765
+ return ret;
2766
+ },
2167
2767
  __wbg_instanceof_ArrayBuffer_a99f175873e5d9b8: function(arg0) {
2168
2768
  let result;
2169
2769
  try {
@@ -2184,6 +2784,16 @@ function __wbg_get_imports() {
2184
2784
  const ret = result;
2185
2785
  return ret;
2186
2786
  },
2787
+ __wbg_instanceof_Error_80a725f81f2e102d: function(arg0) {
2788
+ let result;
2789
+ try {
2790
+ result = arg0 instanceof Error;
2791
+ } catch (_) {
2792
+ result = false;
2793
+ }
2794
+ const ret = result;
2795
+ return ret;
2796
+ },
2187
2797
  __wbg_instanceof_Float32Array_595afb0f28b828c9: function(arg0) {
2188
2798
  let result;
2189
2799
  try {
@@ -2194,6 +2804,46 @@ function __wbg_get_imports() {
2194
2804
  const ret = result;
2195
2805
  return ret;
2196
2806
  },
2807
+ __wbg_instanceof_Float64Array_8a59377f9eec1b8b: function(arg0) {
2808
+ let result;
2809
+ try {
2810
+ result = arg0 instanceof Float64Array;
2811
+ } catch (_) {
2812
+ result = false;
2813
+ }
2814
+ const ret = result;
2815
+ return ret;
2816
+ },
2817
+ __wbg_instanceof_GpuOutOfMemoryError_5c3b8a2499f59adb: function(arg0) {
2818
+ let result;
2819
+ try {
2820
+ result = arg0 instanceof GPUOutOfMemoryError;
2821
+ } catch (_) {
2822
+ result = false;
2823
+ }
2824
+ const ret = result;
2825
+ return ret;
2826
+ },
2827
+ __wbg_instanceof_GpuValidationError_7659e07b12d4e184: function(arg0) {
2828
+ let result;
2829
+ try {
2830
+ result = arg0 instanceof GPUValidationError;
2831
+ } catch (_) {
2832
+ result = false;
2833
+ }
2834
+ const ret = result;
2835
+ return ret;
2836
+ },
2837
+ __wbg_instanceof_HtmlCanvasElement_0a30c11fbbf41841: function(arg0) {
2838
+ let result;
2839
+ try {
2840
+ result = arg0 instanceof HTMLCanvasElement;
2841
+ } catch (_) {
2842
+ result = false;
2843
+ }
2844
+ const ret = result;
2845
+ return ret;
2846
+ },
2197
2847
  __wbg_instanceof_ImageBitmap_74bea45ee48d3d7a: function(arg0) {
2198
2848
  let result;
2199
2849
  try {
@@ -2204,6 +2854,16 @@ function __wbg_get_imports() {
2204
2854
  const ret = result;
2205
2855
  return ret;
2206
2856
  },
2857
+ __wbg_instanceof_Promise_e1dc6893aa1ece28: function(arg0) {
2858
+ let result;
2859
+ try {
2860
+ result = arg0 instanceof Promise;
2861
+ } catch (_) {
2862
+ result = false;
2863
+ }
2864
+ const ret = result;
2865
+ return ret;
2866
+ },
2207
2867
  __wbg_instanceof_Response_b8758567269c30b2: function(arg0) {
2208
2868
  let result;
2209
2869
  try {
@@ -2214,6 +2874,26 @@ function __wbg_get_imports() {
2214
2874
  const ret = result;
2215
2875
  return ret;
2216
2876
  },
2877
+ __wbg_instanceof_Uint32Array_53a4facaf04b8a8b: function(arg0) {
2878
+ let result;
2879
+ try {
2880
+ result = arg0 instanceof Uint32Array;
2881
+ } catch (_) {
2882
+ result = false;
2883
+ }
2884
+ const ret = result;
2885
+ return ret;
2886
+ },
2887
+ __wbg_instanceof_Uint8Array_828cef2aaacafc31: function(arg0) {
2888
+ let result;
2889
+ try {
2890
+ result = arg0 instanceof Uint8Array;
2891
+ } catch (_) {
2892
+ result = false;
2893
+ }
2894
+ const ret = result;
2895
+ return ret;
2896
+ },
2217
2897
  __wbg_instanceof_WebGl2RenderingContext_64c994c14c0790fb: function(arg0) {
2218
2898
  let result;
2219
2899
  try {
@@ -2234,22 +2914,28 @@ function __wbg_get_imports() {
2234
2914
  const ret = result;
2235
2915
  return ret;
2236
2916
  },
2237
- __wbg_isContextLost_fbbab8b921e614b7: function(arg0) {
2238
- const ret = arg0.isContextLost();
2239
- return ret;
2240
- },
2241
- __wbg_isEnabled_a3522bc4076e6296: function(arg0, arg1) {
2242
- const ret = arg0.isEnabled(arg1 >>> 0);
2917
+ __wbg_invalidateFramebuffer_4f576db65bb37d6a: function() { return handleError(function (arg0, arg1, arg2) {
2918
+ arg0.invalidateFramebuffer(arg1 >>> 0, arg2);
2919
+ }, arguments); },
2920
+ __wbg_isArray_e15a2ff68ffdbef2: function(arg0) {
2921
+ const ret = Array.isArray(arg0);
2243
2922
  return ret;
2244
2923
  },
2245
- __wbg_isEnabled_acb9d89bd88c16bd: function(arg0, arg1) {
2246
- const ret = arg0.isEnabled(arg1 >>> 0);
2924
+ __wbg_isFallbackAdapter_4c8cc3b18677460a: function(arg0) {
2925
+ const ret = arg0.isFallbackAdapter;
2247
2926
  return ret;
2248
2927
  },
2249
2928
  __wbg_is_4b278c0bd3caba97: function(arg0, arg1) {
2250
2929
  const ret = Object.is(arg0, arg1);
2251
2930
  return ret;
2252
2931
  },
2932
+ __wbg_label_7add8cb37a6ef98f: function(arg0, arg1) {
2933
+ const ret = arg1.label;
2934
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2935
+ const len1 = WASM_VECTOR_LEN;
2936
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2937
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2938
+ },
2253
2939
  __wbg_length_58572db4c38f3c3e: function(arg0) {
2254
2940
  const ret = arg0.length;
2255
2941
  return ret;
@@ -2258,35 +2944,199 @@ function __wbg_get_imports() {
2258
2944
  const ret = arg0.length;
2259
2945
  return ret;
2260
2946
  },
2947
+ __wbg_length_b5f0008bbf60cf59: function(arg0) {
2948
+ const ret = arg0.length;
2949
+ return ret;
2950
+ },
2261
2951
  __wbg_length_d4bdea10311bd9cf: function(arg0) {
2262
2952
  const ret = arg0.length;
2263
2953
  return ret;
2264
2954
  },
2955
+ __wbg_limits_06bcb36c8409843b: function(arg0) {
2956
+ const ret = arg0.limits;
2957
+ return ret;
2958
+ },
2959
+ __wbg_limits_601ad2e086ef8141: function(arg0) {
2960
+ const ret = arg0.limits;
2961
+ return ret;
2962
+ },
2265
2963
  __wbg_linkProgram_571a9ea00d38ff83: function(arg0, arg1) {
2266
2964
  arg0.linkProgram(arg1);
2267
2965
  },
2268
2966
  __wbg_linkProgram_acdc299c43d734a0: function(arg0, arg1) {
2269
2967
  arg0.linkProgram(arg1);
2270
2968
  },
2271
- __wbg_name_91a697e9ff1634bf: function(arg0, arg1) {
2272
- const ret = arg1.name;
2273
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2274
- const len1 = WASM_VECTOR_LEN;
2275
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2276
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2277
- },
2278
- __wbg_new_2e41357094e99294: function() { return handleError(function () {
2279
- const ret = new AbortController();
2969
+ __wbg_mapAsync_b0597127f5037286: function(arg0, arg1, arg2, arg3) {
2970
+ const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
2280
2971
  return ret;
2972
+ },
2973
+ __wbg_matchMedia_8a4857f947f11f82: function() { return handleError(function (arg0, arg1, arg2) {
2974
+ const ret = arg0.matchMedia(getStringFromWasm0(arg1, arg2));
2975
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2281
2976
  }, arguments); },
2282
- __wbg_new_5502aad30c185fc8: function(arg0, arg1) {
2283
- try {
2284
- var state0 = {a: arg0, b: arg1};
2285
- var cb0 = (arg0, arg1) => {
2977
+ __wbg_matches_778d0873b064b1bf: function(arg0) {
2978
+ const ret = arg0.matches;
2979
+ return ret;
2980
+ },
2981
+ __wbg_maxBindGroupsPlusVertexBuffers_52369f089736ef9d: function(arg0) {
2982
+ const ret = arg0.maxBindGroupsPlusVertexBuffers;
2983
+ return ret;
2984
+ },
2985
+ __wbg_maxBindGroups_4e424afe6ce86ca2: function(arg0) {
2986
+ const ret = arg0.maxBindGroups;
2987
+ return ret;
2988
+ },
2989
+ __wbg_maxBindingsPerBindGroup_7d035da36821c44f: function(arg0) {
2990
+ const ret = arg0.maxBindingsPerBindGroup;
2991
+ return ret;
2992
+ },
2993
+ __wbg_maxBufferSize_423f4a084e32a195: function(arg0) {
2994
+ const ret = arg0.maxBufferSize;
2995
+ return ret;
2996
+ },
2997
+ __wbg_maxColorAttachmentBytesPerSample_c4cd9126f6d287c6: function(arg0) {
2998
+ const ret = arg0.maxColorAttachmentBytesPerSample;
2999
+ return ret;
3000
+ },
3001
+ __wbg_maxColorAttachments_d924670762b9e250: function(arg0) {
3002
+ const ret = arg0.maxColorAttachments;
3003
+ return ret;
3004
+ },
3005
+ __wbg_maxComputeInvocationsPerWorkgroup_707a3868f7cebb59: function(arg0) {
3006
+ const ret = arg0.maxComputeInvocationsPerWorkgroup;
3007
+ return ret;
3008
+ },
3009
+ __wbg_maxComputeWorkgroupSizeX_0a4d99463cbd6e5e: function(arg0) {
3010
+ const ret = arg0.maxComputeWorkgroupSizeX;
3011
+ return ret;
3012
+ },
3013
+ __wbg_maxComputeWorkgroupSizeY_85123ea0587f7558: function(arg0) {
3014
+ const ret = arg0.maxComputeWorkgroupSizeY;
3015
+ return ret;
3016
+ },
3017
+ __wbg_maxComputeWorkgroupSizeZ_a3186b4c5267d44f: function(arg0) {
3018
+ const ret = arg0.maxComputeWorkgroupSizeZ;
3019
+ return ret;
3020
+ },
3021
+ __wbg_maxComputeWorkgroupStorageSize_57b297355cfb6204: function(arg0) {
3022
+ const ret = arg0.maxComputeWorkgroupStorageSize;
3023
+ return ret;
3024
+ },
3025
+ __wbg_maxComputeWorkgroupsPerDimension_4158f95e673d54c4: function(arg0) {
3026
+ const ret = arg0.maxComputeWorkgroupsPerDimension;
3027
+ return ret;
3028
+ },
3029
+ __wbg_maxDynamicStorageBuffersPerPipelineLayout_226b0b70910aa16c: function(arg0) {
3030
+ const ret = arg0.maxDynamicStorageBuffersPerPipelineLayout;
3031
+ return ret;
3032
+ },
3033
+ __wbg_maxDynamicUniformBuffersPerPipelineLayout_0e835fda711fc7e6: function(arg0) {
3034
+ const ret = arg0.maxDynamicUniformBuffersPerPipelineLayout;
3035
+ return ret;
3036
+ },
3037
+ __wbg_maxInterStageShaderVariables_8c4a1d727e2aa35a: function(arg0) {
3038
+ const ret = arg0.maxInterStageShaderVariables;
3039
+ return ret;
3040
+ },
3041
+ __wbg_maxSampledTexturesPerShaderStage_6675f5e91d9a728a: function(arg0) {
3042
+ const ret = arg0.maxSampledTexturesPerShaderStage;
3043
+ return ret;
3044
+ },
3045
+ __wbg_maxSamplersPerShaderStage_1910fa38a6ed1e1f: function(arg0) {
3046
+ const ret = arg0.maxSamplersPerShaderStage;
3047
+ return ret;
3048
+ },
3049
+ __wbg_maxStorageBufferBindingSize_2e244bded070b18d: function(arg0) {
3050
+ const ret = arg0.maxStorageBufferBindingSize;
3051
+ return ret;
3052
+ },
3053
+ __wbg_maxStorageBuffersPerShaderStage_a285f3ebca51ca0d: function(arg0) {
3054
+ const ret = arg0.maxStorageBuffersPerShaderStage;
3055
+ return ret;
3056
+ },
3057
+ __wbg_maxStorageTexturesPerShaderStage_7aa946f0fc322a2b: function(arg0) {
3058
+ const ret = arg0.maxStorageTexturesPerShaderStage;
3059
+ return ret;
3060
+ },
3061
+ __wbg_maxTextureArrayLayers_0e699147ad00502d: function(arg0) {
3062
+ const ret = arg0.maxTextureArrayLayers;
3063
+ return ret;
3064
+ },
3065
+ __wbg_maxTextureDimension1D_aabf6add54decfe2: function(arg0) {
3066
+ const ret = arg0.maxTextureDimension1D;
3067
+ return ret;
3068
+ },
3069
+ __wbg_maxTextureDimension2D_dd598b27e9c0c1c4: function(arg0) {
3070
+ const ret = arg0.maxTextureDimension2D;
3071
+ return ret;
3072
+ },
3073
+ __wbg_maxTextureDimension3D_f944266c65dfd1a9: function(arg0) {
3074
+ const ret = arg0.maxTextureDimension3D;
3075
+ return ret;
3076
+ },
3077
+ __wbg_maxUniformBufferBindingSize_59fa6be7cfbeeb53: function(arg0) {
3078
+ const ret = arg0.maxUniformBufferBindingSize;
3079
+ return ret;
3080
+ },
3081
+ __wbg_maxUniformBuffersPerShaderStage_bee5f00a4d706c7f: function(arg0) {
3082
+ const ret = arg0.maxUniformBuffersPerShaderStage;
3083
+ return ret;
3084
+ },
3085
+ __wbg_maxVertexAttributes_5cf6392c4e9033fe: function(arg0) {
3086
+ const ret = arg0.maxVertexAttributes;
3087
+ return ret;
3088
+ },
3089
+ __wbg_maxVertexBufferArrayStride_548baa887375d865: function(arg0) {
3090
+ const ret = arg0.maxVertexBufferArrayStride;
3091
+ return ret;
3092
+ },
3093
+ __wbg_maxVertexBuffers_75d881156591f5da: function(arg0) {
3094
+ const ret = arg0.maxVertexBuffers;
3095
+ return ret;
3096
+ },
3097
+ __wbg_message_2aad50368e15e8f1: function(arg0, arg1) {
3098
+ const ret = arg1.message;
3099
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3100
+ const len1 = WASM_VECTOR_LEN;
3101
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3102
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3103
+ },
3104
+ __wbg_message_5f8387f0c32b90a7: function(arg0) {
3105
+ const ret = arg0.message;
3106
+ return ret;
3107
+ },
3108
+ __wbg_minStorageBufferOffsetAlignment_5ba9b77792bdadb3: function(arg0) {
3109
+ const ret = arg0.minStorageBufferOffsetAlignment;
3110
+ return ret;
3111
+ },
3112
+ __wbg_minUniformBufferOffsetAlignment_ab7d52a5293b22bd: function(arg0) {
3113
+ const ret = arg0.minUniformBufferOffsetAlignment;
3114
+ return ret;
3115
+ },
3116
+ __wbg_navigator_2156486643462a87: function(arg0) {
3117
+ const ret = arg0.navigator;
3118
+ return ret;
3119
+ },
3120
+ __wbg_navigator_c9bce48d4b578c9c: function(arg0) {
3121
+ const ret = arg0.navigator;
3122
+ return ret;
3123
+ },
3124
+ __wbg_new_1dbf7428bba60a42: function(arg0) {
3125
+ const ret = new Uint8Array(arg0);
3126
+ return ret;
3127
+ },
3128
+ __wbg_new_2e41357094e99294: function() { return handleError(function () {
3129
+ const ret = new AbortController();
3130
+ return ret;
3131
+ }, arguments); },
3132
+ __wbg_new_5502aad30c185fc8: function(arg0, arg1) {
3133
+ try {
3134
+ var state0 = {a: arg0, b: arg1};
3135
+ var cb0 = (arg0, arg1) => {
2286
3136
  const a = state0.a;
2287
3137
  state0.a = 0;
2288
3138
  try {
2289
- 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);
3139
+ return wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___js_sys_5e75a17f0680aa0e___Function_fn_wasm_bindgen_4346cdda5a9d72ac___JsValue_____wasm_bindgen_4346cdda5a9d72ac___sys__Undefined___js_sys_5e75a17f0680aa0e___Function_fn_wasm_bindgen_4346cdda5a9d72ac___JsValue_____wasm_bindgen_4346cdda5a9d72ac___sys__Undefined_______true_(a, state0.b, arg0, arg1);
2290
3140
  } finally {
2291
3141
  state0.a = a;
2292
3142
  }
@@ -2305,18 +3155,60 @@ function __wbg_get_imports() {
2305
3155
  const ret = new Headers();
2306
3156
  return ret;
2307
3157
  }, arguments); },
3158
+ __wbg_new_a217df4351db4b9b: function() { return handleError(function (arg0, arg1) {
3159
+ const ret = new OffscreenCanvas(arg0 >>> 0, arg1 >>> 0);
3160
+ return ret;
3161
+ }, arguments); },
2308
3162
  __wbg_new_ee2291f50781bf1d: function() {
2309
3163
  const ret = new Array();
2310
3164
  return ret;
2311
3165
  },
3166
+ __wbg_new_from_slice_9a868026ffa4208a: function(arg0, arg1) {
3167
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
3168
+ return ret;
3169
+ },
3170
+ __wbg_new_from_slice_f545fd22ddc142b8: function(arg0, arg1) {
3171
+ const ret = new Float64Array(getArrayF64FromWasm0(arg0, arg1));
3172
+ return ret;
3173
+ },
3174
+ __wbg_new_typed_689a3a281a8d4da6: function() {
3175
+ const ret = new Object();
3176
+ return ret;
3177
+ },
3178
+ __wbg_new_typed_b01cb72a8af741a3: function(arg0, arg1) {
3179
+ try {
3180
+ var state0 = {a: arg0, b: arg1};
3181
+ var cb0 = (arg0, arg1) => {
3182
+ const a = state0.a;
3183
+ state0.a = 0;
3184
+ try {
3185
+ return wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___js_sys_5e75a17f0680aa0e___Function_fn_wasm_bindgen_4346cdda5a9d72ac___JsValue_____wasm_bindgen_4346cdda5a9d72ac___sys__Undefined___js_sys_5e75a17f0680aa0e___Function_fn_wasm_bindgen_4346cdda5a9d72ac___JsValue_____wasm_bindgen_4346cdda5a9d72ac___sys__Undefined_______true_(a, state0.b, arg0, arg1);
3186
+ } finally {
3187
+ state0.a = a;
3188
+ }
3189
+ };
3190
+ const ret = new Promise(cb0);
3191
+ return ret;
3192
+ } finally {
3193
+ state0.a = 0;
3194
+ }
3195
+ },
2312
3196
  __wbg_new_with_byte_offset_70ba6193352e027b: function(arg0, arg1) {
2313
3197
  const ret = new Uint8Array(arg0, arg1 >>> 0);
2314
3198
  return ret;
2315
3199
  },
3200
+ __wbg_new_with_byte_offset_and_length_2f5d7fc2a828b74d: function(arg0, arg1, arg2) {
3201
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
3202
+ return ret;
3203
+ },
2316
3204
  __wbg_new_with_byte_offset_and_length_40c170286adc9005: function(arg0, arg1, arg2) {
2317
3205
  const ret = new Float32Array(arg0, arg1 >>> 0, arg2 >>> 0);
2318
3206
  return ret;
2319
3207
  },
3208
+ __wbg_new_with_u8_array_sequence_and_options_fccc08fe93f4b8fd: function() { return handleError(function (arg0, arg1) {
3209
+ const ret = new Blob(arg0, arg1);
3210
+ return ret;
3211
+ }, arguments); },
2320
3212
  __wbg_now_aa4ccb83129e9e55: function() {
2321
3213
  const ret = Date.now();
2322
3214
  return ret;
@@ -2329,10 +3221,26 @@ function __wbg_get_imports() {
2329
3221
  const ret = Array.of(arg0, arg1);
2330
3222
  return ret;
2331
3223
  },
3224
+ __wbg_of_d5dbecdc59e02e34: function(arg0) {
3225
+ const ret = Array.of(arg0);
3226
+ return ret;
3227
+ },
2332
3228
  __wbg_of_dde0b9d3265685ee: function(arg0, arg1, arg2) {
2333
3229
  const ret = Array.of(arg0, arg1, arg2);
2334
3230
  return ret;
2335
3231
  },
3232
+ __wbg_of_fea2613674ee0d0f: function(arg0, arg1, arg2, arg3, arg4) {
3233
+ const ret = Array.of(arg0, arg1, arg2, arg3, arg4);
3234
+ return ret;
3235
+ },
3236
+ __wbg_ok_125878a7db256ecb: function(arg0) {
3237
+ const ret = arg0.ok;
3238
+ return ret;
3239
+ },
3240
+ __wbg_onSubmittedWorkDone_1190213cee1ecf7e: function(arg0) {
3241
+ const ret = arg0.onSubmittedWorkDone();
3242
+ return ret;
3243
+ },
2336
3244
  __wbg_performance_d0d7b03fc649b694: function(arg0) {
2337
3245
  const ret = arg0.performance;
2338
3246
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -2349,16 +3257,37 @@ function __wbg_get_imports() {
2349
3257
  __wbg_polygonOffset_8f922d9173d8849d: function(arg0, arg1, arg2) {
2350
3258
  arg0.polygonOffset(arg1, arg2);
2351
3259
  },
3260
+ __wbg_popErrorScope_182b8e03671d81ef: function(arg0) {
3261
+ const ret = arg0.popErrorScope();
3262
+ return ret;
3263
+ },
2352
3264
  __wbg_prototypesetcall_8b03c01e2c0f8066: function(arg0, arg1, arg2) {
2353
3265
  Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), arg2);
2354
3266
  },
2355
3267
  __wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
2356
3268
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
2357
3269
  },
3270
+ __wbg_prototypesetcall_d49a4fab5ca427bc: function(arg0, arg1, arg2) {
3271
+ Float64Array.prototype.set.call(getArrayF64FromWasm0(arg0, arg1), arg2);
3272
+ },
3273
+ __wbg_pushErrorScope_fa7df784c43bdb51: function(arg0, arg1) {
3274
+ arg0.pushErrorScope(__wbindgen_enum_GpuErrorFilter[arg1]);
3275
+ },
2358
3276
  __wbg_push_2baf45db356cf468: function(arg0, arg1) {
2359
3277
  const ret = arg0.push(arg1);
2360
3278
  return ret;
2361
3279
  },
3280
+ __wbg_queryCounterEXT_9016a6ffa350b4b2: function(arg0, arg1, arg2) {
3281
+ arg0.queryCounterEXT(arg1, arg2 >>> 0);
3282
+ },
3283
+ __wbg_querySelectorAll_6aebfe3df1fb2014: function() { return handleError(function (arg0, arg1, arg2) {
3284
+ const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
3285
+ return ret;
3286
+ }, arguments); },
3287
+ __wbg_querySelector_ecbc2550705b235f: function() { return handleError(function (arg0, arg1, arg2) {
3288
+ const ret = arg0.querySelector(getStringFromWasm0(arg1, arg2));
3289
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3290
+ }, arguments); },
2362
3291
  __wbg_queueMicrotask_9833f9a49df95a49: function(arg0) {
2363
3292
  const ret = arg0.queueMicrotask;
2364
3293
  return ret;
@@ -2366,6 +3295,13 @@ function __wbg_get_imports() {
2366
3295
  __wbg_queueMicrotask_a72f977e97f23c5f: function(arg0) {
2367
3296
  queueMicrotask(arg0);
2368
3297
  },
3298
+ __wbg_queue_7b62c28143d44293: function(arg0) {
3299
+ const ret = arg0.queue;
3300
+ return ret;
3301
+ },
3302
+ __wbg_readBuffer_b5d9a34a2f3d20d5: function(arg0, arg1) {
3303
+ arg0.readBuffer(arg1 >>> 0);
3304
+ },
2369
3305
  __wbg_readPixels_31e44e70558ac590: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2370
3306
  arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
2371
3307
  }, arguments); },
@@ -2375,68 +3311,679 @@ function __wbg_get_imports() {
2375
3311
  __wbg_readPixels_eb030cd9976eeca5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2376
3312
  arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
2377
3313
  }, arguments); },
3314
+ __wbg_renderbufferStorageMultisample_ed16f3ef446e3bc7: function(arg0, arg1, arg2, arg3, arg4, arg5) {
3315
+ arg0.renderbufferStorageMultisample(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
3316
+ },
2378
3317
  __wbg_renderbufferStorage_52b131bbf3112b3a: function(arg0, arg1, arg2, arg3, arg4) {
2379
3318
  arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
2380
3319
  },
2381
3320
  __wbg_renderbufferStorage_bca487b0dea425b8: function(arg0, arg1, arg2, arg3, arg4) {
2382
3321
  arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
2383
3322
  },
3323
+ __wbg_requestAdapter_a539af006419f2e9: function(arg0, arg1) {
3324
+ const ret = arg0.requestAdapter(arg1);
3325
+ return ret;
3326
+ },
3327
+ __wbg_requestDevice_5cb8a582e55d08cb: function(arg0, arg1) {
3328
+ const ret = arg0.requestDevice(arg1);
3329
+ return ret;
3330
+ },
3331
+ __wbg_resolveQuerySet_770f23fabac49845: function(arg0, arg1, arg2, arg3, arg4, arg5) {
3332
+ arg0.resolveQuerySet(arg1, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
3333
+ },
2384
3334
  __wbg_resolve_0076e10020304ede: function(arg0) {
2385
3335
  const ret = Promise.resolve(arg0);
2386
3336
  return ret;
2387
3337
  },
3338
+ __wbg_samplerParameterf_2d62cb907392e2d6: function(arg0, arg1, arg2, arg3) {
3339
+ arg0.samplerParameterf(arg1, arg2 >>> 0, arg3);
3340
+ },
3341
+ __wbg_samplerParameteri_a5615e67ed0b654b: function(arg0, arg1, arg2, arg3) {
3342
+ arg0.samplerParameteri(arg1, arg2 >>> 0, arg3);
3343
+ },
2388
3344
  __wbg_scissor_12ddc324094acd50: function(arg0, arg1, arg2, arg3, arg4) {
2389
3345
  arg0.scissor(arg1, arg2, arg3, arg4);
2390
3346
  },
2391
3347
  __wbg_scissor_a9468482697c2bdb: function(arg0, arg1, arg2, arg3, arg4) {
2392
3348
  arg0.scissor(arg1, arg2, arg3, arg4);
2393
3349
  },
3350
+ __wbg_setBindGroup_11bdbb60cc8b54b9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3351
+ arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
3352
+ }, arguments); },
3353
+ __wbg_setBindGroup_418c3e0eb6943ce0: function(arg0, arg1, arg2) {
3354
+ arg0.setBindGroup(arg1 >>> 0, arg2);
3355
+ },
3356
+ __wbg_setIndexBuffer_01327df91742b73e: function(arg0, arg1, arg2, arg3) {
3357
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
3358
+ },
3359
+ __wbg_setIndexBuffer_241097e303986c14: function(arg0, arg1, arg2, arg3, arg4) {
3360
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
3361
+ },
3362
+ __wbg_setPipeline_b6f981027e02cd16: function(arg0, arg1) {
3363
+ arg0.setPipeline(arg1);
3364
+ },
3365
+ __wbg_setScissorRect_889235eeb784732b: function(arg0, arg1, arg2, arg3, arg4) {
3366
+ arg0.setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
3367
+ },
3368
+ __wbg_setStencilReference_48705a9a2cceae02: function(arg0, arg1) {
3369
+ arg0.setStencilReference(arg1 >>> 0);
3370
+ },
2394
3371
  __wbg_setTimeout_db7bbc18a17e152a: function() { return handleError(function (arg0, arg1, arg2) {
2395
3372
  const ret = arg0.setTimeout(arg1, arg2);
2396
3373
  return ret;
2397
3374
  }, arguments); },
3375
+ __wbg_setVertexBuffer_6db3b60e99280744: function(arg0, arg1, arg2, arg3) {
3376
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
3377
+ },
3378
+ __wbg_setVertexBuffer_cbf4ca1627c02f4c: function(arg0, arg1, arg2, arg3, arg4) {
3379
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
3380
+ },
2398
3381
  __wbg_set_145a351398b48c65: function() { return handleError(function (arg0, arg1, arg2) {
2399
3382
  const ret = Reflect.set(arg0, arg1, arg2);
2400
3383
  return ret;
2401
3384
  }, arguments); },
3385
+ __wbg_set_34d08fd992d43d61: function(arg0, arg1, arg2) {
3386
+ arg0.set(arg1, arg2 >>> 0);
3387
+ },
3388
+ __wbg_set_a_82818effc94f6256: function(arg0, arg1) {
3389
+ arg0.a = arg1;
3390
+ },
3391
+ __wbg_set_access_a099cfbbeec9b96f: function(arg0, arg1) {
3392
+ arg0.access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
3393
+ },
3394
+ __wbg_set_address_mode_u_a68737cf5d288f95: function(arg0, arg1) {
3395
+ arg0.addressModeU = __wbindgen_enum_GpuAddressMode[arg1];
3396
+ },
3397
+ __wbg_set_address_mode_v_b1c3c45933f540d1: function(arg0, arg1) {
3398
+ arg0.addressModeV = __wbindgen_enum_GpuAddressMode[arg1];
3399
+ },
3400
+ __wbg_set_address_mode_w_889c31cf7022c764: function(arg0, arg1) {
3401
+ arg0.addressModeW = __wbindgen_enum_GpuAddressMode[arg1];
3402
+ },
2402
3403
  __wbg_set_af5932e3f78b5648: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2403
3404
  arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
2404
3405
  }, arguments); },
2405
- __wbg_set_alpha_6dea851a46253adf: function(arg0, arg1) {
2406
- arg0.alpha = arg1 !== 0;
3406
+ __wbg_set_alpha_106f21a936a85eba: function(arg0, arg1) {
3407
+ arg0.alpha = arg1;
3408
+ },
3409
+ __wbg_set_alpha_mode_5544568dbac50280: function(arg0, arg1) {
3410
+ arg0.alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
3411
+ },
3412
+ __wbg_set_alpha_to_coverage_enabled_3372ce329447b8f1: function(arg0, arg1) {
3413
+ arg0.alphaToCoverageEnabled = arg1 !== 0;
3414
+ },
3415
+ __wbg_set_array_layer_count_22afa0a979e4ad55: function(arg0, arg1) {
3416
+ arg0.arrayLayerCount = arg1 >>> 0;
2407
3417
  },
2408
- __wbg_set_antialias_1f699e96763e8a35: function(arg0, arg1) {
2409
- arg0.antialias = arg1 !== 0;
3418
+ __wbg_set_array_stride_f64_6816040e5e7598c3: function(arg0, arg1) {
3419
+ arg0.arrayStride = arg1;
3420
+ },
3421
+ __wbg_set_aspect_9de5253d4c460895: function(arg0, arg1) {
3422
+ arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
3423
+ },
3424
+ __wbg_set_aspect_a48d046965270281: function(arg0, arg1) {
3425
+ arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
3426
+ },
3427
+ __wbg_set_aspect_b1a9909bf315433f: function(arg0, arg1) {
3428
+ arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
3429
+ },
3430
+ __wbg_set_attributes_9e38cb1dde387a5b: function(arg0, arg1, arg2) {
3431
+ arg0.attributes = getArrayJsValueViewFromWasm0(arg1, arg2);
3432
+ },
3433
+ __wbg_set_b_a3297ee7e7cac3a8: function(arg0, arg1) {
3434
+ arg0.b = arg1;
3435
+ },
3436
+ __wbg_set_base_array_layer_2435ba92c80346ae: function(arg0, arg1) {
3437
+ arg0.baseArrayLayer = arg1 >>> 0;
3438
+ },
3439
+ __wbg_set_base_mip_level_8b6093e875e7c65d: function(arg0, arg1) {
3440
+ arg0.baseMipLevel = arg1 >>> 0;
3441
+ },
3442
+ __wbg_set_beginning_of_pass_write_index_e552c5e8b8bbf52f: function(arg0, arg1) {
3443
+ arg0.beginningOfPassWriteIndex = arg1 >>> 0;
3444
+ },
3445
+ __wbg_set_bind_group_layouts_458c44ba55100b82: function(arg0, arg1, arg2) {
3446
+ arg0.bindGroupLayouts = getArrayJsValueViewFromWasm0(arg1, arg2);
3447
+ },
3448
+ __wbg_set_binding_81b3fac7f7acaf8d: function(arg0, arg1) {
3449
+ arg0.binding = arg1 >>> 0;
3450
+ },
3451
+ __wbg_set_binding_b6cee57f35ac5190: function(arg0, arg1) {
3452
+ arg0.binding = arg1 >>> 0;
3453
+ },
3454
+ __wbg_set_blend_1a801617945f7945: function(arg0, arg1) {
3455
+ arg0.blend = arg1;
3456
+ },
3457
+ __wbg_set_buffer_1548ae88a9188037: function(arg0, arg1) {
3458
+ arg0.buffer = arg1;
3459
+ },
3460
+ __wbg_set_buffer_8d0ac64ad20dfc84: function(arg0, arg1) {
3461
+ arg0.buffer = arg1;
3462
+ },
3463
+ __wbg_set_buffer_910a40a90f97cfca: function(arg0, arg1) {
3464
+ arg0.buffer = arg1;
3465
+ },
3466
+ __wbg_set_buffers_5d0e0c50791f710e: function(arg0, arg1, arg2) {
3467
+ arg0.buffers = getArrayJsValueViewFromWasm0(arg1, arg2);
3468
+ },
3469
+ __wbg_set_bytes_per_row_1e824a5502b54b3d: function(arg0, arg1) {
3470
+ arg0.bytesPerRow = arg1 >>> 0;
3471
+ },
3472
+ __wbg_set_bytes_per_row_c28583f0063160f1: function(arg0, arg1) {
3473
+ arg0.bytesPerRow = arg1 >>> 0;
2410
3474
  },
2411
3475
  __wbg_set_cache_7507c4cc5938ccc7: function(arg0, arg1) {
2412
3476
  arg0.cache = __wbindgen_enum_RequestCache[arg1];
2413
3477
  },
3478
+ __wbg_set_clear_value_gpu_color_dict_a9f763e8372ac1de: function(arg0, arg1) {
3479
+ arg0.clearValue = arg1;
3480
+ },
3481
+ __wbg_set_code_5d5b0b9e2fd0dca7: function(arg0, arg1, arg2) {
3482
+ arg0.code = getStringFromWasm0(arg1, arg2);
3483
+ },
3484
+ __wbg_set_color_8ecace4011f47d2e: function(arg0, arg1) {
3485
+ arg0.color = arg1;
3486
+ },
3487
+ __wbg_set_color_attachments_622fe2d5997fda7a: function(arg0, arg1, arg2) {
3488
+ arg0.colorAttachments = getArrayJsValueViewFromWasm0(arg1, arg2);
3489
+ },
2414
3490
  __wbg_set_color_space_conversion_f27e9d866a683b4b: function(arg0, arg1) {
2415
3491
  arg0.colorSpaceConversion = __wbindgen_enum_ColorSpaceConversion[arg1];
2416
3492
  },
2417
- __wbg_set_depth_8b49de49803d4e60: function(arg0, arg1) {
2418
- arg0.depth = arg1 !== 0;
3493
+ __wbg_set_compare_080c9e492ff36990: function(arg0, arg1) {
3494
+ arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
3495
+ },
3496
+ __wbg_set_compare_817cf3695599eaa6: function(arg0, arg1) {
3497
+ arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
3498
+ },
3499
+ __wbg_set_count_8ff0c9474e39a849: function(arg0, arg1) {
3500
+ arg0.count = arg1 >>> 0;
3501
+ },
3502
+ __wbg_set_cull_mode_85d2b4ab0ce3a564: function(arg0, arg1) {
3503
+ arg0.cullMode = __wbindgen_enum_GpuCullMode[arg1];
3504
+ },
3505
+ __wbg_set_depth_bias_95abf479cae3f3cd: function(arg0, arg1) {
3506
+ arg0.depthBias = arg1;
3507
+ },
3508
+ __wbg_set_depth_bias_clamp_ba3d0b8348151350: function(arg0, arg1) {
3509
+ arg0.depthBiasClamp = arg1;
3510
+ },
3511
+ __wbg_set_depth_bias_slope_scale_6b2584d93f5b9cd2: function(arg0, arg1) {
3512
+ arg0.depthBiasSlopeScale = arg1;
3513
+ },
3514
+ __wbg_set_depth_clear_value_e30a4c754c6b3b26: function(arg0, arg1) {
3515
+ arg0.depthClearValue = arg1;
3516
+ },
3517
+ __wbg_set_depth_compare_a90de4e3714397ab: function(arg0, arg1) {
3518
+ arg0.depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
3519
+ },
3520
+ __wbg_set_depth_fail_op_b5c64541d1b6b482: function(arg0, arg1) {
3521
+ arg0.depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
3522
+ },
3523
+ __wbg_set_depth_load_op_932888016d762d3e: function(arg0, arg1) {
3524
+ arg0.depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
3525
+ },
3526
+ __wbg_set_depth_or_array_layers_e2f074a0284e4806: function(arg0, arg1) {
3527
+ arg0.depthOrArrayLayers = arg1 >>> 0;
3528
+ },
3529
+ __wbg_set_depth_read_only_be790175a1c2db9a: function(arg0, arg1) {
3530
+ arg0.depthReadOnly = arg1 !== 0;
3531
+ },
3532
+ __wbg_set_depth_stencil_attachment_54a8922f5fbe08bf: function(arg0, arg1) {
3533
+ arg0.depthStencilAttachment = arg1;
3534
+ },
3535
+ __wbg_set_depth_stencil_b7cffc59ad4da529: function(arg0, arg1) {
3536
+ arg0.depthStencil = arg1;
3537
+ },
3538
+ __wbg_set_depth_store_op_9054814f164ab55d: function(arg0, arg1) {
3539
+ arg0.depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
3540
+ },
3541
+ __wbg_set_depth_write_enabled_31a821ee1fb3b0b3: function(arg0, arg1) {
3542
+ arg0.depthWriteEnabled = arg1 !== 0;
3543
+ },
3544
+ __wbg_set_device_210484a77b675c9c: function(arg0, arg1) {
3545
+ arg0.device = arg1;
3546
+ },
3547
+ __wbg_set_dimension_3da9d03131a9f446: function(arg0, arg1) {
3548
+ arg0.dimension = __wbindgen_enum_GpuTextureDimension[arg1];
3549
+ },
3550
+ __wbg_set_dimension_56332450afa3e0c0: function(arg0, arg1) {
3551
+ arg0.dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
3552
+ },
3553
+ __wbg_set_dst_factor_865ba9aaf187890c: function(arg0, arg1) {
3554
+ arg0.dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
3555
+ },
3556
+ __wbg_set_end_of_pass_write_index_8f164f9e60d4ad16: function(arg0, arg1) {
3557
+ arg0.endOfPassWriteIndex = arg1 >>> 0;
3558
+ },
3559
+ __wbg_set_entries_6f866302103b81e9: function(arg0, arg1, arg2) {
3560
+ arg0.entries = getArrayJsValueViewFromWasm0(arg1, arg2);
3561
+ },
3562
+ __wbg_set_entries_f26b77ab9548e906: function(arg0, arg1, arg2) {
3563
+ arg0.entries = getArrayJsValueViewFromWasm0(arg1, arg2);
3564
+ },
3565
+ __wbg_set_entry_point_71cef95c137b5774: function(arg0, arg1, arg2) {
3566
+ arg0.entryPoint = getStringFromWasm0(arg1, arg2);
3567
+ },
3568
+ __wbg_set_entry_point_b70f98f5025a114d: function(arg0, arg1, arg2) {
3569
+ arg0.entryPoint = getStringFromWasm0(arg1, arg2);
3570
+ },
3571
+ __wbg_set_external_texture_7f966c604c4f8098: function(arg0, arg1) {
3572
+ arg0.externalTexture = arg1;
3573
+ },
3574
+ __wbg_set_fail_op_d59d0187e4111dfe: function(arg0, arg1) {
3575
+ arg0.failOp = __wbindgen_enum_GpuStencilOperation[arg1];
3576
+ },
3577
+ __wbg_set_flip_y_5a9a7c3fd5a2314e: function(arg0, arg1) {
3578
+ arg0.flipY = arg1 !== 0;
3579
+ },
3580
+ __wbg_set_format_23f7f32549751d43: function(arg0, arg1) {
3581
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
3582
+ },
3583
+ __wbg_set_format_283dca56552f07a3: function(arg0, arg1) {
3584
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
3585
+ },
3586
+ __wbg_set_format_5080a858117ad2c1: function(arg0, arg1) {
3587
+ arg0.format = __wbindgen_enum_GpuVertexFormat[arg1];
3588
+ },
3589
+ __wbg_set_format_66735b94bd868ba2: function(arg0, arg1) {
3590
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
3591
+ },
3592
+ __wbg_set_format_7f2bdbfb101b1ae1: function(arg0, arg1) {
3593
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
3594
+ },
3595
+ __wbg_set_format_92732ea75d3b79f5: function(arg0, arg1) {
3596
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
3597
+ },
3598
+ __wbg_set_format_f009e603f7d4c28e: function(arg0, arg1) {
3599
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
3600
+ },
3601
+ __wbg_set_fragment_d2b0ec97d7cf8d47: function(arg0, arg1) {
3602
+ arg0.fragment = arg1;
3603
+ },
3604
+ __wbg_set_front_face_d3f8a2e07e7b25dd: function(arg0, arg1) {
3605
+ arg0.frontFace = __wbindgen_enum_GpuFrontFace[arg1];
3606
+ },
3607
+ __wbg_set_g_b527ee8a9bed553d: function(arg0, arg1) {
3608
+ arg0.g = arg1;
3609
+ },
3610
+ __wbg_set_has_dynamic_offset_0c72ffa900c5a269: function(arg0, arg1) {
3611
+ arg0.hasDynamicOffset = arg1 !== 0;
2419
3612
  },
2420
3613
  __wbg_set_headers_40ad33dcf016613f: function(arg0, arg1) {
2421
3614
  arg0.headers = arg1;
2422
3615
  },
2423
- __wbg_set_power_preference_6ef22d4c8baf517f: function(arg0, arg1) {
2424
- arg0.powerPreference = __wbindgen_enum_WebGlPowerPreference[arg1];
3616
+ __wbg_set_height_c9789c1c77eaedff: function(arg0, arg1) {
3617
+ arg0.height = arg1 >>> 0;
3618
+ },
3619
+ __wbg_set_height_f6619158e5735877: function(arg0, arg1) {
3620
+ arg0.height = arg1 >>> 0;
3621
+ },
3622
+ __wbg_set_height_fde391767df1ce27: function(arg0, arg1) {
3623
+ arg0.height = arg1 >>> 0;
3624
+ },
3625
+ __wbg_set_label_17202740051e9722: function(arg0, arg1, arg2) {
3626
+ arg0.label = getStringFromWasm0(arg1, arg2);
3627
+ },
3628
+ __wbg_set_label_2fefb39c0e0dbbe8: function(arg0, arg1, arg2) {
3629
+ arg0.label = getStringFromWasm0(arg1, arg2);
3630
+ },
3631
+ __wbg_set_label_3cb2322e6f6db14c: function(arg0, arg1, arg2) {
3632
+ arg0.label = getStringFromWasm0(arg1, arg2);
3633
+ },
3634
+ __wbg_set_label_3f2ccaafef5ff7c9: function(arg0, arg1, arg2) {
3635
+ arg0.label = getStringFromWasm0(arg1, arg2);
3636
+ },
3637
+ __wbg_set_label_612add98a4398f92: function(arg0, arg1, arg2) {
3638
+ arg0.label = getStringFromWasm0(arg1, arg2);
3639
+ },
3640
+ __wbg_set_label_70a09ee68d6b1b26: function(arg0, arg1, arg2) {
3641
+ arg0.label = getStringFromWasm0(arg1, arg2);
3642
+ },
3643
+ __wbg_set_label_92cd3811e96b487c: function(arg0, arg1, arg2) {
3644
+ arg0.label = getStringFromWasm0(arg1, arg2);
3645
+ },
3646
+ __wbg_set_label_9c2a186152427ee0: function(arg0, arg1, arg2) {
3647
+ arg0.label = getStringFromWasm0(arg1, arg2);
3648
+ },
3649
+ __wbg_set_label_c3eaf136aa464cba: function(arg0, arg1, arg2) {
3650
+ arg0.label = getStringFromWasm0(arg1, arg2);
3651
+ },
3652
+ __wbg_set_label_c7987704d29f284b: function(arg0, arg1, arg2) {
3653
+ arg0.label = getStringFromWasm0(arg1, arg2);
3654
+ },
3655
+ __wbg_set_label_cfe64bca8945ee30: function(arg0, arg1, arg2) {
3656
+ arg0.label = getStringFromWasm0(arg1, arg2);
3657
+ },
3658
+ __wbg_set_label_e02179cf97e95763: function(arg0, arg1, arg2) {
3659
+ arg0.label = getStringFromWasm0(arg1, arg2);
3660
+ },
3661
+ __wbg_set_label_ee172cd5f6a96961: function(arg0, arg1, arg2) {
3662
+ arg0.label = getStringFromWasm0(arg1, arg2);
3663
+ },
3664
+ __wbg_set_layout_454e3a091b390cd4: function(arg0, arg1) {
3665
+ arg0.layout = arg1;
3666
+ },
3667
+ __wbg_set_layout_75dc1ca3f2421cff: function(arg0, arg1) {
3668
+ arg0.layout = arg1;
3669
+ },
3670
+ __wbg_set_layout_gpu_auto_layout_mode_06a2b95af1043098: function(arg0, arg1) {
3671
+ arg0.layout = __wbindgen_enum_GpuAutoLayoutMode[arg1];
3672
+ },
3673
+ __wbg_set_load_op_c56b1269acc2d51f: function(arg0, arg1) {
3674
+ arg0.loadOp = __wbindgen_enum_GpuLoadOp[arg1];
3675
+ },
3676
+ __wbg_set_lod_max_clamp_db24179f67f3aa31: function(arg0, arg1) {
3677
+ arg0.lodMaxClamp = arg1;
3678
+ },
3679
+ __wbg_set_lod_min_clamp_2bbce566e9fefa04: function(arg0, arg1) {
3680
+ arg0.lodMinClamp = arg1;
3681
+ },
3682
+ __wbg_set_mag_filter_db8e6b42d4f8846d: function(arg0, arg1) {
3683
+ arg0.magFilter = __wbindgen_enum_GpuFilterMode[arg1];
3684
+ },
3685
+ __wbg_set_mapped_at_creation_3f320fef6761b02c: function(arg0, arg1) {
3686
+ arg0.mappedAtCreation = arg1 !== 0;
3687
+ },
3688
+ __wbg_set_mask_c1079e551ec360dc: function(arg0, arg1) {
3689
+ arg0.mask = arg1 >>> 0;
3690
+ },
3691
+ __wbg_set_max_anisotropy_84749fdcec362dc4: function(arg0, arg1) {
3692
+ arg0.maxAnisotropy = arg1;
3693
+ },
3694
+ __wbg_set_min_binding_size_f64_897e3cd4496ddec9: function(arg0, arg1) {
3695
+ arg0.minBindingSize = arg1;
3696
+ },
3697
+ __wbg_set_min_filter_d435bbfc5a637757: function(arg0, arg1) {
3698
+ arg0.minFilter = __wbindgen_enum_GpuFilterMode[arg1];
3699
+ },
3700
+ __wbg_set_mip_level_03ed7bbd0ded367f: function(arg0, arg1) {
3701
+ arg0.mipLevel = arg1 >>> 0;
3702
+ },
3703
+ __wbg_set_mip_level_count_047936c630acee7b: function(arg0, arg1) {
3704
+ arg0.mipLevelCount = arg1 >>> 0;
3705
+ },
3706
+ __wbg_set_mip_level_count_44bc46a1ae6f6daa: function(arg0, arg1) {
3707
+ arg0.mipLevelCount = arg1 >>> 0;
3708
+ },
3709
+ __wbg_set_mip_level_f3745730372683d5: function(arg0, arg1) {
3710
+ arg0.mipLevel = arg1 >>> 0;
3711
+ },
3712
+ __wbg_set_mipmap_filter_62fb49a84b0747ff: function(arg0, arg1) {
3713
+ arg0.mipmapFilter = __wbindgen_enum_GpuMipmapFilterMode[arg1];
3714
+ },
3715
+ __wbg_set_mode_7edfbc344ef9c650: function(arg0, arg1) {
3716
+ arg0.mode = __wbindgen_enum_GpuCanvasToneMappingMode[arg1];
3717
+ },
3718
+ __wbg_set_module_392eeaa269f203b0: function(arg0, arg1) {
3719
+ arg0.module = arg1;
3720
+ },
3721
+ __wbg_set_module_715d37652c4998ec: function(arg0, arg1) {
3722
+ arg0.module = arg1;
3723
+ },
3724
+ __wbg_set_multisample_ff72a7a5456cbeb7: function(arg0, arg1) {
3725
+ arg0.multisample = arg1;
3726
+ },
3727
+ __wbg_set_multisampled_039f032dc4b67367: function(arg0, arg1) {
3728
+ arg0.multisampled = arg1 !== 0;
3729
+ },
3730
+ __wbg_set_offset_f64_127e8a0aa5c5485a: function(arg0, arg1) {
3731
+ arg0.offset = arg1;
3732
+ },
3733
+ __wbg_set_offset_f64_457756429ede426d: function(arg0, arg1) {
3734
+ arg0.offset = arg1;
3735
+ },
3736
+ __wbg_set_offset_f64_a903425d5a8e5815: function(arg0, arg1) {
3737
+ arg0.offset = arg1;
3738
+ },
3739
+ __wbg_set_offset_f64_d1d115dd438165b5: function(arg0, arg1) {
3740
+ arg0.offset = arg1;
3741
+ },
3742
+ __wbg_set_onuncapturederror_bb813f1102da2296: function(arg0, arg1) {
3743
+ arg0.onuncapturederror = arg1;
3744
+ },
3745
+ __wbg_set_operation_00a77386523b88f9: function(arg0, arg1) {
3746
+ arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
3747
+ },
3748
+ __wbg_set_origin_gpu_origin_2d_dict_8156da81552cd590: function(arg0, arg1) {
3749
+ arg0.origin = arg1;
3750
+ },
3751
+ __wbg_set_origin_gpu_origin_3d_dict_0619d4860adb4eb6: function(arg0, arg1) {
3752
+ arg0.origin = arg1;
3753
+ },
3754
+ __wbg_set_origin_gpu_origin_3d_dict_abd0dec737979786: function(arg0, arg1) {
3755
+ arg0.origin = arg1;
3756
+ },
3757
+ __wbg_set_pass_op_3cf10feb3d76ab97: function(arg0, arg1) {
3758
+ arg0.passOp = __wbindgen_enum_GpuStencilOperation[arg1];
3759
+ },
3760
+ __wbg_set_power_preference_b42d00a8facfbade: function(arg0, arg1) {
3761
+ arg0.powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
3762
+ },
3763
+ __wbg_set_premultiplied_alpha_6d23532454ce9a12: function(arg0, arg1) {
3764
+ arg0.premultipliedAlpha = arg1 !== 0;
2425
3765
  },
2426
3766
  __wbg_set_premultiply_alpha_45a4cf9a1e87bfbf: function(arg0, arg1) {
2427
3767
  arg0.premultiplyAlpha = __wbindgen_enum_PremultiplyAlpha[arg1];
2428
3768
  },
3769
+ __wbg_set_primitive_e796cf76f0ff89f3: function(arg0, arg1) {
3770
+ arg0.primitive = arg1;
3771
+ },
3772
+ __wbg_set_query_set_f030702f1b69199f: function(arg0, arg1) {
3773
+ arg0.querySet = arg1;
3774
+ },
3775
+ __wbg_set_r_6ece4d74af63364f: function(arg0, arg1) {
3776
+ arg0.r = arg1;
3777
+ },
3778
+ __wbg_set_required_features_bbab71414c45e621: function(arg0, arg1, arg2) {
3779
+ arg0.requiredFeatures = getArrayJsValueViewFromWasm0(arg1, arg2);
3780
+ },
3781
+ __wbg_set_required_limits_837f62d865e7cfac: function(arg0, arg1) {
3782
+ arg0.requiredLimits = arg1;
3783
+ },
2429
3784
  __wbg_set_resize_height_274433c2f249624d: function(arg0, arg1) {
2430
3785
  arg0.resizeHeight = arg1 >>> 0;
2431
3786
  },
2432
3787
  __wbg_set_resize_width_6f06543b29d1ca48: function(arg0, arg1) {
2433
3788
  arg0.resizeWidth = arg1 >>> 0;
2434
3789
  },
3790
+ __wbg_set_resolve_target_gpu_texture_view_e4c1e3bbb8c27d87: function(arg0, arg1) {
3791
+ arg0.resolveTarget = arg1;
3792
+ },
3793
+ __wbg_set_resource_8fd8658b30d86ecf: function(arg0, arg1) {
3794
+ arg0.resource = arg1;
3795
+ },
3796
+ __wbg_set_resource_gpu_buffer_binding_33099b25da65b610: function(arg0, arg1) {
3797
+ arg0.resource = arg1;
3798
+ },
3799
+ __wbg_set_resource_gpu_texture_view_4cffe7bc7c8e5cbe: function(arg0, arg1) {
3800
+ arg0.resource = arg1;
3801
+ },
3802
+ __wbg_set_rows_per_image_c6d50d227e634379: function(arg0, arg1) {
3803
+ arg0.rowsPerImage = arg1 >>> 0;
3804
+ },
3805
+ __wbg_set_rows_per_image_deb456502f23c260: function(arg0, arg1) {
3806
+ arg0.rowsPerImage = arg1 >>> 0;
3807
+ },
3808
+ __wbg_set_sample_count_481c255a12054e1d: function(arg0, arg1) {
3809
+ arg0.sampleCount = arg1 >>> 0;
3810
+ },
3811
+ __wbg_set_sample_type_ebc5fcd029513bda: function(arg0, arg1) {
3812
+ arg0.sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
3813
+ },
3814
+ __wbg_set_sampler_89cb4a7efcfc6005: function(arg0, arg1) {
3815
+ arg0.sampler = arg1;
3816
+ },
3817
+ __wbg_set_shader_location_3fb9f6a012eba494: function(arg0, arg1) {
3818
+ arg0.shaderLocation = arg1 >>> 0;
3819
+ },
2435
3820
  __wbg_set_signal_2dbd377604627f26: function(arg0, arg1) {
2436
3821
  arg0.signal = arg1;
2437
3822
  },
2438
- __wbg_set_stencil_edc32d9477c7c107: function(arg0, arg1) {
2439
- arg0.stencil = arg1 !== 0;
3823
+ __wbg_set_size_f64_2f591b0654540477: function(arg0, arg1) {
3824
+ arg0.size = arg1;
3825
+ },
3826
+ __wbg_set_size_f64_e844c985b8f95261: function(arg0, arg1) {
3827
+ arg0.size = arg1;
3828
+ },
3829
+ __wbg_set_size_gpu_extent_3d_dict_adf57388ab1d4f18: function(arg0, arg1) {
3830
+ arg0.size = arg1;
3831
+ },
3832
+ __wbg_set_source_211aa06496d82b73: function(arg0, arg1) {
3833
+ arg0.source = arg1;
3834
+ },
3835
+ __wbg_set_source_html_canvas_element_5577621adc0f8ff6: function(arg0, arg1) {
3836
+ arg0.source = arg1;
3837
+ },
3838
+ __wbg_set_source_html_image_element_23fa06e99ca07cc0: function(arg0, arg1) {
3839
+ arg0.source = arg1;
3840
+ },
3841
+ __wbg_set_source_html_video_element_e57b5cacb7b02736: function(arg0, arg1) {
3842
+ arg0.source = arg1;
3843
+ },
3844
+ __wbg_set_source_image_data_c80600573a809775: function(arg0, arg1) {
3845
+ arg0.source = arg1;
3846
+ },
3847
+ __wbg_set_source_offscreen_canvas_7d49271754887b4e: function(arg0, arg1) {
3848
+ arg0.source = arg1;
3849
+ },
3850
+ __wbg_set_source_video_frame_e4faebda27c393e4: function(arg0, arg1) {
3851
+ arg0.source = arg1;
3852
+ },
3853
+ __wbg_set_src_factor_6f2c9ec8e4d3d979: function(arg0, arg1) {
3854
+ arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
3855
+ },
3856
+ __wbg_set_stencil_back_c54d0443b8b6a957: function(arg0, arg1) {
3857
+ arg0.stencilBack = arg1;
3858
+ },
3859
+ __wbg_set_stencil_clear_value_a321b0e045bfd8c2: function(arg0, arg1) {
3860
+ arg0.stencilClearValue = arg1 >>> 0;
3861
+ },
3862
+ __wbg_set_stencil_front_3ff3f8385852efff: function(arg0, arg1) {
3863
+ arg0.stencilFront = arg1;
3864
+ },
3865
+ __wbg_set_stencil_load_op_37d20deccb26a0f1: function(arg0, arg1) {
3866
+ arg0.stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
3867
+ },
3868
+ __wbg_set_stencil_read_mask_021ef4271b24352c: function(arg0, arg1) {
3869
+ arg0.stencilReadMask = arg1 >>> 0;
3870
+ },
3871
+ __wbg_set_stencil_read_only_75fe66a2356d6e92: function(arg0, arg1) {
3872
+ arg0.stencilReadOnly = arg1 !== 0;
3873
+ },
3874
+ __wbg_set_stencil_store_op_501f91638dd386e6: function(arg0, arg1) {
3875
+ arg0.stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
3876
+ },
3877
+ __wbg_set_stencil_write_mask_ec1c12237e094bdd: function(arg0, arg1) {
3878
+ arg0.stencilWriteMask = arg1 >>> 0;
3879
+ },
3880
+ __wbg_set_step_mode_3cbbdeba1e5dfd62: function(arg0, arg1) {
3881
+ arg0.stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
3882
+ },
3883
+ __wbg_set_storage_texture_786aea7c5773b6c1: function(arg0, arg1) {
3884
+ arg0.storageTexture = arg1;
3885
+ },
3886
+ __wbg_set_store_op_678f33376d741711: function(arg0, arg1) {
3887
+ arg0.storeOp = __wbindgen_enum_GpuStoreOp[arg1];
3888
+ },
3889
+ __wbg_set_strip_index_format_70313df755145d5e: function(arg0, arg1) {
3890
+ arg0.stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
3891
+ },
3892
+ __wbg_set_targets_674b33931e512fb1: function(arg0, arg1, arg2) {
3893
+ arg0.targets = getArrayJsValueViewFromWasm0(arg1, arg2);
3894
+ },
3895
+ __wbg_set_texture_4e0ee4c98ac25b81: function(arg0, arg1) {
3896
+ arg0.texture = arg1;
3897
+ },
3898
+ __wbg_set_texture_95f2bfdf7767e76f: function(arg0, arg1) {
3899
+ arg0.texture = arg1;
3900
+ },
3901
+ __wbg_set_texture_a33be3fe02ac6264: function(arg0, arg1) {
3902
+ arg0.texture = arg1;
3903
+ },
3904
+ __wbg_set_timestamp_writes_de6a09f299b71b76: function(arg0, arg1) {
3905
+ arg0.timestampWrites = arg1;
3906
+ },
3907
+ __wbg_set_tone_mapping_320c1aad31db2e7f: function(arg0, arg1) {
3908
+ arg0.toneMapping = arg1;
3909
+ },
3910
+ __wbg_set_topology_b92cfe523bd9653b: function(arg0, arg1) {
3911
+ arg0.topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
3912
+ },
3913
+ __wbg_set_type_43e0092f16775979: function(arg0, arg1) {
3914
+ arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
3915
+ },
3916
+ __wbg_set_type_79cec55caf4cdb6d: function(arg0, arg1) {
3917
+ arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
3918
+ },
3919
+ __wbg_set_type_dcf75b2afa60c694: function(arg0, arg1, arg2) {
3920
+ arg0.type = getStringFromWasm0(arg1, arg2);
3921
+ },
3922
+ __wbg_set_unclipped_depth_32b7caf29fa5633d: function(arg0, arg1) {
3923
+ arg0.unclippedDepth = arg1 !== 0;
3924
+ },
3925
+ __wbg_set_usage_1ee33d98267e787d: function(arg0, arg1) {
3926
+ arg0.usage = arg1 >>> 0;
3927
+ },
3928
+ __wbg_set_usage_2365e2704b1fdb10: function(arg0, arg1) {
3929
+ arg0.usage = arg1 >>> 0;
3930
+ },
3931
+ __wbg_set_usage_d53ee6f0c7aedbfa: function(arg0, arg1) {
3932
+ arg0.usage = arg1 >>> 0;
3933
+ },
3934
+ __wbg_set_usage_f3e34822998d2147: function(arg0, arg1) {
3935
+ arg0.usage = arg1 >>> 0;
3936
+ },
3937
+ __wbg_set_vertex_77ed7a1229239b5a: function(arg0, arg1) {
3938
+ arg0.vertex = arg1;
3939
+ },
3940
+ __wbg_set_view_dimension_893e2d16561e56e8: function(arg0, arg1) {
3941
+ arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
3942
+ },
3943
+ __wbg_set_view_dimension_f2c5fe4bf927c3fe: function(arg0, arg1) {
3944
+ arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
3945
+ },
3946
+ __wbg_set_view_formats_427069064d8b7139: function(arg0, arg1, arg2) {
3947
+ arg0.viewFormats = getArrayJsValueViewFromWasm0(arg1, arg2);
3948
+ },
3949
+ __wbg_set_view_formats_9c2f01a6f3b365c7: function(arg0, arg1, arg2) {
3950
+ arg0.viewFormats = getArrayJsValueViewFromWasm0(arg1, arg2);
3951
+ },
3952
+ __wbg_set_view_gpu_texture_view_35f4655788535c4d: function(arg0, arg1) {
3953
+ arg0.view = arg1;
3954
+ },
3955
+ __wbg_set_view_gpu_texture_view_a532c825c52042c0: function(arg0, arg1) {
3956
+ arg0.view = arg1;
3957
+ },
3958
+ __wbg_set_visibility_d8a6821789538c25: function(arg0, arg1) {
3959
+ arg0.visibility = arg1 >>> 0;
3960
+ },
3961
+ __wbg_set_width_0ca908d167690992: function(arg0, arg1) {
3962
+ arg0.width = arg1 >>> 0;
3963
+ },
3964
+ __wbg_set_width_b0e1267db4b196b5: function(arg0, arg1) {
3965
+ arg0.width = arg1 >>> 0;
3966
+ },
3967
+ __wbg_set_width_b20525f5f4df4eb8: function(arg0, arg1) {
3968
+ arg0.width = arg1 >>> 0;
3969
+ },
3970
+ __wbg_set_write_mask_42d89f182ade6b2d: function(arg0, arg1) {
3971
+ arg0.writeMask = arg1 >>> 0;
3972
+ },
3973
+ __wbg_set_x_58965df5af1ad27d: function(arg0, arg1) {
3974
+ arg0.x = arg1 >>> 0;
3975
+ },
3976
+ __wbg_set_x_f470b03dd54724cd: function(arg0, arg1) {
3977
+ arg0.x = arg1 >>> 0;
3978
+ },
3979
+ __wbg_set_y_4c44eb40ebca5bfc: function(arg0, arg1) {
3980
+ arg0.y = arg1 >>> 0;
3981
+ },
3982
+ __wbg_set_y_b79cba22b145de99: function(arg0, arg1) {
3983
+ arg0.y = arg1 >>> 0;
3984
+ },
3985
+ __wbg_set_z_2e6820ef0f5821ed: function(arg0, arg1) {
3986
+ arg0.z = arg1 >>> 0;
2440
3987
  },
2441
3988
  __wbg_shaderSource_06379dac249994dd: function(arg0, arg1, arg2, arg3) {
2442
3989
  arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
@@ -2448,10 +3995,6 @@ function __wbg_get_imports() {
2448
3995
  const ret = arg0.signal;
2449
3996
  return ret;
2450
3997
  },
2451
- __wbg_size_74c48d7329291685: function(arg0) {
2452
- const ret = arg0.size;
2453
- return ret;
2454
- },
2455
3998
  __wbg_static_accessor_GLOBAL_266715b9d96ba635: function() {
2456
3999
  const ret = typeof global === 'undefined' ? null : global;
2457
4000
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -2472,11 +4015,17 @@ function __wbg_get_imports() {
2472
4015
  const ret = arg0.status;
2473
4016
  return ret;
2474
4017
  },
2475
- __wbg_stencilFunc_aa3cd8856be514c4: function(arg0, arg1, arg2, arg3) {
2476
- arg0.stencilFunc(arg1 >>> 0, arg2, arg3 >>> 0);
4018
+ __wbg_stencilFuncSeparate_3f31dcd12a0d4785: function(arg0, arg1, arg2, arg3, arg4) {
4019
+ arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
4020
+ },
4021
+ __wbg_stencilFuncSeparate_f168b66c597aa85f: function(arg0, arg1, arg2, arg3, arg4) {
4022
+ arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
4023
+ },
4024
+ __wbg_stencilMaskSeparate_b30c097ea6b98504: function(arg0, arg1, arg2) {
4025
+ arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
2477
4026
  },
2478
- __wbg_stencilFunc_bab7e0b7c443f093: function(arg0, arg1, arg2, arg3) {
2479
- arg0.stencilFunc(arg1 >>> 0, arg2, arg3 >>> 0);
4027
+ __wbg_stencilMaskSeparate_ff739f8711e9fd42: function(arg0, arg1, arg2) {
4028
+ arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
2480
4029
  },
2481
4030
  __wbg_stencilMask_9e18cc018897c747: function(arg0, arg1) {
2482
4031
  arg0.stencilMask(arg1 >>> 0);
@@ -2490,11 +4039,20 @@ function __wbg_get_imports() {
2490
4039
  __wbg_stencilOpSeparate_c5af5f5dbd237bea: function(arg0, arg1, arg2, arg3, arg4) {
2491
4040
  arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
2492
4041
  },
2493
- __wbg_stencilOp_12274af665ab8a00: function(arg0, arg1, arg2, arg3) {
2494
- arg0.stencilOp(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
4042
+ __wbg_subarray_002b94d5e13d1411: function(arg0, arg1, arg2) {
4043
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
4044
+ return ret;
4045
+ },
4046
+ __wbg_subgroupMaxSize_b43be0aa16182403: function(arg0) {
4047
+ const ret = arg0.subgroupMaxSize;
4048
+ return ret;
4049
+ },
4050
+ __wbg_subgroupMinSize_03feb6ee0cda6775: function(arg0) {
4051
+ const ret = arg0.subgroupMinSize;
4052
+ return ret;
2495
4053
  },
2496
- __wbg_stencilOp_2697194654fee819: function(arg0, arg1, arg2, arg3) {
2497
- arg0.stencilOp(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
4054
+ __wbg_submit_077c85cc28e36892: function(arg0, arg1, arg2) {
4055
+ arg0.submit(getArrayJsValueViewFromWasm0(arg1, arg2));
2498
4056
  },
2499
4057
  __wbg_texImage2D_82bf2b4c8aa9a1db: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2500
4058
  arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
@@ -2505,6 +4063,12 @@ function __wbg_get_imports() {
2505
4063
  __wbg_texImage2D_ca3d0fe24620ec85: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2506
4064
  arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2507
4065
  }, arguments); },
4066
+ __wbg_texImage3D_29a847f33877ed12: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
4067
+ arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10);
4068
+ }, arguments); },
4069
+ __wbg_texImage3D_78fb39719c620063: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
4070
+ arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10);
4071
+ }, arguments); },
2508
4072
  __wbg_texParameteri_647fdb1426809cb5: function(arg0, arg1, arg2, arg3) {
2509
4073
  arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
2510
4074
  },
@@ -2517,21 +4081,48 @@ function __wbg_get_imports() {
2517
4081
  __wbg_texStorage3D_74b701c2b176380c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2518
4082
  arg0.texStorage3D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6);
2519
4083
  },
4084
+ __wbg_texSubImage2D_07337d0974e99c39: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
4085
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
4086
+ }, arguments); },
4087
+ __wbg_texSubImage2D_196472d4111ce5b6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
4088
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
4089
+ }, arguments); },
4090
+ __wbg_texSubImage2D_24cf5097ebaa84cc: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
4091
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
4092
+ }, arguments); },
2520
4093
  __wbg_texSubImage2D_31a0c2797aa04f32: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2521
4094
  arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2522
4095
  }, arguments); },
2523
4096
  __wbg_texSubImage2D_5e90c7a719d40256: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2524
4097
  arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2525
4098
  }, arguments); },
4099
+ __wbg_texSubImage2D_64e36398b8f046ac: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
4100
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
4101
+ }, arguments); },
2526
4102
  __wbg_texSubImage2D_bb322aae90f7657f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2527
4103
  arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2528
4104
  }, arguments); },
4105
+ __wbg_texSubImage2D_d7bffff06a3b8315: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
4106
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
4107
+ }, arguments); },
4108
+ __wbg_texSubImage3D_001f2e62ed945b72: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
4109
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
4110
+ }, arguments); },
2529
4111
  __wbg_texSubImage3D_5143d5af7e182ddc: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2530
4112
  arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2531
4113
  }, arguments); },
4114
+ __wbg_texSubImage3D_53c6014e2d129891: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
4115
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
4116
+ }, arguments); },
2532
4117
  __wbg_texSubImage3D_5d773fc7a8cd4d08: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2533
4118
  arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2534
4119
  }, arguments); },
4120
+ __wbg_texSubImage3D_adb96e37e6949ec9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
4121
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
4122
+ }, arguments); },
4123
+ __wbg_texSubImage3D_d4e74595e01f7f71: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
4124
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
4125
+ }, arguments); },
2535
4126
  __wbg_texSubImage3D_e0d113b7047a5130: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2536
4127
  arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2537
4128
  }, arguments); },
@@ -2543,9 +4134,8 @@ function __wbg_get_imports() {
2543
4134
  const ret = arg0.then(arg1);
2544
4135
  return ret;
2545
4136
  },
2546
- __wbg_type_ff6f7b321fe8478b: function(arg0) {
2547
- const ret = arg0.type;
2548
- return ret;
4137
+ __wbg_unconfigure_835307f58dc68d80: function(arg0) {
4138
+ arg0.unconfigure();
2549
4139
  },
2550
4140
  __wbg_uniform1f_9cfecfaeb8cf43c1: function(arg0, arg1, arg2) {
2551
4141
  arg0.uniform1f(arg1, arg2);
@@ -2553,36 +4143,15 @@ function __wbg_get_imports() {
2553
4143
  __wbg_uniform1f_b5856e35a43b65a1: function(arg0, arg1, arg2) {
2554
4144
  arg0.uniform1f(arg1, arg2);
2555
4145
  },
2556
- __wbg_uniform1fv_1bf537fc926ef8b9: function(arg0, arg1, arg2, arg3) {
2557
- arg0.uniform1fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2558
- },
2559
- __wbg_uniform1fv_1cc1d09bc13b03bf: function(arg0, arg1, arg2, arg3) {
2560
- arg0.uniform1fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2561
- },
2562
4146
  __wbg_uniform1i_531b98c4a7177366: function(arg0, arg1, arg2) {
2563
4147
  arg0.uniform1i(arg1, arg2);
2564
4148
  },
2565
4149
  __wbg_uniform1i_fc2dc8cadc49d8ec: function(arg0, arg1, arg2) {
2566
4150
  arg0.uniform1i(arg1, arg2);
2567
4151
  },
2568
- __wbg_uniform1iv_4b8cbceccddfaa62: function(arg0, arg1, arg2, arg3) {
2569
- arg0.uniform1iv(arg1, getArrayI32FromWasm0(arg2, arg3));
2570
- },
2571
- __wbg_uniform1iv_8fc880ae80c77c74: function(arg0, arg1, arg2, arg3) {
2572
- arg0.uniform1iv(arg1, getArrayI32FromWasm0(arg2, arg3));
2573
- },
2574
4152
  __wbg_uniform1ui_353c67ec681b540c: function(arg0, arg1, arg2) {
2575
4153
  arg0.uniform1ui(arg1, arg2 >>> 0);
2576
4154
  },
2577
- __wbg_uniform1uiv_ad5e946730aacbec: function(arg0, arg1, arg2, arg3) {
2578
- arg0.uniform1uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
2579
- },
2580
- __wbg_uniform2f_131da2d4bf17e4b9: function(arg0, arg1, arg2, arg3) {
2581
- arg0.uniform2f(arg1, arg2, arg3);
2582
- },
2583
- __wbg_uniform2f_a92b5bb95dc5b4d9: function(arg0, arg1, arg2, arg3) {
2584
- arg0.uniform2f(arg1, arg2, arg3);
2585
- },
2586
4155
  __wbg_uniform2fv_319c49f0ce340f26: function(arg0, arg1, arg2, arg3) {
2587
4156
  arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2588
4157
  },
@@ -2598,12 +4167,6 @@ function __wbg_get_imports() {
2598
4167
  __wbg_uniform2uiv_c95af5fb653ccb86: function(arg0, arg1, arg2, arg3) {
2599
4168
  arg0.uniform2uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
2600
4169
  },
2601
- __wbg_uniform3f_1211579ff87ccfad: function(arg0, arg1, arg2, arg3, arg4) {
2602
- arg0.uniform3f(arg1, arg2, arg3, arg4);
2603
- },
2604
- __wbg_uniform3f_ee105161897ee48a: function(arg0, arg1, arg2, arg3, arg4) {
2605
- arg0.uniform3f(arg1, arg2, arg3, arg4);
2606
- },
2607
4170
  __wbg_uniform3fv_055ea5ac38af4fce: function(arg0, arg1, arg2, arg3) {
2608
4171
  arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2609
4172
  },
@@ -2640,24 +4203,58 @@ function __wbg_get_imports() {
2640
4203
  __wbg_uniform4uiv_a6fb3237d9df7ed4: function(arg0, arg1, arg2, arg3) {
2641
4204
  arg0.uniform4uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
2642
4205
  },
4206
+ __wbg_uniformBlockBinding_07116582301fb019: function(arg0, arg1, arg2, arg3) {
4207
+ arg0.uniformBlockBinding(arg1, arg2 >>> 0, arg3 >>> 0);
4208
+ },
4209
+ __wbg_uniformMatrix2fv_34b2245136106a2f: function(arg0, arg1, arg2, arg3, arg4) {
4210
+ arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
4211
+ },
4212
+ __wbg_uniformMatrix2fv_611c7fcb378f057e: function(arg0, arg1, arg2, arg3, arg4) {
4213
+ arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
4214
+ },
4215
+ __wbg_uniformMatrix2x3fv_6b33a76d09b6c00f: function(arg0, arg1, arg2, arg3, arg4) {
4216
+ arg0.uniformMatrix2x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
4217
+ },
4218
+ __wbg_uniformMatrix2x4fv_66c787e2d0a5dd0a: function(arg0, arg1, arg2, arg3, arg4) {
4219
+ arg0.uniformMatrix2x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
4220
+ },
2643
4221
  __wbg_uniformMatrix3fv_472e7824735acce1: function(arg0, arg1, arg2, arg3, arg4) {
2644
4222
  arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2645
4223
  },
2646
4224
  __wbg_uniformMatrix3fv_83fdc9c3c0d43204: function(arg0, arg1, arg2, arg3, arg4) {
2647
4225
  arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2648
4226
  },
4227
+ __wbg_uniformMatrix3x2fv_33df849b78b8556e: function(arg0, arg1, arg2, arg3, arg4) {
4228
+ arg0.uniformMatrix3x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
4229
+ },
4230
+ __wbg_uniformMatrix3x4fv_8914dc5121a813b4: function(arg0, arg1, arg2, arg3, arg4) {
4231
+ arg0.uniformMatrix3x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
4232
+ },
2649
4233
  __wbg_uniformMatrix4fv_dff9738d995fd0b1: function(arg0, arg1, arg2, arg3, arg4) {
2650
4234
  arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2651
4235
  },
2652
4236
  __wbg_uniformMatrix4fv_e691d7f14d3609f7: function(arg0, arg1, arg2, arg3, arg4) {
2653
4237
  arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2654
4238
  },
4239
+ __wbg_uniformMatrix4x2fv_1c9ccf4427b82548: function(arg0, arg1, arg2, arg3, arg4) {
4240
+ arg0.uniformMatrix4x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
4241
+ },
4242
+ __wbg_uniformMatrix4x3fv_a84b16e0a7abee2c: function(arg0, arg1, arg2, arg3, arg4) {
4243
+ arg0.uniformMatrix4x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
4244
+ },
4245
+ __wbg_unmap_6a96b14c9ef5f7f5: function(arg0) {
4246
+ arg0.unmap();
4247
+ },
2655
4248
  __wbg_useProgram_5bdae58fd9f9826f: function(arg0, arg1) {
2656
4249
  arg0.useProgram(arg1);
2657
4250
  },
2658
4251
  __wbg_useProgram_e075c2902e420761: function(arg0, arg1) {
2659
4252
  arg0.useProgram(arg1);
2660
4253
  },
4254
+ __wbg_valueOf_02fd4d101b7553c7: function(arg0) {
4255
+ const ret = arg0.valueOf();
4256
+ return ret;
4257
+ },
2661
4258
  __wbg_vertexAttribDivisorANGLE_659fb027198a47c3: function(arg0, arg1, arg2) {
2662
4259
  arg0.vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0);
2663
4260
  },
@@ -2673,6 +4270,14 @@ function __wbg_get_imports() {
2673
4270
  __wbg_vertexAttribPointer_54d56b18f71a946d: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2674
4271
  arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
2675
4272
  },
4273
+ __wbg_videoHeight_4070b88110b1ac0d: function(arg0) {
4274
+ const ret = arg0.videoHeight;
4275
+ return ret;
4276
+ },
4277
+ __wbg_videoWidth_ea74d0fb1493f025: function(arg0) {
4278
+ const ret = arg0.videoWidth;
4279
+ return ret;
4280
+ },
2676
4281
  __wbg_viewport_16936692526e2ce6: function(arg0, arg1, arg2, arg3, arg4) {
2677
4282
  arg0.viewport(arg1, arg2, arg3, arg4);
2678
4283
  },
@@ -2682,56 +4287,98 @@ function __wbg_get_imports() {
2682
4287
  __wbg_warn_13abc63e0d4b3527: function(arg0) {
2683
4288
  console.warn(arg0);
2684
4289
  },
4290
+ __wbg_width_3b5d66c5eac1eb28: function(arg0) {
4291
+ const ret = arg0.width;
4292
+ return ret;
4293
+ },
4294
+ __wbg_width_3d0dce3d9892e35e: function(arg0) {
4295
+ const ret = arg0.width;
4296
+ return ret;
4297
+ },
4298
+ __wbg_width_7a1b335e4a553dc3: function(arg0) {
4299
+ const ret = arg0.width;
4300
+ return ret;
4301
+ },
2685
4302
  __wbg_width_8a9cc26363f10d5f: function(arg0) {
2686
4303
  const ret = arg0.width;
2687
4304
  return ret;
2688
4305
  },
4306
+ __wbg_width_c9bfe09197f3b26e: function(arg0) {
4307
+ const ret = arg0.width;
4308
+ return ret;
4309
+ },
4310
+ __wbg_writeBuffer_f4bb3f54adfe1330: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
4311
+ arg0.writeBuffer(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), arg5, arg6);
4312
+ }, arguments); },
4313
+ __wbg_writeTexture_30e592e8c061c3d9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
4314
+ arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
4315
+ }, arguments); },
2689
4316
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
2690
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 122, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2691
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true_);
4317
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2389, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
4318
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wasm_bindgen_4346cdda5a9d72ac___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4346cdda5a9d72ac___JsError___true_);
4319
+ return ret;
4320
+ },
4321
+ __wbindgen_generic_0000000000000002: function(arg0, arg1) {
4322
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 322, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
4323
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wasm_bindgen_4346cdda5a9d72ac___sys__JsNullable_wgpu_ce7204c20056c03e___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4346cdda5a9d72ac___JsError___true_);
4324
+ return ret;
4325
+ },
4326
+ __wbindgen_generic_0000000000000003: function(arg0, arg1) {
4327
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 326, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4328
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wgpu_ce7204c20056c03e___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_);
4329
+ return ret;
4330
+ },
4331
+ __wbindgen_generic_0000000000000004: function(arg0, arg1) {
4332
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 322, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
4333
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wasm_bindgen_4346cdda5a9d72ac___sys__JsNullable_wgpu_ce7204c20056c03e___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4346cdda5a9d72ac___JsError___true__132);
4334
+ return ret;
4335
+ },
4336
+ __wbindgen_generic_0000000000000005: function(arg0, arg1) {
4337
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 322, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
4338
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wasm_bindgen_4346cdda5a9d72ac___sys__JsNullable_wgpu_ce7204c20056c03e___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4346cdda5a9d72ac___JsError___true__133);
2692
4339
  return ret;
2693
4340
  },
2694
- __wbindgen_generic_0000000000000002: function(arg0) {
4341
+ __wbindgen_generic_0000000000000006: function(arg0) {
2695
4342
  // Cast intrinsic for `F64 -> Externref`.
2696
4343
  const ret = arg0;
2697
4344
  return ret;
2698
4345
  },
2699
- __wbindgen_generic_0000000000000003: function(arg0, arg1) {
4346
+ __wbindgen_generic_0000000000000007: function(arg0, arg1) {
2700
4347
  // Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
2701
4348
  const ret = getArrayF32FromWasm0(arg0, arg1);
2702
4349
  return ret;
2703
4350
  },
2704
- __wbindgen_generic_0000000000000004: function(arg0, arg1) {
4351
+ __wbindgen_generic_0000000000000008: function(arg0, arg1) {
2705
4352
  // Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
2706
4353
  const ret = getArrayI16FromWasm0(arg0, arg1);
2707
4354
  return ret;
2708
4355
  },
2709
- __wbindgen_generic_0000000000000005: function(arg0, arg1) {
4356
+ __wbindgen_generic_0000000000000009: function(arg0, arg1) {
2710
4357
  // Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
2711
4358
  const ret = getArrayI32FromWasm0(arg0, arg1);
2712
4359
  return ret;
2713
4360
  },
2714
- __wbindgen_generic_0000000000000006: function(arg0, arg1) {
4361
+ __wbindgen_generic_000000000000000a: function(arg0, arg1) {
2715
4362
  // Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
2716
4363
  const ret = getArrayI8FromWasm0(arg0, arg1);
2717
4364
  return ret;
2718
4365
  },
2719
- __wbindgen_generic_0000000000000007: function(arg0, arg1) {
4366
+ __wbindgen_generic_000000000000000b: function(arg0, arg1) {
2720
4367
  // Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
2721
4368
  const ret = getArrayU16FromWasm0(arg0, arg1);
2722
4369
  return ret;
2723
4370
  },
2724
- __wbindgen_generic_0000000000000008: function(arg0, arg1) {
4371
+ __wbindgen_generic_000000000000000c: function(arg0, arg1) {
2725
4372
  // Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
2726
4373
  const ret = getArrayU32FromWasm0(arg0, arg1);
2727
4374
  return ret;
2728
4375
  },
2729
- __wbindgen_generic_0000000000000009: function(arg0, arg1) {
4376
+ __wbindgen_generic_000000000000000d: function(arg0, arg1) {
2730
4377
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
2731
4378
  const ret = getArrayU8FromWasm0(arg0, arg1);
2732
4379
  return ret;
2733
4380
  },
2734
- __wbindgen_generic_000000000000000a: function(arg0, arg1) {
4381
+ __wbindgen_generic_000000000000000e: function(arg0, arg1) {
2735
4382
  // Cast intrinsic for `Ref(String) -> Externref`.
2736
4383
  const ret = getStringFromWasm0(arg0, arg1);
2737
4384
  return ret;
@@ -2748,32 +4395,138 @@ function __wbg_get_imports() {
2748
4395
  };
2749
4396
  return {
2750
4397
  __proto__: null,
2751
- "./isard_core_bg.js": import0,
4398
+ "./isard_webgl2_bg.js": import0,
2752
4399
  };
2753
4400
  }
2754
4401
 
2755
- function wasm_bindgen_2e566c63402fe7fa___convert__closures_____invoke___wasm_bindgen_2e566c63402fe7fa___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_2e566c63402fe7fa___JsError___true_(arg0, arg1, arg2) {
2756
- 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);
4402
+ function wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wgpu_ce7204c20056c03e___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_(arg0, arg1, arg2) {
4403
+ wasm.wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wgpu_ce7204c20056c03e___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_(arg0, arg1, arg2);
4404
+ }
4405
+
4406
+ function wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wasm_bindgen_4346cdda5a9d72ac___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4346cdda5a9d72ac___JsError___true_(arg0, arg1, arg2) {
4407
+ const ret = wasm.wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wasm_bindgen_4346cdda5a9d72ac___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4346cdda5a9d72ac___JsError___true_(arg0, arg1, arg2);
4408
+ if (ret[1]) {
4409
+ throw takeFromExternrefTable0(ret[0]);
4410
+ }
4411
+ }
4412
+
4413
+ function wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wasm_bindgen_4346cdda5a9d72ac___sys__JsNullable_wgpu_ce7204c20056c03e___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4346cdda5a9d72ac___JsError___true_(arg0, arg1, arg2) {
4414
+ const ret = wasm.wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wasm_bindgen_4346cdda5a9d72ac___sys__JsNullable_wgpu_ce7204c20056c03e___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4346cdda5a9d72ac___JsError___true_(arg0, arg1, arg2);
4415
+ if (ret[1]) {
4416
+ throw takeFromExternrefTable0(ret[0]);
4417
+ }
4418
+ }
4419
+
4420
+ function wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wasm_bindgen_4346cdda5a9d72ac___sys__JsNullable_wgpu_ce7204c20056c03e___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4346cdda5a9d72ac___JsError___true__132(arg0, arg1, arg2) {
4421
+ const ret = wasm.wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wasm_bindgen_4346cdda5a9d72ac___sys__JsNullable_wgpu_ce7204c20056c03e___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4346cdda5a9d72ac___JsError___true__132(arg0, arg1, arg2);
2757
4422
  if (ret[1]) {
2758
4423
  throw takeFromExternrefTable0(ret[0]);
2759
4424
  }
2760
4425
  }
2761
4426
 
2762
- 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) {
2763
- 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);
4427
+ function wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wasm_bindgen_4346cdda5a9d72ac___sys__JsNullable_wgpu_ce7204c20056c03e___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4346cdda5a9d72ac___JsError___true__133(arg0, arg1, arg2) {
4428
+ const ret = wasm.wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___wasm_bindgen_4346cdda5a9d72ac___sys__JsNullable_wgpu_ce7204c20056c03e___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_4346cdda5a9d72ac___JsError___true__133(arg0, arg1, arg2);
4429
+ if (ret[1]) {
4430
+ throw takeFromExternrefTable0(ret[0]);
4431
+ }
4432
+ }
4433
+
4434
+ function wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___js_sys_5e75a17f0680aa0e___Function_fn_wasm_bindgen_4346cdda5a9d72ac___JsValue_____wasm_bindgen_4346cdda5a9d72ac___sys__Undefined___js_sys_5e75a17f0680aa0e___Function_fn_wasm_bindgen_4346cdda5a9d72ac___JsValue_____wasm_bindgen_4346cdda5a9d72ac___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
4435
+ wasm.wasm_bindgen_4346cdda5a9d72ac___convert__closures_____invoke___js_sys_5e75a17f0680aa0e___Function_fn_wasm_bindgen_4346cdda5a9d72ac___JsValue_____wasm_bindgen_4346cdda5a9d72ac___sys__Undefined___js_sys_5e75a17f0680aa0e___Function_fn_wasm_bindgen_4346cdda5a9d72ac___JsValue_____wasm_bindgen_4346cdda5a9d72ac___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
2764
4436
  }
2765
4437
 
2766
4438
 
2767
4439
  const __wbindgen_enum_ColorSpaceConversion = ["none", "default"];
2768
4440
 
2769
4441
 
2770
- const __wbindgen_enum_PremultiplyAlpha = ["none", "premultiply", "default"];
4442
+ const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
2771
4443
 
2772
4444
 
2773
- const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
4445
+ const __wbindgen_enum_GpuAutoLayoutMode = ["auto"];
4446
+
4447
+
4448
+ 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"];
4449
+
4450
+
4451
+ const __wbindgen_enum_GpuBlendOperation = ["add", "subtract", "reverse-subtract", "min", "max"];
4452
+
4453
+
4454
+ const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
4455
+
4456
+
4457
+ const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
4458
+
4459
+
4460
+ const __wbindgen_enum_GpuCanvasToneMappingMode = ["standard", "extended"];
4461
+
4462
+
4463
+ const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
4464
+
4465
+
4466
+ const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
4467
+
4468
+
4469
+ const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
4470
+
4471
+
4472
+ const __wbindgen_enum_GpuFilterMode = ["nearest", "linear"];
4473
+
4474
+
4475
+ const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
4476
+
4477
+
4478
+ const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
4479
+
4480
+
4481
+ const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
4482
+
4483
+
4484
+ const __wbindgen_enum_GpuMipmapFilterMode = ["nearest", "linear"];
4485
+
4486
+
4487
+ const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
4488
+
2774
4489
 
4490
+ const __wbindgen_enum_GpuPrimitiveTopology = ["point-list", "line-list", "line-strip", "triangle-list", "triangle-strip"];
2775
4491
 
2776
- const __wbindgen_enum_WebGlPowerPreference = ["default", "low-power", "high-performance"];
4492
+
4493
+ const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
4494
+
4495
+
4496
+ const __wbindgen_enum_GpuStencilOperation = ["keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap"];
4497
+
4498
+
4499
+ const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
4500
+
4501
+
4502
+ const __wbindgen_enum_GpuStoreOp = ["store", "discard"];
4503
+
4504
+
4505
+ const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
4506
+
4507
+
4508
+ const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
4509
+
4510
+
4511
+ 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"];
4512
+
4513
+
4514
+ const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
4515
+
4516
+
4517
+ const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
4518
+
4519
+
4520
+ 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"];
4521
+
4522
+
4523
+ const __wbindgen_enum_GpuVertexStepMode = ["vertex", "instance"];
4524
+
4525
+
4526
+ const __wbindgen_enum_PremultiplyAlpha = ["none", "premultiply", "default"];
4527
+
4528
+
4529
+ const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
2777
4530
  const EngineFinalization = (typeof FinalizationRegistry === 'undefined')
2778
4531
  ? { register: () => {}, unregister: () => {} }
2779
4532
  : new FinalizationRegistry(ptr => wasm.__wbg_engine_free(ptr, 1));
@@ -2878,6 +4631,16 @@ function getArrayI8FromWasm0(ptr, len) {
2878
4631
  return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
2879
4632
  }
2880
4633
 
4634
+ function getArrayJsValueViewFromWasm0(ptr, len) {
4635
+ ptr = ptr >>> 0;
4636
+ const mem = getDataViewMemory0();
4637
+ const result = [];
4638
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
4639
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
4640
+ }
4641
+ return result;
4642
+ }
4643
+
2881
4644
  function getArrayU16FromWasm0(ptr, len) {
2882
4645
  ptr = ptr >>> 0;
2883
4646
  return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
@@ -3217,7 +4980,7 @@ async function __wbg_init(module_or_path) {
3217
4980
  }
3218
4981
 
3219
4982
  if (module_or_path === undefined) {
3220
- module_or_path = new URL('isard_core_bg.wasm', import.meta.url);
4983
+ module_or_path = new URL('isard_webgl2_bg.wasm', import.meta.url);
3221
4984
  }
3222
4985
  const imports = __wbg_get_imports();
3223
4986