@vulfram/transport-wasm 0.14.8-alpha → 0.17.1-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @vulfram/transport-wasm
2
+
3
+ Transport implementation for WebAssembly (WASM) in the Vulfram ecosystem.
4
+
5
+ Transport documentation: https://www.vulppi.dev/vulfram/docs/bind/setup#pick-a-transport
@@ -5,7 +5,7 @@ export class BufferResult {
5
5
  private constructor();
6
6
  free(): void;
7
7
  [Symbol.dispose](): void;
8
- readonly buffer: Uint8Array;
8
+ takeBuffer(): Uint8Array;
9
9
  readonly result: number;
10
10
  }
11
11
 
@@ -52,8 +52,8 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
52
52
  export interface InitOutput {
53
53
  readonly memory: WebAssembly.Memory;
54
54
  readonly __wbg_bufferresult_free: (a: number, b: number) => void;
55
- readonly bufferresult_buffer: (a: number, b: number) => void;
56
55
  readonly bufferresult_result: (a: number) => number;
56
+ readonly bufferresult_takeBuffer: (a: number, b: number) => void;
57
57
  readonly vulfram_dispose: () => number;
58
58
  readonly vulfram_get_profiling: () => number;
59
59
  readonly vulfram_init: () => number;
@@ -62,8 +62,8 @@ export interface InitOutput {
62
62
  readonly vulfram_send_queue: (a: number, b: number) => number;
63
63
  readonly vulfram_tick: (a: number, b: number) => number;
64
64
  readonly vulfram_upload_buffer: (a: bigint, b: number, c: number, d: number) => number;
65
- readonly __wasm_bindgen_func_elem_991: (a: number, b: number, c: number) => void;
66
- readonly __wasm_bindgen_func_elem_990: (a: number, b: number) => void;
65
+ readonly __wasm_bindgen_func_elem_1291: (a: number, b: number, c: number) => void;
66
+ readonly __wasm_bindgen_func_elem_1290: (a: number, b: number) => void;
67
67
  readonly __wbindgen_export: (a: number, b: number) => number;
68
68
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
69
69
  readonly __wbindgen_export3: (a: number) => void;
@@ -85,11 +85,6 @@ function dropObject(idx) {
85
85
  heap_next = idx;
86
86
  }
87
87
 
88
- function getArrayU32FromWasm0(ptr, len) {
89
- ptr = ptr >>> 0;
90
- return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
91
- }
92
-
93
88
  function getArrayU8FromWasm0(ptr, len) {
94
89
  ptr = ptr >>> 0;
95
90
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
@@ -108,14 +103,6 @@ function getStringFromWasm0(ptr, len) {
108
103
  return decodeText(ptr, len);
109
104
  }
110
105
 
111
- let cachedUint32ArrayMemory0 = null;
112
- function getUint32ArrayMemory0() {
113
- if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
114
- cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
115
- }
116
- return cachedUint32ArrayMemory0;
117
- }
118
-
119
106
  let cachedUint8ArrayMemory0 = null;
120
107
  function getUint8ArrayMemory0() {
121
108
  if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
@@ -250,48 +237,30 @@ if (!('encodeInto' in cachedTextEncoder)) {
250
237
 
251
238
  let WASM_VECTOR_LEN = 0;
252
239
 
253
- function __wasm_bindgen_func_elem_991(arg0, arg1, arg2) {
254
- wasm.__wasm_bindgen_func_elem_991(arg0, arg1, addHeapObject(arg2));
240
+ function __wasm_bindgen_func_elem_1291(arg0, arg1, arg2) {
241
+ wasm.__wasm_bindgen_func_elem_1291(arg0, arg1, addHeapObject(arg2));
255
242
  }
256
243
 
257
244
  const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
258
245
 
259
- 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"];
260
-
261
- const __wbindgen_enum_GpuBlendOperation = ["add", "subtract", "reverse-subtract", "min", "max"];
262
-
263
246
  const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
264
247
 
265
248
  const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
266
249
 
267
250
  const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
268
251
 
269
- const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
270
-
271
252
  const __wbindgen_enum_GpuFilterMode = ["nearest", "linear"];
272
253
 
273
- const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
274
-
275
- const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
276
-
277
- const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
278
-
279
254
  const __wbindgen_enum_GpuMipmapFilterMode = ["nearest", "linear"];
280
255
 
281
256
  const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
282
257
 
283
- const __wbindgen_enum_GpuPrimitiveTopology = ["point-list", "line-list", "line-strip", "triangle-list", "triangle-strip"];
284
-
285
258
  const __wbindgen_enum_GpuQueryType = ["occlusion", "timestamp"];
286
259
 
287
260
  const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
288
261
 
289
- const __wbindgen_enum_GpuStencilOperation = ["keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap"];
290
-
291
262
  const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
292
263
 
293
- const __wbindgen_enum_GpuStoreOp = ["store", "discard"];
294
-
295
264
  const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
296
265
 
297
266
  const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
@@ -302,10 +271,6 @@ const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "de
302
271
 
303
272
  const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
304
273
 
305
- 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"];
306
-
307
- const __wbindgen_enum_GpuVertexStepMode = ["vertex", "instance"];
308
-
309
274
  const BufferResultFinalization = (typeof FinalizationRegistry === 'undefined')
310
275
  ? { register: () => {}, unregister: () => {} }
311
276
  : new FinalizationRegistry(ptr => wasm.__wbg_bufferresult_free(ptr >>> 0, 1));
@@ -331,10 +296,10 @@ export class BufferResult {
331
296
  /**
332
297
  * @returns {Uint8Array}
333
298
  */
334
- get buffer() {
299
+ takeBuffer() {
335
300
  try {
336
301
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
337
- wasm.bufferresult_buffer(retptr, this.__wbg_ptr);
302
+ wasm.bufferresult_takeBuffer(retptr, this.__wbg_ptr);
338
303
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
339
304
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
340
305
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
@@ -544,14 +509,6 @@ function __wbg_get_imports() {
544
509
  const ret = getObject(arg0).axes;
545
510
  return addHeapObject(ret);
546
511
  };
547
- imports.wbg.__wbg_beginComputePass_8971ad8382254094 = function(arg0, arg1) {
548
- const ret = getObject(arg0).beginComputePass(getObject(arg1));
549
- return addHeapObject(ret);
550
- };
551
- imports.wbg.__wbg_beginRenderPass_599b98d9a6ba5692 = function() { return handleError(function (arg0, arg1) {
552
- const ret = getObject(arg0).beginRenderPass(getObject(arg1));
553
- return addHeapObject(ret);
554
- }, arguments) };
555
512
  imports.wbg.__wbg_buffer_6cb2fecb1f253d71 = function(arg0) {
556
513
  const ret = getObject(arg0).buffer;
557
514
  return addHeapObject(ret);
@@ -613,17 +570,10 @@ function __wbg_get_imports() {
613
570
  imports.wbg.__wbg_copyBufferToBuffer_3e2b8d1e524281f5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
614
571
  getObject(arg0).copyBufferToBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
615
572
  }, arguments) };
616
- imports.wbg.__wbg_copyTextureToTexture_bf93074b99536fcf = function() { return handleError(function (arg0, arg1, arg2, arg3) {
617
- getObject(arg0).copyTextureToTexture(getObject(arg1), getObject(arg2), getObject(arg3));
618
- }, arguments) };
619
573
  imports.wbg.__wbg_createBindGroupLayout_f543b79f894eed2e = function() { return handleError(function (arg0, arg1) {
620
574
  const ret = getObject(arg0).createBindGroupLayout(getObject(arg1));
621
575
  return addHeapObject(ret);
622
576
  }, arguments) };
623
- imports.wbg.__wbg_createBindGroup_06db01d96df151a7 = function(arg0, arg1) {
624
- const ret = getObject(arg0).createBindGroup(getObject(arg1));
625
- return addHeapObject(ret);
626
- };
627
577
  imports.wbg.__wbg_createBufferSource_156317138619c7b0 = function() { return handleError(function (arg0) {
628
578
  const ret = getObject(arg0).createBufferSource();
629
579
  return addHeapObject(ret);
@@ -636,10 +586,6 @@ function __wbg_get_imports() {
636
586
  const ret = getObject(arg0).createCommandEncoder(getObject(arg1));
637
587
  return addHeapObject(ret);
638
588
  };
639
- imports.wbg.__wbg_createComputePipeline_d24ca7b211444394 = function(arg0, arg1) {
640
- const ret = getObject(arg0).createComputePipeline(getObject(arg1));
641
- return addHeapObject(ret);
642
- };
643
589
  imports.wbg.__wbg_createGain_d5704df14f1e271f = function() { return handleError(function (arg0) {
644
590
  const ret = getObject(arg0).createGain();
645
591
  return addHeapObject(ret);
@@ -656,10 +602,6 @@ function __wbg_get_imports() {
656
602
  const ret = getObject(arg0).createQuerySet(getObject(arg1));
657
603
  return addHeapObject(ret);
658
604
  }, arguments) };
659
- imports.wbg.__wbg_createRenderPipeline_725209221f17f288 = function() { return handleError(function (arg0, arg1) {
660
- const ret = getObject(arg0).createRenderPipeline(getObject(arg1));
661
- return addHeapObject(ret);
662
- }, arguments) };
663
605
  imports.wbg.__wbg_createSampler_36aca895fb724d8b = function(arg0, arg1) {
664
606
  const ret = getObject(arg0).createSampler(getObject(arg1));
665
607
  return addHeapObject(ret);
@@ -704,29 +646,14 @@ function __wbg_get_imports() {
704
646
  const ret = getObject(arg0).destination;
705
647
  return addHeapObject(ret);
706
648
  };
707
- imports.wbg.__wbg_dispatchWorkgroups_d63caaf66ad5bbb0 = function(arg0, arg1, arg2, arg3) {
708
- getObject(arg0).dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
709
- };
710
649
  imports.wbg.__wbg_document_5b745e82ba551ca5 = function(arg0) {
711
650
  const ret = getObject(arg0).document;
712
651
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
713
652
  };
714
- imports.wbg.__wbg_drawIndexed_c47b56e3bafadecb = function(arg0, arg1, arg2, arg3, arg4, arg5) {
715
- getObject(arg0).drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
716
- };
717
- imports.wbg.__wbg_draw_3f782f0d09a907da = function(arg0, arg1, arg2, arg3, arg4) {
718
- getObject(arg0).draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
719
- };
720
653
  imports.wbg.__wbg_duration_d18723c667e9564a = function(arg0) {
721
654
  const ret = getObject(arg0).duration;
722
655
  return ret;
723
656
  };
724
- imports.wbg.__wbg_end_8bb194afb9988691 = function(arg0) {
725
- getObject(arg0).end();
726
- };
727
- imports.wbg.__wbg_end_ae98f313507234ce = function(arg0) {
728
- getObject(arg0).end();
729
- };
730
657
  imports.wbg.__wbg_features_5d2c2677affa352d = function(arg0) {
731
658
  const ret = getObject(arg0).features;
732
659
  return addHeapObject(ret);
@@ -755,10 +682,6 @@ function __wbg_get_imports() {
755
682
  const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
756
683
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
757
684
  }, arguments) };
758
- imports.wbg.__wbg_getCurrentTexture_6dc4d0ea8555e374 = function() { return handleError(function (arg0) {
759
- const ret = getObject(arg0).getCurrentTexture();
760
- return addHeapObject(ret);
761
- }, arguments) };
762
685
  imports.wbg.__wbg_getElementById_e05488d2143c2b21 = function(arg0, arg1, arg2) {
763
686
  const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2));
764
687
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
@@ -767,10 +690,6 @@ function __wbg_get_imports() {
767
690
  const ret = getObject(arg0).getGamepads();
768
691
  return addHeapObject(ret);
769
692
  }, arguments) };
770
- imports.wbg.__wbg_getMappedRange_3cb6354f7963e27e = function() { return handleError(function (arg0, arg1, arg2) {
771
- const ret = getObject(arg0).getMappedRange(arg1, arg2);
772
- return addHeapObject(ret);
773
- }, arguments) };
774
693
  imports.wbg.__wbg_getPreferredCanvasFormat_06854455b835cf40 = function(arg0) {
775
694
  const ret = getObject(arg0).getPreferredCanvasFormat();
776
695
  return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 96) - 1;
@@ -787,6 +706,10 @@ function __wbg_get_imports() {
787
706
  const ret = getObject(arg0).gpu;
788
707
  return addHeapObject(ret);
789
708
  };
709
+ imports.wbg.__wbg_hasFocus_7d4687baa7939850 = function() { return handleError(function (arg0) {
710
+ const ret = getObject(arg0).hasFocus();
711
+ return ret;
712
+ }, arguments) };
790
713
  imports.wbg.__wbg_has_f1efef5b257eade8 = function(arg0, arg1, arg2) {
791
714
  const ret = getObject(arg0).has(getStringFromWasm0(arg1, arg2));
792
715
  return ret;
@@ -916,10 +839,6 @@ function __wbg_get_imports() {
916
839
  const ret = getObject(arg0).left;
917
840
  return ret;
918
841
  };
919
- imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
920
- const ret = getObject(arg0).length;
921
- return ret;
922
- };
923
842
  imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
924
843
  const ret = getObject(arg0).length;
925
844
  return ret;
@@ -1088,10 +1007,6 @@ function __wbg_get_imports() {
1088
1007
  const ret = new Function(getStringFromWasm0(arg0, arg1));
1089
1008
  return addHeapObject(ret);
1090
1009
  };
1091
- imports.wbg.__wbg_new_with_byte_offset_and_length_d85c3da1fd8df149 = function(arg0, arg1, arg2) {
1092
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
1093
- return addHeapObject(ret);
1094
- };
1095
1010
  imports.wbg.__wbg_now_69d776cd24f5215b = function() {
1096
1011
  const ret = Date.now();
1097
1012
  return ret;
@@ -1119,9 +1034,6 @@ function __wbg_get_imports() {
1119
1034
  const ret = getObject(arg0).pressed;
1120
1035
  return ret;
1121
1036
  };
1122
- imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
1123
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
1124
- };
1125
1037
  imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
1126
1038
  const ret = getObject(arg0).push(getObject(arg1));
1127
1039
  return ret;
@@ -1137,6 +1049,9 @@ function __wbg_get_imports() {
1137
1049
  const ret = getObject(arg0).queue;
1138
1050
  return addHeapObject(ret);
1139
1051
  };
1052
+ imports.wbg.__wbg_removeEventListener_565e273024b68b75 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
1053
+ getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1054
+ }, arguments) };
1140
1055
  imports.wbg.__wbg_repeat_3733d1d584bf0e38 = function(arg0) {
1141
1056
  const ret = getObject(arg0).repeat;
1142
1057
  return ret;
@@ -1149,59 +1064,26 @@ function __wbg_get_imports() {
1149
1064
  const ret = getObject(arg0).requestDevice(getObject(arg1));
1150
1065
  return addHeapObject(ret);
1151
1066
  };
1152
- imports.wbg.__wbg_resolveQuerySet_58d78db4578ebdb5 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
1153
- getObject(arg0).resolveQuerySet(getObject(arg1), arg2 >>> 0, arg3 >>> 0, getObject(arg4), arg5 >>> 0);
1154
- };
1155
1067
  imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
1156
1068
  const ret = Promise.resolve(getObject(arg0));
1157
1069
  return addHeapObject(ret);
1158
1070
  };
1159
- imports.wbg.__wbg_setBindGroup_ae93a2ba8c665826 = function(arg0, arg1, arg2) {
1160
- getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2));
1161
- };
1162
- imports.wbg.__wbg_setBindGroup_bf7233e51ee0fd56 = function(arg0, arg1, arg2) {
1163
- getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2));
1164
- };
1165
- imports.wbg.__wbg_setBindGroup_c532d9e80c3b863a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1166
- getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2), getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
1167
- }, arguments) };
1168
- imports.wbg.__wbg_setIndexBuffer_d6851b016152211a = function(arg0, arg1, arg2, arg3, arg4) {
1169
- getObject(arg0).setIndexBuffer(getObject(arg1), __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
1170
- };
1171
1071
  imports.wbg.__wbg_setOrientation_b1947815d07c384d = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1172
1072
  getObject(arg0).setOrientation(arg1, arg2, arg3, arg4, arg5, arg6);
1173
1073
  };
1174
1074
  imports.wbg.__wbg_setOrientation_edf6d9270c35af16 = function(arg0, arg1, arg2, arg3) {
1175
1075
  getObject(arg0).setOrientation(arg1, arg2, arg3);
1176
1076
  };
1177
- imports.wbg.__wbg_setPipeline_6d9bb386aa5ee85f = function(arg0, arg1) {
1178
- getObject(arg0).setPipeline(getObject(arg1));
1179
- };
1180
- imports.wbg.__wbg_setPipeline_b632e313f54b1cb1 = function(arg0, arg1) {
1181
- getObject(arg0).setPipeline(getObject(arg1));
1182
- };
1183
1077
  imports.wbg.__wbg_setPosition_96fcdcaf9ef69feb = function(arg0, arg1, arg2, arg3) {
1184
1078
  getObject(arg0).setPosition(arg1, arg2, arg3);
1185
1079
  };
1186
1080
  imports.wbg.__wbg_setPosition_e30bf00b6eb1505f = function(arg0, arg1, arg2, arg3) {
1187
1081
  getObject(arg0).setPosition(arg1, arg2, arg3);
1188
1082
  };
1189
- imports.wbg.__wbg_setScissorRect_13be2665184d6e20 = function(arg0, arg1, arg2, arg3, arg4) {
1190
- getObject(arg0).setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
1191
- };
1192
- imports.wbg.__wbg_setVertexBuffer_c8234139ead62a61 = function(arg0, arg1, arg2, arg3, arg4) {
1193
- getObject(arg0).setVertexBuffer(arg1 >>> 0, getObject(arg2), arg3, arg4);
1194
- };
1195
- imports.wbg.__wbg_setViewport_b25340c5cfc5e64f = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1196
- getObject(arg0).setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
1197
- };
1198
1083
  imports.wbg.__wbg_set_781438a03c0c3c81 = function() { return handleError(function (arg0, arg1, arg2) {
1199
1084
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
1200
1085
  return ret;
1201
1086
  }, arguments) };
1202
- imports.wbg.__wbg_set_a_e87a2053d5fccb4c = function(arg0, arg1) {
1203
- getObject(arg0).a = arg1;
1204
- };
1205
1087
  imports.wbg.__wbg_set_access_69d91e9d4e4ceac2 = function(arg0, arg1) {
1206
1088
  getObject(arg0).access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
1207
1089
  };
@@ -1214,93 +1096,45 @@ function __wbg_get_imports() {
1214
1096
  imports.wbg.__wbg_set_address_mode_w_2445963d0feae757 = function(arg0, arg1) {
1215
1097
  getObject(arg0).addressModeW = __wbindgen_enum_GpuAddressMode[arg1];
1216
1098
  };
1217
- imports.wbg.__wbg_set_alpha_a7a68e5ec04efe77 = function(arg0, arg1) {
1218
- getObject(arg0).alpha = getObject(arg1);
1219
- };
1220
1099
  imports.wbg.__wbg_set_alpha_mode_60f87267fa3d95d0 = function(arg0, arg1) {
1221
1100
  getObject(arg0).alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
1222
1101
  };
1223
- imports.wbg.__wbg_set_alpha_to_coverage_enabled_67782b8fff854d06 = function(arg0, arg1) {
1224
- getObject(arg0).alphaToCoverageEnabled = arg1 !== 0;
1225
- };
1226
1102
  imports.wbg.__wbg_set_array_layer_count_2bd74e56899b603a = function(arg0, arg1) {
1227
1103
  getObject(arg0).arrayLayerCount = arg1 >>> 0;
1228
1104
  };
1229
- imports.wbg.__wbg_set_array_stride_acb85bd3848529a6 = function(arg0, arg1) {
1230
- getObject(arg0).arrayStride = arg1;
1231
- };
1232
1105
  imports.wbg.__wbg_set_aspect_82ca9caa27a4c533 = function(arg0, arg1) {
1233
1106
  getObject(arg0).aspect = __wbindgen_enum_GpuTextureAspect[arg1];
1234
1107
  };
1235
1108
  imports.wbg.__wbg_set_aspect_b78bd0b34ebfe19b = function(arg0, arg1) {
1236
1109
  getObject(arg0).aspect = __wbindgen_enum_GpuTextureAspect[arg1];
1237
1110
  };
1238
- imports.wbg.__wbg_set_attributes_4d5de6c80e3a7e73 = function(arg0, arg1) {
1239
- getObject(arg0).attributes = getObject(arg1);
1240
- };
1241
- imports.wbg.__wbg_set_b_87725d82ac69a631 = function(arg0, arg1) {
1242
- getObject(arg0).b = arg1;
1243
- };
1244
1111
  imports.wbg.__wbg_set_base_array_layer_064977086530f2e7 = function(arg0, arg1) {
1245
1112
  getObject(arg0).baseArrayLayer = arg1 >>> 0;
1246
1113
  };
1247
1114
  imports.wbg.__wbg_set_base_mip_level_845abe28a57bd901 = function(arg0, arg1) {
1248
1115
  getObject(arg0).baseMipLevel = arg1 >>> 0;
1249
1116
  };
1250
- imports.wbg.__wbg_set_bc3a432bdcd60886 = function(arg0, arg1, arg2) {
1251
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
1252
- };
1253
- imports.wbg.__wbg_set_beginning_of_pass_write_index_18bb7ab9fb16de02 = function(arg0, arg1) {
1254
- getObject(arg0).beginningOfPassWriteIndex = arg1 >>> 0;
1255
- };
1256
1117
  imports.wbg.__wbg_set_bind_group_layouts_db65f9787380e242 = function(arg0, arg1) {
1257
1118
  getObject(arg0).bindGroupLayouts = getObject(arg1);
1258
1119
  };
1259
1120
  imports.wbg.__wbg_set_binding_35fa28beda49ff83 = function(arg0, arg1) {
1260
1121
  getObject(arg0).binding = arg1 >>> 0;
1261
1122
  };
1262
- imports.wbg.__wbg_set_binding_3b4abee15b11f6ec = function(arg0, arg1) {
1263
- getObject(arg0).binding = arg1 >>> 0;
1264
- };
1265
- imports.wbg.__wbg_set_blend_21337ec514ad2280 = function(arg0, arg1) {
1266
- getObject(arg0).blend = getObject(arg1);
1267
- };
1268
1123
  imports.wbg.__wbg_set_buffer_25c70ce663d1667c = function(arg0, arg1) {
1269
1124
  getObject(arg0).buffer = getObject(arg1);
1270
1125
  };
1271
- imports.wbg.__wbg_set_buffer_a9223dfcc0e34853 = function(arg0, arg1) {
1272
- getObject(arg0).buffer = getObject(arg1);
1273
- };
1274
1126
  imports.wbg.__wbg_set_buffer_d49e95bb5349d827 = function(arg0, arg1) {
1275
1127
  getObject(arg0).buffer = getObject(arg1);
1276
1128
  };
1277
- imports.wbg.__wbg_set_buffers_68609a5d48c31b27 = function(arg0, arg1) {
1278
- getObject(arg0).buffers = getObject(arg1);
1279
- };
1280
1129
  imports.wbg.__wbg_set_bytes_per_row_4a52bbf4cdbfe78b = function(arg0, arg1) {
1281
1130
  getObject(arg0).bytesPerRow = arg1 >>> 0;
1282
1131
  };
1283
- imports.wbg.__wbg_set_clear_value_8fc3623594df71b2 = function(arg0, arg1) {
1284
- getObject(arg0).clearValue = getObject(arg1);
1285
- };
1286
1132
  imports.wbg.__wbg_set_code_20093e29960281f8 = function(arg0, arg1, arg2) {
1287
1133
  getObject(arg0).code = getStringFromWasm0(arg1, arg2);
1288
1134
  };
1289
- imports.wbg.__wbg_set_color_64a633bf7b4cf6fe = function(arg0, arg1) {
1290
- getObject(arg0).color = getObject(arg1);
1291
- };
1292
- imports.wbg.__wbg_set_color_attachments_4d4c71d7eeba8e2f = function(arg0, arg1) {
1293
- getObject(arg0).colorAttachments = getObject(arg1);
1294
- };
1295
1135
  imports.wbg.__wbg_set_compare_0376672b0c0bbfd8 = function(arg0, arg1) {
1296
1136
  getObject(arg0).compare = __wbindgen_enum_GpuCompareFunction[arg1];
1297
1137
  };
1298
- imports.wbg.__wbg_set_compare_f3fb77a9bf3f0f7e = function(arg0, arg1) {
1299
- getObject(arg0).compare = __wbindgen_enum_GpuCompareFunction[arg1];
1300
- };
1301
- imports.wbg.__wbg_set_compute_937f4ee700e465ff = function(arg0, arg1) {
1302
- getObject(arg0).compute = getObject(arg1);
1303
- };
1304
1138
  imports.wbg.__wbg_set_coneInnerAngle_af42eec2f168ddc5 = function(arg0, arg1) {
1305
1139
  getObject(arg0).coneInnerAngle = arg1;
1306
1140
  };
@@ -1313,51 +1147,9 @@ function __wbg_get_imports() {
1313
1147
  imports.wbg.__wbg_set_count_6f4f66c8eedc9bba = function(arg0, arg1) {
1314
1148
  getObject(arg0).count = arg1 >>> 0;
1315
1149
  };
1316
- imports.wbg.__wbg_set_count_8cf9a3dd1ffc7b7d = function(arg0, arg1) {
1317
- getObject(arg0).count = arg1 >>> 0;
1318
- };
1319
- imports.wbg.__wbg_set_cull_mode_41c12526410d3e05 = function(arg0, arg1) {
1320
- getObject(arg0).cullMode = __wbindgen_enum_GpuCullMode[arg1];
1321
- };
1322
- imports.wbg.__wbg_set_depth_bias_31554aeaaa675954 = function(arg0, arg1) {
1323
- getObject(arg0).depthBias = arg1;
1324
- };
1325
- imports.wbg.__wbg_set_depth_bias_clamp_8cf5f4f0d80e8cba = function(arg0, arg1) {
1326
- getObject(arg0).depthBiasClamp = arg1;
1327
- };
1328
- imports.wbg.__wbg_set_depth_bias_slope_scale_310ae406f2d3a055 = function(arg0, arg1) {
1329
- getObject(arg0).depthBiasSlopeScale = arg1;
1330
- };
1331
- imports.wbg.__wbg_set_depth_clear_value_8760aafb583d5312 = function(arg0, arg1) {
1332
- getObject(arg0).depthClearValue = arg1;
1333
- };
1334
- imports.wbg.__wbg_set_depth_compare_8831904ce3173063 = function(arg0, arg1) {
1335
- getObject(arg0).depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
1336
- };
1337
- imports.wbg.__wbg_set_depth_fail_op_62ec602580477afc = function(arg0, arg1) {
1338
- getObject(arg0).depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
1339
- };
1340
- imports.wbg.__wbg_set_depth_load_op_102d57f3ddf95461 = function(arg0, arg1) {
1341
- getObject(arg0).depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
1342
- };
1343
1150
  imports.wbg.__wbg_set_depth_or_array_layers_d7b93db07c5da69d = function(arg0, arg1) {
1344
1151
  getObject(arg0).depthOrArrayLayers = arg1 >>> 0;
1345
1152
  };
1346
- imports.wbg.__wbg_set_depth_read_only_aebc24a542debafd = function(arg0, arg1) {
1347
- getObject(arg0).depthReadOnly = arg1 !== 0;
1348
- };
1349
- imports.wbg.__wbg_set_depth_stencil_5627e73aaf33912c = function(arg0, arg1) {
1350
- getObject(arg0).depthStencil = getObject(arg1);
1351
- };
1352
- imports.wbg.__wbg_set_depth_stencil_attachment_04b936535778e362 = function(arg0, arg1) {
1353
- getObject(arg0).depthStencilAttachment = getObject(arg1);
1354
- };
1355
- imports.wbg.__wbg_set_depth_store_op_610b0a50dbb00eb8 = function(arg0, arg1) {
1356
- getObject(arg0).depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
1357
- };
1358
- imports.wbg.__wbg_set_depth_write_enabled_f94217df9ff2d60c = function(arg0, arg1) {
1359
- getObject(arg0).depthWriteEnabled = arg1 !== 0;
1360
- };
1361
1153
  imports.wbg.__wbg_set_device_dab18ead7bfc077b = function(arg0, arg1) {
1362
1154
  getObject(arg0).device = getObject(arg1);
1363
1155
  };
@@ -1367,33 +1159,12 @@ function __wbg_get_imports() {
1367
1159
  imports.wbg.__wbg_set_dimension_a3c50fb6d43f6cec = function(arg0, arg1) {
1368
1160
  getObject(arg0).dimension = __wbindgen_enum_GpuTextureDimension[arg1];
1369
1161
  };
1370
- imports.wbg.__wbg_set_dst_factor_cf872fec841747ac = function(arg0, arg1) {
1371
- getObject(arg0).dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
1372
- };
1373
- imports.wbg.__wbg_set_end_of_pass_write_index_02ee5189026c1d3a = function(arg0, arg1) {
1374
- getObject(arg0).endOfPassWriteIndex = arg1 >>> 0;
1375
- };
1376
- imports.wbg.__wbg_set_entries_1472deaee7053fb7 = function(arg0, arg1) {
1377
- getObject(arg0).entries = getObject(arg1);
1378
- };
1379
1162
  imports.wbg.__wbg_set_entries_b2258b5ef29810b0 = function(arg0, arg1) {
1380
1163
  getObject(arg0).entries = getObject(arg1);
1381
1164
  };
1382
- imports.wbg.__wbg_set_entry_point_11f912102ade99b1 = function(arg0, arg1, arg2) {
1383
- getObject(arg0).entryPoint = getStringFromWasm0(arg1, arg2);
1384
- };
1385
- imports.wbg.__wbg_set_entry_point_7f546bbf1e63e58d = function(arg0, arg1, arg2) {
1386
- getObject(arg0).entryPoint = getStringFromWasm0(arg1, arg2);
1387
- };
1388
- imports.wbg.__wbg_set_entry_point_f9224cdb29cbe5df = function(arg0, arg1, arg2) {
1389
- getObject(arg0).entryPoint = getStringFromWasm0(arg1, arg2);
1390
- };
1391
1165
  imports.wbg.__wbg_set_external_texture_613e4434100d63ee = function(arg0, arg1) {
1392
1166
  getObject(arg0).externalTexture = getObject(arg1);
1393
1167
  };
1394
- imports.wbg.__wbg_set_fail_op_73a4e194f4bc914a = function(arg0, arg1) {
1395
- getObject(arg0).failOp = __wbindgen_enum_GpuStencilOperation[arg1];
1396
- };
1397
1168
  imports.wbg.__wbg_set_format_1670e760e18ac001 = function(arg0, arg1) {
1398
1169
  getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
1399
1170
  };
@@ -1403,27 +1174,9 @@ function __wbg_get_imports() {
1403
1174
  imports.wbg.__wbg_set_format_25e4aacc74949e38 = function(arg0, arg1) {
1404
1175
  getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
1405
1176
  };
1406
- imports.wbg.__wbg_set_format_3f7008e9e568f0fc = function(arg0, arg1) {
1407
- getObject(arg0).format = __wbindgen_enum_GpuVertexFormat[arg1];
1408
- };
1409
- imports.wbg.__wbg_set_format_4a4fccdfc45bc409 = function(arg0, arg1) {
1410
- getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
1411
- };
1412
1177
  imports.wbg.__wbg_set_format_7696f8290da8a36b = function(arg0, arg1) {
1413
1178
  getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
1414
1179
  };
1415
- imports.wbg.__wbg_set_format_974a01725f579c5d = function(arg0, arg1) {
1416
- getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
1417
- };
1418
- imports.wbg.__wbg_set_fragment_f7ce64feaf1cd7dc = function(arg0, arg1) {
1419
- getObject(arg0).fragment = getObject(arg1);
1420
- };
1421
- imports.wbg.__wbg_set_front_face_09e32557f8852301 = function(arg0, arg1) {
1422
- getObject(arg0).frontFace = __wbindgen_enum_GpuFrontFace[arg1];
1423
- };
1424
- imports.wbg.__wbg_set_g_c31c959457596456 = function(arg0, arg1) {
1425
- getObject(arg0).g = arg1;
1426
- };
1427
1180
  imports.wbg.__wbg_set_has_dynamic_offset_fbc1bb343939ed0b = function(arg0, arg1) {
1428
1181
  getObject(arg0).hasDynamicOffset = arg1 !== 0;
1429
1182
  };
@@ -1442,9 +1195,6 @@ function __wbg_get_imports() {
1442
1195
  imports.wbg.__wbg_set_label_0ec13ba975f77124 = function(arg0, arg1, arg2) {
1443
1196
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1444
1197
  };
1445
- imports.wbg.__wbg_set_label_3b658d9ce970552c = function(arg0, arg1, arg2) {
1446
- getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1447
- };
1448
1198
  imports.wbg.__wbg_set_label_48883f5f49e4ec47 = function(arg0, arg1, arg2) {
1449
1199
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1450
1200
  };
@@ -1454,45 +1204,21 @@ function __wbg_get_imports() {
1454
1204
  imports.wbg.__wbg_set_label_4f4264b0041180e2 = function(arg0, arg1, arg2) {
1455
1205
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1456
1206
  };
1457
- imports.wbg.__wbg_set_label_5b46e419b9e88c5e = function(arg0, arg1, arg2) {
1458
- getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1459
- };
1460
1207
  imports.wbg.__wbg_set_label_95423cd2e1f4b5dd = function(arg0, arg1, arg2) {
1461
1208
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1462
1209
  };
1463
- imports.wbg.__wbg_set_label_ad0f2c69b41c3483 = function(arg0, arg1, arg2) {
1464
- getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1465
- };
1466
1210
  imports.wbg.__wbg_set_label_c3fc0a66f4ecc82b = function(arg0, arg1, arg2) {
1467
1211
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1468
1212
  };
1469
1213
  imports.wbg.__wbg_set_label_c857f45a8485236a = function(arg0, arg1, arg2) {
1470
1214
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1471
1215
  };
1472
- imports.wbg.__wbg_set_label_d0fd4d4810525bf2 = function(arg0, arg1, arg2) {
1473
- getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1474
- };
1475
1216
  imports.wbg.__wbg_set_label_dc8df9969898889c = function(arg0, arg1, arg2) {
1476
1217
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1477
1218
  };
1478
1219
  imports.wbg.__wbg_set_label_e3709fe3e82429b5 = function(arg0, arg1, arg2) {
1479
1220
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1480
1221
  };
1481
- imports.wbg.__wbg_set_label_fb5d28b3ba7af11f = function(arg0, arg1, arg2) {
1482
- getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1483
- };
1484
- imports.wbg.__wbg_set_layout_170ec6b8aa37178f = function(arg0, arg1) {
1485
- getObject(arg0).layout = getObject(arg1);
1486
- };
1487
- imports.wbg.__wbg_set_layout_7f76289be3294b4a = function(arg0, arg1) {
1488
- getObject(arg0).layout = getObject(arg1);
1489
- };
1490
- imports.wbg.__wbg_set_layout_c20d48b352b24c1b = function(arg0, arg1) {
1491
- getObject(arg0).layout = getObject(arg1);
1492
- };
1493
- imports.wbg.__wbg_set_load_op_c71d200e998908b0 = function(arg0, arg1) {
1494
- getObject(arg0).loadOp = __wbindgen_enum_GpuLoadOp[arg1];
1495
- };
1496
1222
  imports.wbg.__wbg_set_lod_max_clamp_aaac5daaecca96d4 = function(arg0, arg1) {
1497
1223
  getObject(arg0).lodMaxClamp = arg1;
1498
1224
  };
@@ -1508,9 +1234,6 @@ function __wbg_get_imports() {
1508
1234
  imports.wbg.__wbg_set_mapped_at_creation_2d003ce549611385 = function(arg0, arg1) {
1509
1235
  getObject(arg0).mappedAtCreation = arg1 !== 0;
1510
1236
  };
1511
- imports.wbg.__wbg_set_mask_a933ba2e61c7610a = function(arg0, arg1) {
1512
- getObject(arg0).mask = arg1 >>> 0;
1513
- };
1514
1237
  imports.wbg.__wbg_set_maxDistance_6e90d383a13ce970 = function(arg0, arg1) {
1515
1238
  getObject(arg0).maxDistance = arg1;
1516
1239
  };
@@ -1535,63 +1258,24 @@ function __wbg_get_imports() {
1535
1258
  imports.wbg.__wbg_set_mipmap_filter_79f552c459e63aa6 = function(arg0, arg1) {
1536
1259
  getObject(arg0).mipmapFilter = __wbindgen_enum_GpuMipmapFilterMode[arg1];
1537
1260
  };
1538
- imports.wbg.__wbg_set_module_18d541838665d831 = function(arg0, arg1) {
1539
- getObject(arg0).module = getObject(arg1);
1540
- };
1541
- imports.wbg.__wbg_set_module_20641353ebb28712 = function(arg0, arg1) {
1542
- getObject(arg0).module = getObject(arg1);
1543
- };
1544
- imports.wbg.__wbg_set_module_6ece909be28666dd = function(arg0, arg1) {
1545
- getObject(arg0).module = getObject(arg1);
1546
- };
1547
- imports.wbg.__wbg_set_multisample_e0f310ea9e40c2d9 = function(arg0, arg1) {
1548
- getObject(arg0).multisample = getObject(arg1);
1549
- };
1550
1261
  imports.wbg.__wbg_set_multisampled_cd50d8f6709cea1a = function(arg0, arg1) {
1551
1262
  getObject(arg0).multisampled = arg1 !== 0;
1552
1263
  };
1553
- imports.wbg.__wbg_set_offset_2e78915f5d65d704 = function(arg0, arg1) {
1554
- getObject(arg0).offset = arg1;
1555
- };
1556
- imports.wbg.__wbg_set_offset_405017033a936d89 = function(arg0, arg1) {
1557
- getObject(arg0).offset = arg1;
1558
- };
1559
1264
  imports.wbg.__wbg_set_offset_e7ce8b8eaaf46b95 = function(arg0, arg1) {
1560
1265
  getObject(arg0).offset = arg1;
1561
1266
  };
1562
- imports.wbg.__wbg_set_operation_b96fabca3716aaa3 = function(arg0, arg1) {
1563
- getObject(arg0).operation = __wbindgen_enum_GpuBlendOperation[arg1];
1564
- };
1565
1267
  imports.wbg.__wbg_set_origin_c5f017d3f09ad7ff = function(arg0, arg1) {
1566
1268
  getObject(arg0).origin = getObject(arg1);
1567
1269
  };
1568
- imports.wbg.__wbg_set_pass_op_765be90bb2f27220 = function(arg0, arg1) {
1569
- getObject(arg0).passOp = __wbindgen_enum_GpuStencilOperation[arg1];
1570
- };
1571
1270
  imports.wbg.__wbg_set_power_preference_39b347bf0d236ce6 = function(arg0, arg1) {
1572
1271
  getObject(arg0).powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
1573
1272
  };
1574
- imports.wbg.__wbg_set_primitive_d6456d7efe6b4fe5 = function(arg0, arg1) {
1575
- getObject(arg0).primitive = getObject(arg1);
1576
- };
1577
- imports.wbg.__wbg_set_query_set_20ecd7f9a16f3ec6 = function(arg0, arg1) {
1578
- getObject(arg0).querySet = getObject(arg1);
1579
- };
1580
- imports.wbg.__wbg_set_r_07bd987697069496 = function(arg0, arg1) {
1581
- getObject(arg0).r = arg1;
1582
- };
1583
1273
  imports.wbg.__wbg_set_refDistance_0cb593d4e4e1273f = function(arg0, arg1) {
1584
1274
  getObject(arg0).refDistance = arg1;
1585
1275
  };
1586
1276
  imports.wbg.__wbg_set_required_features_650c9e5dafbaa395 = function(arg0, arg1) {
1587
1277
  getObject(arg0).requiredFeatures = getObject(arg1);
1588
1278
  };
1589
- imports.wbg.__wbg_set_resolve_target_c18cd4048765732a = function(arg0, arg1) {
1590
- getObject(arg0).resolveTarget = getObject(arg1);
1591
- };
1592
- imports.wbg.__wbg_set_resource_8cea0fe2c8745c3e = function(arg0, arg1) {
1593
- getObject(arg0).resource = getObject(arg1);
1594
- };
1595
1279
  imports.wbg.__wbg_set_rolloffFactor_d99bd3cbca2a952c = function(arg0, arg1) {
1596
1280
  getObject(arg0).rolloffFactor = arg1;
1597
1281
  };
@@ -1607,72 +1291,21 @@ function __wbg_get_imports() {
1607
1291
  imports.wbg.__wbg_set_sampler_1a2729c0aa194081 = function(arg0, arg1) {
1608
1292
  getObject(arg0).sampler = getObject(arg1);
1609
1293
  };
1610
- imports.wbg.__wbg_set_shader_location_bdcfdc1009d351b1 = function(arg0, arg1) {
1611
- getObject(arg0).shaderLocation = arg1 >>> 0;
1612
- };
1613
- imports.wbg.__wbg_set_size_7a392ee585f87da8 = function(arg0, arg1) {
1614
- getObject(arg0).size = arg1;
1615
- };
1616
1294
  imports.wbg.__wbg_set_size_c6bf409f70f4420f = function(arg0, arg1) {
1617
1295
  getObject(arg0).size = getObject(arg1);
1618
1296
  };
1619
1297
  imports.wbg.__wbg_set_size_f902b266d636bf6e = function(arg0, arg1) {
1620
1298
  getObject(arg0).size = arg1;
1621
1299
  };
1622
- imports.wbg.__wbg_set_src_factor_50cef27aa8aece91 = function(arg0, arg1) {
1623
- getObject(arg0).srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
1624
- };
1625
- imports.wbg.__wbg_set_stencil_back_e740415a5c0b637a = function(arg0, arg1) {
1626
- getObject(arg0).stencilBack = getObject(arg1);
1627
- };
1628
- imports.wbg.__wbg_set_stencil_clear_value_6be76b512040398d = function(arg0, arg1) {
1629
- getObject(arg0).stencilClearValue = arg1 >>> 0;
1630
- };
1631
- imports.wbg.__wbg_set_stencil_front_03185e1c3bafa411 = function(arg0, arg1) {
1632
- getObject(arg0).stencilFront = getObject(arg1);
1633
- };
1634
- imports.wbg.__wbg_set_stencil_load_op_084f44352b978b3d = function(arg0, arg1) {
1635
- getObject(arg0).stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
1636
- };
1637
- imports.wbg.__wbg_set_stencil_read_mask_e2736fc4af9399e4 = function(arg0, arg1) {
1638
- getObject(arg0).stencilReadMask = arg1 >>> 0;
1639
- };
1640
- imports.wbg.__wbg_set_stencil_read_only_31f3d99299373c12 = function(arg0, arg1) {
1641
- getObject(arg0).stencilReadOnly = arg1 !== 0;
1642
- };
1643
- imports.wbg.__wbg_set_stencil_store_op_428fb4955e4899d6 = function(arg0, arg1) {
1644
- getObject(arg0).stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
1645
- };
1646
- imports.wbg.__wbg_set_stencil_write_mask_b1d3e1655305a187 = function(arg0, arg1) {
1647
- getObject(arg0).stencilWriteMask = arg1 >>> 0;
1648
- };
1649
- imports.wbg.__wbg_set_step_mode_98e49f7877daf1c5 = function(arg0, arg1) {
1650
- getObject(arg0).stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
1651
- };
1652
1300
  imports.wbg.__wbg_set_storage_texture_6ee0cbeb50698110 = function(arg0, arg1) {
1653
1301
  getObject(arg0).storageTexture = getObject(arg1);
1654
1302
  };
1655
- imports.wbg.__wbg_set_store_op_e761080d541a10cc = function(arg0, arg1) {
1656
- getObject(arg0).storeOp = __wbindgen_enum_GpuStoreOp[arg1];
1657
- };
1658
- imports.wbg.__wbg_set_strip_index_format_16df9e33c7aa97e6 = function(arg0, arg1) {
1659
- getObject(arg0).stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
1660
- };
1661
- imports.wbg.__wbg_set_targets_9fd1ec0b8edc895c = function(arg0, arg1) {
1662
- getObject(arg0).targets = getObject(arg1);
1663
- };
1664
1303
  imports.wbg.__wbg_set_texture_f03807916f70dcc6 = function(arg0, arg1) {
1665
1304
  getObject(arg0).texture = getObject(arg1);
1666
1305
  };
1667
1306
  imports.wbg.__wbg_set_texture_f8ae0bb4bb159354 = function(arg0, arg1) {
1668
1307
  getObject(arg0).texture = getObject(arg1);
1669
1308
  };
1670
- imports.wbg.__wbg_set_timestamp_writes_3998dbfa21e48dbe = function(arg0, arg1) {
1671
- getObject(arg0).timestampWrites = getObject(arg1);
1672
- };
1673
- imports.wbg.__wbg_set_topology_036632318a24227d = function(arg0, arg1) {
1674
- getObject(arg0).topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
1675
- };
1676
1309
  imports.wbg.__wbg_set_type_0cb4cdb5eff87f31 = function(arg0, arg1) {
1677
1310
  getObject(arg0).type = __wbindgen_enum_GpuBufferBindingType[arg1];
1678
1311
  };
@@ -1682,9 +1315,6 @@ function __wbg_get_imports() {
1682
1315
  imports.wbg.__wbg_set_type_d05fa8415ad0761f = function(arg0, arg1) {
1683
1316
  getObject(arg0).type = __wbindgen_enum_GpuSamplerBindingType[arg1];
1684
1317
  };
1685
- imports.wbg.__wbg_set_unclipped_depth_17a5ab83d4e7cadc = function(arg0, arg1) {
1686
- getObject(arg0).unclippedDepth = arg1 !== 0;
1687
- };
1688
1318
  imports.wbg.__wbg_set_usage_3d569e7b02227032 = function(arg0, arg1) {
1689
1319
  getObject(arg0).usage = arg1 >>> 0;
1690
1320
  };
@@ -1700,15 +1330,6 @@ function __wbg_get_imports() {
1700
1330
  imports.wbg.__wbg_set_value_9b29412dd286d5d4 = function(arg0, arg1) {
1701
1331
  getObject(arg0).value = arg1;
1702
1332
  };
1703
- imports.wbg.__wbg_set_vertex_76b7ac4bdfbb06f4 = function(arg0, arg1) {
1704
- getObject(arg0).vertex = getObject(arg1);
1705
- };
1706
- imports.wbg.__wbg_set_view_1ef41eeb26eaf718 = function(arg0, arg1) {
1707
- getObject(arg0).view = getObject(arg1);
1708
- };
1709
- imports.wbg.__wbg_set_view_46b654a12649c6f6 = function(arg0, arg1) {
1710
- getObject(arg0).view = getObject(arg1);
1711
- };
1712
1333
  imports.wbg.__wbg_set_view_dimension_12c332494a2697dc = function(arg0, arg1) {
1713
1334
  getObject(arg0).viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
1714
1335
  };
@@ -1733,9 +1354,6 @@ function __wbg_get_imports() {
1733
1354
  imports.wbg.__wbg_set_width_7ff7a22c6e9f423e = function(arg0, arg1) {
1734
1355
  getObject(arg0).width = arg1 >>> 0;
1735
1356
  };
1736
- imports.wbg.__wbg_set_write_mask_c92743022356850e = function(arg0, arg1) {
1737
- getObject(arg0).writeMask = arg1 >>> 0;
1738
- };
1739
1357
  imports.wbg.__wbg_set_x_0771b0f86d56cdf9 = function(arg0, arg1) {
1740
1358
  getObject(arg0).x = arg1 >>> 0;
1741
1359
  };
@@ -1780,9 +1398,6 @@ function __wbg_get_imports() {
1780
1398
  const ret = getObject(arg0).top;
1781
1399
  return ret;
1782
1400
  };
1783
- imports.wbg.__wbg_unmap_ab94ab04cfb14bee = function(arg0) {
1784
- getObject(arg0).unmap();
1785
- };
1786
1401
  imports.wbg.__wbg_value_ee261c29fa562a8d = function(arg0) {
1787
1402
  const ret = getObject(arg0).value;
1788
1403
  return ret;
@@ -1793,24 +1408,19 @@ function __wbg_get_imports() {
1793
1408
  imports.wbg.__wbg_writeTexture_0466bf7d7d35e04e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1794
1409
  getObject(arg0).writeTexture(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
1795
1410
  }, arguments) };
1411
+ imports.wbg.__wbindgen_cast_0c7634bb955eb75b = function(arg0, arg1) {
1412
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 40, function: Function { arguments: [NamedExternref("Event")], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1413
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_1290, __wasm_bindgen_func_elem_1291);
1414
+ return addHeapObject(ret);
1415
+ };
1796
1416
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
1797
1417
  // Cast intrinsic for `Ref(String) -> Externref`.
1798
1418
  const ret = getStringFromWasm0(arg0, arg1);
1799
1419
  return addHeapObject(ret);
1800
1420
  };
1801
- imports.wbg.__wbindgen_cast_66889d8aaddc848b = function(arg0, arg1) {
1802
- // Cast intrinsic for `Closure(Closure { dtor_idx: 38, function: Function { arguments: [Externref], shim_idx: 39, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1803
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_990, __wasm_bindgen_func_elem_991);
1804
- return addHeapObject(ret);
1805
- };
1806
- imports.wbg.__wbindgen_cast_c092c68d0311afcd = function(arg0, arg1) {
1807
- // Cast intrinsic for `Closure(Closure { dtor_idx: 38, function: Function { arguments: [NamedExternref("Event")], shim_idx: 39, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1808
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_990, __wasm_bindgen_func_elem_991);
1809
- return addHeapObject(ret);
1810
- };
1811
- imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
1812
- // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1813
- const ret = getArrayU8FromWasm0(arg0, arg1);
1421
+ imports.wbg.__wbindgen_cast_c6111fef16576abb = function(arg0, arg1) {
1422
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 40, function: Function { arguments: [Externref], shim_idx: 41, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1423
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_1290, __wasm_bindgen_func_elem_1291);
1814
1424
  return addHeapObject(ret);
1815
1425
  };
1816
1426
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
@@ -1833,7 +1443,6 @@ function __wbg_finalize_init(instance, module) {
1833
1443
  wasm = instance.exports;
1834
1444
  __wbg_init.__wbindgen_wasm_module = module;
1835
1445
  cachedDataViewMemory0 = null;
1836
- cachedUint32ArrayMemory0 = null;
1837
1446
  cachedUint8ArrayMemory0 = null;
1838
1447
 
1839
1448
 
Binary file
@@ -2,8 +2,8 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_bufferresult_free: (a: number, b: number) => void;
5
- export const bufferresult_buffer: (a: number, b: number) => void;
6
5
  export const bufferresult_result: (a: number) => number;
6
+ export const bufferresult_takeBuffer: (a: number, b: number) => void;
7
7
  export const vulfram_dispose: () => number;
8
8
  export const vulfram_get_profiling: () => number;
9
9
  export const vulfram_init: () => number;
@@ -12,8 +12,8 @@ export const vulfram_receive_queue: () => number;
12
12
  export const vulfram_send_queue: (a: number, b: number) => number;
13
13
  export const vulfram_tick: (a: number, b: number) => number;
14
14
  export const vulfram_upload_buffer: (a: bigint, b: number, c: number, d: number) => number;
15
- export const __wasm_bindgen_func_elem_991: (a: number, b: number, c: number) => void;
16
- export const __wasm_bindgen_func_elem_990: (a: number, b: number) => void;
15
+ export const __wasm_bindgen_func_elem_1291: (a: number, b: number, c: number) => void;
16
+ export const __wasm_bindgen_func_elem_1290: (a: number, b: number) => void;
17
17
  export const __wbindgen_export: (a: number, b: number) => number;
18
18
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
19
19
  export const __wbindgen_export3: (a: number) => void;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@vulfram/transport-wasm",
3
- "version": "0.14.8-alpha",
3
+ "version": "0.17.1-alpha",
4
4
  "module": "src/index.ts",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
7
7
  "type": "module",
8
8
  "dependencies": {
9
- "@vulfram/transport-types": "^0.2.3"
9
+ "@vulfram/transport-types": "^0.2.5"
10
10
  },
11
11
  "devDependencies": {
12
- "@types/bun": "^1.3.8"
12
+ "@types/bun": "^1.3.9"
13
13
  }
14
14
  }
package/src/index.ts CHANGED
@@ -37,7 +37,7 @@ function unwrapBufferResult(result: WasmBufferResult): {
37
37
  buffer: Uint8Array;
38
38
  result: number;
39
39
  } {
40
- const buffer = result.buffer;
40
+ const buffer = result.takeBuffer();
41
41
  const code = result.result;
42
42
  result.free();
43
43
  return { buffer, result: code };