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