@vulfram/transport-wasm 0.17.1-alpha → 0.17.2-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.
@@ -5,7 +5,7 @@ export class BufferResult {
5
5
  private constructor();
6
6
  free(): void;
7
7
  [Symbol.dispose](): void;
8
- takeBuffer(): Uint8Array;
8
+ readonly buffer: 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;
55
56
  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_1291: (a: number, b: number, c: number) => void;
66
- readonly __wasm_bindgen_func_elem_1290: (a: number, b: number) => void;
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;
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,6 +85,11 @@ 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
+
88
93
  function getArrayU8FromWasm0(ptr, len) {
89
94
  ptr = ptr >>> 0;
90
95
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
@@ -103,6 +108,14 @@ function getStringFromWasm0(ptr, len) {
103
108
  return decodeText(ptr, len);
104
109
  }
105
110
 
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
+
106
119
  let cachedUint8ArrayMemory0 = null;
107
120
  function getUint8ArrayMemory0() {
108
121
  if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
@@ -237,30 +250,48 @@ if (!('encodeInto' in cachedTextEncoder)) {
237
250
 
238
251
  let WASM_VECTOR_LEN = 0;
239
252
 
240
- function __wasm_bindgen_func_elem_1291(arg0, arg1, arg2) {
241
- wasm.__wasm_bindgen_func_elem_1291(arg0, arg1, addHeapObject(arg2));
253
+ function __wasm_bindgen_func_elem_991(arg0, arg1, arg2) {
254
+ wasm.__wasm_bindgen_func_elem_991(arg0, arg1, addHeapObject(arg2));
242
255
  }
243
256
 
244
257
  const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
245
258
 
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
+
246
263
  const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
247
264
 
248
265
  const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
249
266
 
250
267
  const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
251
268
 
269
+ const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
270
+
252
271
  const __wbindgen_enum_GpuFilterMode = ["nearest", "linear"];
253
272
 
273
+ const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
274
+
275
+ const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
276
+
277
+ const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
278
+
254
279
  const __wbindgen_enum_GpuMipmapFilterMode = ["nearest", "linear"];
255
280
 
256
281
  const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
257
282
 
283
+ const __wbindgen_enum_GpuPrimitiveTopology = ["point-list", "line-list", "line-strip", "triangle-list", "triangle-strip"];
284
+
258
285
  const __wbindgen_enum_GpuQueryType = ["occlusion", "timestamp"];
259
286
 
260
287
  const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
261
288
 
289
+ const __wbindgen_enum_GpuStencilOperation = ["keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap"];
290
+
262
291
  const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
263
292
 
293
+ const __wbindgen_enum_GpuStoreOp = ["store", "discard"];
294
+
264
295
  const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
265
296
 
266
297
  const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
@@ -271,6 +302,10 @@ const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "de
271
302
 
272
303
  const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
273
304
 
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
+
274
309
  const BufferResultFinalization = (typeof FinalizationRegistry === 'undefined')
275
310
  ? { register: () => {}, unregister: () => {} }
276
311
  : new FinalizationRegistry(ptr => wasm.__wbg_bufferresult_free(ptr >>> 0, 1));
@@ -296,10 +331,10 @@ export class BufferResult {
296
331
  /**
297
332
  * @returns {Uint8Array}
298
333
  */
299
- takeBuffer() {
334
+ get buffer() {
300
335
  try {
301
336
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
302
- wasm.bufferresult_takeBuffer(retptr, this.__wbg_ptr);
337
+ wasm.bufferresult_buffer(retptr, this.__wbg_ptr);
303
338
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
304
339
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
305
340
  var v1 = getArrayU8FromWasm0(r0, r1).slice();
@@ -509,6 +544,14 @@ function __wbg_get_imports() {
509
544
  const ret = getObject(arg0).axes;
510
545
  return addHeapObject(ret);
511
546
  };
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) };
512
555
  imports.wbg.__wbg_buffer_6cb2fecb1f253d71 = function(arg0) {
513
556
  const ret = getObject(arg0).buffer;
514
557
  return addHeapObject(ret);
@@ -570,10 +613,17 @@ function __wbg_get_imports() {
570
613
  imports.wbg.__wbg_copyBufferToBuffer_3e2b8d1e524281f5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
571
614
  getObject(arg0).copyBufferToBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
572
615
  }, 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) };
573
619
  imports.wbg.__wbg_createBindGroupLayout_f543b79f894eed2e = function() { return handleError(function (arg0, arg1) {
574
620
  const ret = getObject(arg0).createBindGroupLayout(getObject(arg1));
575
621
  return addHeapObject(ret);
576
622
  }, arguments) };
623
+ imports.wbg.__wbg_createBindGroup_06db01d96df151a7 = function(arg0, arg1) {
624
+ const ret = getObject(arg0).createBindGroup(getObject(arg1));
625
+ return addHeapObject(ret);
626
+ };
577
627
  imports.wbg.__wbg_createBufferSource_156317138619c7b0 = function() { return handleError(function (arg0) {
578
628
  const ret = getObject(arg0).createBufferSource();
579
629
  return addHeapObject(ret);
@@ -586,6 +636,10 @@ function __wbg_get_imports() {
586
636
  const ret = getObject(arg0).createCommandEncoder(getObject(arg1));
587
637
  return addHeapObject(ret);
588
638
  };
639
+ imports.wbg.__wbg_createComputePipeline_d24ca7b211444394 = function(arg0, arg1) {
640
+ const ret = getObject(arg0).createComputePipeline(getObject(arg1));
641
+ return addHeapObject(ret);
642
+ };
589
643
  imports.wbg.__wbg_createGain_d5704df14f1e271f = function() { return handleError(function (arg0) {
590
644
  const ret = getObject(arg0).createGain();
591
645
  return addHeapObject(ret);
@@ -602,6 +656,10 @@ function __wbg_get_imports() {
602
656
  const ret = getObject(arg0).createQuerySet(getObject(arg1));
603
657
  return addHeapObject(ret);
604
658
  }, 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) };
605
663
  imports.wbg.__wbg_createSampler_36aca895fb724d8b = function(arg0, arg1) {
606
664
  const ret = getObject(arg0).createSampler(getObject(arg1));
607
665
  return addHeapObject(ret);
@@ -646,14 +704,29 @@ function __wbg_get_imports() {
646
704
  const ret = getObject(arg0).destination;
647
705
  return addHeapObject(ret);
648
706
  };
707
+ imports.wbg.__wbg_dispatchWorkgroups_d63caaf66ad5bbb0 = function(arg0, arg1, arg2, arg3) {
708
+ getObject(arg0).dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
709
+ };
649
710
  imports.wbg.__wbg_document_5b745e82ba551ca5 = function(arg0) {
650
711
  const ret = getObject(arg0).document;
651
712
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
652
713
  };
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
+ };
653
720
  imports.wbg.__wbg_duration_d18723c667e9564a = function(arg0) {
654
721
  const ret = getObject(arg0).duration;
655
722
  return ret;
656
723
  };
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
+ };
657
730
  imports.wbg.__wbg_features_5d2c2677affa352d = function(arg0) {
658
731
  const ret = getObject(arg0).features;
659
732
  return addHeapObject(ret);
@@ -682,6 +755,10 @@ function __wbg_get_imports() {
682
755
  const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
683
756
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
684
757
  }, arguments) };
758
+ imports.wbg.__wbg_getCurrentTexture_6dc4d0ea8555e374 = function() { return handleError(function (arg0) {
759
+ const ret = getObject(arg0).getCurrentTexture();
760
+ return addHeapObject(ret);
761
+ }, arguments) };
685
762
  imports.wbg.__wbg_getElementById_e05488d2143c2b21 = function(arg0, arg1, arg2) {
686
763
  const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2));
687
764
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
@@ -690,6 +767,10 @@ function __wbg_get_imports() {
690
767
  const ret = getObject(arg0).getGamepads();
691
768
  return addHeapObject(ret);
692
769
  }, 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) };
693
774
  imports.wbg.__wbg_getPreferredCanvasFormat_06854455b835cf40 = function(arg0) {
694
775
  const ret = getObject(arg0).getPreferredCanvasFormat();
695
776
  return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 96) - 1;
@@ -706,10 +787,6 @@ function __wbg_get_imports() {
706
787
  const ret = getObject(arg0).gpu;
707
788
  return addHeapObject(ret);
708
789
  };
709
- imports.wbg.__wbg_hasFocus_7d4687baa7939850 = function() { return handleError(function (arg0) {
710
- const ret = getObject(arg0).hasFocus();
711
- return ret;
712
- }, arguments) };
713
790
  imports.wbg.__wbg_has_f1efef5b257eade8 = function(arg0, arg1, arg2) {
714
791
  const ret = getObject(arg0).has(getStringFromWasm0(arg1, arg2));
715
792
  return ret;
@@ -839,6 +916,10 @@ function __wbg_get_imports() {
839
916
  const ret = getObject(arg0).left;
840
917
  return ret;
841
918
  };
919
+ imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
920
+ const ret = getObject(arg0).length;
921
+ return ret;
922
+ };
842
923
  imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
843
924
  const ret = getObject(arg0).length;
844
925
  return ret;
@@ -1007,6 +1088,10 @@ function __wbg_get_imports() {
1007
1088
  const ret = new Function(getStringFromWasm0(arg0, arg1));
1008
1089
  return addHeapObject(ret);
1009
1090
  };
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
+ };
1010
1095
  imports.wbg.__wbg_now_69d776cd24f5215b = function() {
1011
1096
  const ret = Date.now();
1012
1097
  return ret;
@@ -1034,6 +1119,9 @@ function __wbg_get_imports() {
1034
1119
  const ret = getObject(arg0).pressed;
1035
1120
  return ret;
1036
1121
  };
1122
+ imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
1123
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
1124
+ };
1037
1125
  imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
1038
1126
  const ret = getObject(arg0).push(getObject(arg1));
1039
1127
  return ret;
@@ -1049,9 +1137,6 @@ function __wbg_get_imports() {
1049
1137
  const ret = getObject(arg0).queue;
1050
1138
  return addHeapObject(ret);
1051
1139
  };
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) };
1055
1140
  imports.wbg.__wbg_repeat_3733d1d584bf0e38 = function(arg0) {
1056
1141
  const ret = getObject(arg0).repeat;
1057
1142
  return ret;
@@ -1064,26 +1149,59 @@ function __wbg_get_imports() {
1064
1149
  const ret = getObject(arg0).requestDevice(getObject(arg1));
1065
1150
  return addHeapObject(ret);
1066
1151
  };
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
+ };
1067
1155
  imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
1068
1156
  const ret = Promise.resolve(getObject(arg0));
1069
1157
  return addHeapObject(ret);
1070
1158
  };
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
+ };
1071
1171
  imports.wbg.__wbg_setOrientation_b1947815d07c384d = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1072
1172
  getObject(arg0).setOrientation(arg1, arg2, arg3, arg4, arg5, arg6);
1073
1173
  };
1074
1174
  imports.wbg.__wbg_setOrientation_edf6d9270c35af16 = function(arg0, arg1, arg2, arg3) {
1075
1175
  getObject(arg0).setOrientation(arg1, arg2, arg3);
1076
1176
  };
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
+ };
1077
1183
  imports.wbg.__wbg_setPosition_96fcdcaf9ef69feb = function(arg0, arg1, arg2, arg3) {
1078
1184
  getObject(arg0).setPosition(arg1, arg2, arg3);
1079
1185
  };
1080
1186
  imports.wbg.__wbg_setPosition_e30bf00b6eb1505f = function(arg0, arg1, arg2, arg3) {
1081
1187
  getObject(arg0).setPosition(arg1, arg2, arg3);
1082
1188
  };
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
+ };
1083
1198
  imports.wbg.__wbg_set_781438a03c0c3c81 = function() { return handleError(function (arg0, arg1, arg2) {
1084
1199
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
1085
1200
  return ret;
1086
1201
  }, arguments) };
1202
+ imports.wbg.__wbg_set_a_e87a2053d5fccb4c = function(arg0, arg1) {
1203
+ getObject(arg0).a = arg1;
1204
+ };
1087
1205
  imports.wbg.__wbg_set_access_69d91e9d4e4ceac2 = function(arg0, arg1) {
1088
1206
  getObject(arg0).access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
1089
1207
  };
@@ -1096,45 +1214,93 @@ function __wbg_get_imports() {
1096
1214
  imports.wbg.__wbg_set_address_mode_w_2445963d0feae757 = function(arg0, arg1) {
1097
1215
  getObject(arg0).addressModeW = __wbindgen_enum_GpuAddressMode[arg1];
1098
1216
  };
1217
+ imports.wbg.__wbg_set_alpha_a7a68e5ec04efe77 = function(arg0, arg1) {
1218
+ getObject(arg0).alpha = getObject(arg1);
1219
+ };
1099
1220
  imports.wbg.__wbg_set_alpha_mode_60f87267fa3d95d0 = function(arg0, arg1) {
1100
1221
  getObject(arg0).alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
1101
1222
  };
1223
+ imports.wbg.__wbg_set_alpha_to_coverage_enabled_67782b8fff854d06 = function(arg0, arg1) {
1224
+ getObject(arg0).alphaToCoverageEnabled = arg1 !== 0;
1225
+ };
1102
1226
  imports.wbg.__wbg_set_array_layer_count_2bd74e56899b603a = function(arg0, arg1) {
1103
1227
  getObject(arg0).arrayLayerCount = arg1 >>> 0;
1104
1228
  };
1229
+ imports.wbg.__wbg_set_array_stride_acb85bd3848529a6 = function(arg0, arg1) {
1230
+ getObject(arg0).arrayStride = arg1;
1231
+ };
1105
1232
  imports.wbg.__wbg_set_aspect_82ca9caa27a4c533 = function(arg0, arg1) {
1106
1233
  getObject(arg0).aspect = __wbindgen_enum_GpuTextureAspect[arg1];
1107
1234
  };
1108
1235
  imports.wbg.__wbg_set_aspect_b78bd0b34ebfe19b = function(arg0, arg1) {
1109
1236
  getObject(arg0).aspect = __wbindgen_enum_GpuTextureAspect[arg1];
1110
1237
  };
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
+ };
1111
1244
  imports.wbg.__wbg_set_base_array_layer_064977086530f2e7 = function(arg0, arg1) {
1112
1245
  getObject(arg0).baseArrayLayer = arg1 >>> 0;
1113
1246
  };
1114
1247
  imports.wbg.__wbg_set_base_mip_level_845abe28a57bd901 = function(arg0, arg1) {
1115
1248
  getObject(arg0).baseMipLevel = arg1 >>> 0;
1116
1249
  };
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
+ };
1117
1256
  imports.wbg.__wbg_set_bind_group_layouts_db65f9787380e242 = function(arg0, arg1) {
1118
1257
  getObject(arg0).bindGroupLayouts = getObject(arg1);
1119
1258
  };
1120
1259
  imports.wbg.__wbg_set_binding_35fa28beda49ff83 = function(arg0, arg1) {
1121
1260
  getObject(arg0).binding = arg1 >>> 0;
1122
1261
  };
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
+ };
1123
1268
  imports.wbg.__wbg_set_buffer_25c70ce663d1667c = function(arg0, arg1) {
1124
1269
  getObject(arg0).buffer = getObject(arg1);
1125
1270
  };
1271
+ imports.wbg.__wbg_set_buffer_a9223dfcc0e34853 = function(arg0, arg1) {
1272
+ getObject(arg0).buffer = getObject(arg1);
1273
+ };
1126
1274
  imports.wbg.__wbg_set_buffer_d49e95bb5349d827 = function(arg0, arg1) {
1127
1275
  getObject(arg0).buffer = getObject(arg1);
1128
1276
  };
1277
+ imports.wbg.__wbg_set_buffers_68609a5d48c31b27 = function(arg0, arg1) {
1278
+ getObject(arg0).buffers = getObject(arg1);
1279
+ };
1129
1280
  imports.wbg.__wbg_set_bytes_per_row_4a52bbf4cdbfe78b = function(arg0, arg1) {
1130
1281
  getObject(arg0).bytesPerRow = arg1 >>> 0;
1131
1282
  };
1283
+ imports.wbg.__wbg_set_clear_value_8fc3623594df71b2 = function(arg0, arg1) {
1284
+ getObject(arg0).clearValue = getObject(arg1);
1285
+ };
1132
1286
  imports.wbg.__wbg_set_code_20093e29960281f8 = function(arg0, arg1, arg2) {
1133
1287
  getObject(arg0).code = getStringFromWasm0(arg1, arg2);
1134
1288
  };
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
+ };
1135
1295
  imports.wbg.__wbg_set_compare_0376672b0c0bbfd8 = function(arg0, arg1) {
1136
1296
  getObject(arg0).compare = __wbindgen_enum_GpuCompareFunction[arg1];
1137
1297
  };
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
+ };
1138
1304
  imports.wbg.__wbg_set_coneInnerAngle_af42eec2f168ddc5 = function(arg0, arg1) {
1139
1305
  getObject(arg0).coneInnerAngle = arg1;
1140
1306
  };
@@ -1147,9 +1313,51 @@ function __wbg_get_imports() {
1147
1313
  imports.wbg.__wbg_set_count_6f4f66c8eedc9bba = function(arg0, arg1) {
1148
1314
  getObject(arg0).count = arg1 >>> 0;
1149
1315
  };
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
+ };
1150
1343
  imports.wbg.__wbg_set_depth_or_array_layers_d7b93db07c5da69d = function(arg0, arg1) {
1151
1344
  getObject(arg0).depthOrArrayLayers = arg1 >>> 0;
1152
1345
  };
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
+ };
1153
1361
  imports.wbg.__wbg_set_device_dab18ead7bfc077b = function(arg0, arg1) {
1154
1362
  getObject(arg0).device = getObject(arg1);
1155
1363
  };
@@ -1159,12 +1367,33 @@ function __wbg_get_imports() {
1159
1367
  imports.wbg.__wbg_set_dimension_a3c50fb6d43f6cec = function(arg0, arg1) {
1160
1368
  getObject(arg0).dimension = __wbindgen_enum_GpuTextureDimension[arg1];
1161
1369
  };
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
+ };
1162
1379
  imports.wbg.__wbg_set_entries_b2258b5ef29810b0 = function(arg0, arg1) {
1163
1380
  getObject(arg0).entries = getObject(arg1);
1164
1381
  };
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
+ };
1165
1391
  imports.wbg.__wbg_set_external_texture_613e4434100d63ee = function(arg0, arg1) {
1166
1392
  getObject(arg0).externalTexture = getObject(arg1);
1167
1393
  };
1394
+ imports.wbg.__wbg_set_fail_op_73a4e194f4bc914a = function(arg0, arg1) {
1395
+ getObject(arg0).failOp = __wbindgen_enum_GpuStencilOperation[arg1];
1396
+ };
1168
1397
  imports.wbg.__wbg_set_format_1670e760e18ac001 = function(arg0, arg1) {
1169
1398
  getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
1170
1399
  };
@@ -1174,9 +1403,27 @@ function __wbg_get_imports() {
1174
1403
  imports.wbg.__wbg_set_format_25e4aacc74949e38 = function(arg0, arg1) {
1175
1404
  getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
1176
1405
  };
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
+ };
1177
1412
  imports.wbg.__wbg_set_format_7696f8290da8a36b = function(arg0, arg1) {
1178
1413
  getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
1179
1414
  };
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
+ };
1180
1427
  imports.wbg.__wbg_set_has_dynamic_offset_fbc1bb343939ed0b = function(arg0, arg1) {
1181
1428
  getObject(arg0).hasDynamicOffset = arg1 !== 0;
1182
1429
  };
@@ -1195,6 +1442,9 @@ function __wbg_get_imports() {
1195
1442
  imports.wbg.__wbg_set_label_0ec13ba975f77124 = function(arg0, arg1, arg2) {
1196
1443
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1197
1444
  };
1445
+ imports.wbg.__wbg_set_label_3b658d9ce970552c = function(arg0, arg1, arg2) {
1446
+ getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1447
+ };
1198
1448
  imports.wbg.__wbg_set_label_48883f5f49e4ec47 = function(arg0, arg1, arg2) {
1199
1449
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1200
1450
  };
@@ -1204,21 +1454,45 @@ function __wbg_get_imports() {
1204
1454
  imports.wbg.__wbg_set_label_4f4264b0041180e2 = function(arg0, arg1, arg2) {
1205
1455
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1206
1456
  };
1457
+ imports.wbg.__wbg_set_label_5b46e419b9e88c5e = function(arg0, arg1, arg2) {
1458
+ getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1459
+ };
1207
1460
  imports.wbg.__wbg_set_label_95423cd2e1f4b5dd = function(arg0, arg1, arg2) {
1208
1461
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1209
1462
  };
1463
+ imports.wbg.__wbg_set_label_ad0f2c69b41c3483 = function(arg0, arg1, arg2) {
1464
+ getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1465
+ };
1210
1466
  imports.wbg.__wbg_set_label_c3fc0a66f4ecc82b = function(arg0, arg1, arg2) {
1211
1467
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1212
1468
  };
1213
1469
  imports.wbg.__wbg_set_label_c857f45a8485236a = function(arg0, arg1, arg2) {
1214
1470
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1215
1471
  };
1472
+ imports.wbg.__wbg_set_label_d0fd4d4810525bf2 = function(arg0, arg1, arg2) {
1473
+ getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1474
+ };
1216
1475
  imports.wbg.__wbg_set_label_dc8df9969898889c = function(arg0, arg1, arg2) {
1217
1476
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1218
1477
  };
1219
1478
  imports.wbg.__wbg_set_label_e3709fe3e82429b5 = function(arg0, arg1, arg2) {
1220
1479
  getObject(arg0).label = getStringFromWasm0(arg1, arg2);
1221
1480
  };
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
+ };
1222
1496
  imports.wbg.__wbg_set_lod_max_clamp_aaac5daaecca96d4 = function(arg0, arg1) {
1223
1497
  getObject(arg0).lodMaxClamp = arg1;
1224
1498
  };
@@ -1234,6 +1508,9 @@ function __wbg_get_imports() {
1234
1508
  imports.wbg.__wbg_set_mapped_at_creation_2d003ce549611385 = function(arg0, arg1) {
1235
1509
  getObject(arg0).mappedAtCreation = arg1 !== 0;
1236
1510
  };
1511
+ imports.wbg.__wbg_set_mask_a933ba2e61c7610a = function(arg0, arg1) {
1512
+ getObject(arg0).mask = arg1 >>> 0;
1513
+ };
1237
1514
  imports.wbg.__wbg_set_maxDistance_6e90d383a13ce970 = function(arg0, arg1) {
1238
1515
  getObject(arg0).maxDistance = arg1;
1239
1516
  };
@@ -1258,24 +1535,63 @@ function __wbg_get_imports() {
1258
1535
  imports.wbg.__wbg_set_mipmap_filter_79f552c459e63aa6 = function(arg0, arg1) {
1259
1536
  getObject(arg0).mipmapFilter = __wbindgen_enum_GpuMipmapFilterMode[arg1];
1260
1537
  };
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
+ };
1261
1550
  imports.wbg.__wbg_set_multisampled_cd50d8f6709cea1a = function(arg0, arg1) {
1262
1551
  getObject(arg0).multisampled = arg1 !== 0;
1263
1552
  };
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
+ };
1264
1559
  imports.wbg.__wbg_set_offset_e7ce8b8eaaf46b95 = function(arg0, arg1) {
1265
1560
  getObject(arg0).offset = arg1;
1266
1561
  };
1562
+ imports.wbg.__wbg_set_operation_b96fabca3716aaa3 = function(arg0, arg1) {
1563
+ getObject(arg0).operation = __wbindgen_enum_GpuBlendOperation[arg1];
1564
+ };
1267
1565
  imports.wbg.__wbg_set_origin_c5f017d3f09ad7ff = function(arg0, arg1) {
1268
1566
  getObject(arg0).origin = getObject(arg1);
1269
1567
  };
1568
+ imports.wbg.__wbg_set_pass_op_765be90bb2f27220 = function(arg0, arg1) {
1569
+ getObject(arg0).passOp = __wbindgen_enum_GpuStencilOperation[arg1];
1570
+ };
1270
1571
  imports.wbg.__wbg_set_power_preference_39b347bf0d236ce6 = function(arg0, arg1) {
1271
1572
  getObject(arg0).powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
1272
1573
  };
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
+ };
1273
1583
  imports.wbg.__wbg_set_refDistance_0cb593d4e4e1273f = function(arg0, arg1) {
1274
1584
  getObject(arg0).refDistance = arg1;
1275
1585
  };
1276
1586
  imports.wbg.__wbg_set_required_features_650c9e5dafbaa395 = function(arg0, arg1) {
1277
1587
  getObject(arg0).requiredFeatures = getObject(arg1);
1278
1588
  };
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
+ };
1279
1595
  imports.wbg.__wbg_set_rolloffFactor_d99bd3cbca2a952c = function(arg0, arg1) {
1280
1596
  getObject(arg0).rolloffFactor = arg1;
1281
1597
  };
@@ -1291,21 +1607,72 @@ function __wbg_get_imports() {
1291
1607
  imports.wbg.__wbg_set_sampler_1a2729c0aa194081 = function(arg0, arg1) {
1292
1608
  getObject(arg0).sampler = getObject(arg1);
1293
1609
  };
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
+ };
1294
1616
  imports.wbg.__wbg_set_size_c6bf409f70f4420f = function(arg0, arg1) {
1295
1617
  getObject(arg0).size = getObject(arg1);
1296
1618
  };
1297
1619
  imports.wbg.__wbg_set_size_f902b266d636bf6e = function(arg0, arg1) {
1298
1620
  getObject(arg0).size = arg1;
1299
1621
  };
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
+ };
1300
1652
  imports.wbg.__wbg_set_storage_texture_6ee0cbeb50698110 = function(arg0, arg1) {
1301
1653
  getObject(arg0).storageTexture = getObject(arg1);
1302
1654
  };
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
+ };
1303
1664
  imports.wbg.__wbg_set_texture_f03807916f70dcc6 = function(arg0, arg1) {
1304
1665
  getObject(arg0).texture = getObject(arg1);
1305
1666
  };
1306
1667
  imports.wbg.__wbg_set_texture_f8ae0bb4bb159354 = function(arg0, arg1) {
1307
1668
  getObject(arg0).texture = getObject(arg1);
1308
1669
  };
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
+ };
1309
1676
  imports.wbg.__wbg_set_type_0cb4cdb5eff87f31 = function(arg0, arg1) {
1310
1677
  getObject(arg0).type = __wbindgen_enum_GpuBufferBindingType[arg1];
1311
1678
  };
@@ -1315,6 +1682,9 @@ function __wbg_get_imports() {
1315
1682
  imports.wbg.__wbg_set_type_d05fa8415ad0761f = function(arg0, arg1) {
1316
1683
  getObject(arg0).type = __wbindgen_enum_GpuSamplerBindingType[arg1];
1317
1684
  };
1685
+ imports.wbg.__wbg_set_unclipped_depth_17a5ab83d4e7cadc = function(arg0, arg1) {
1686
+ getObject(arg0).unclippedDepth = arg1 !== 0;
1687
+ };
1318
1688
  imports.wbg.__wbg_set_usage_3d569e7b02227032 = function(arg0, arg1) {
1319
1689
  getObject(arg0).usage = arg1 >>> 0;
1320
1690
  };
@@ -1330,6 +1700,15 @@ function __wbg_get_imports() {
1330
1700
  imports.wbg.__wbg_set_value_9b29412dd286d5d4 = function(arg0, arg1) {
1331
1701
  getObject(arg0).value = arg1;
1332
1702
  };
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
+ };
1333
1712
  imports.wbg.__wbg_set_view_dimension_12c332494a2697dc = function(arg0, arg1) {
1334
1713
  getObject(arg0).viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
1335
1714
  };
@@ -1354,6 +1733,9 @@ function __wbg_get_imports() {
1354
1733
  imports.wbg.__wbg_set_width_7ff7a22c6e9f423e = function(arg0, arg1) {
1355
1734
  getObject(arg0).width = arg1 >>> 0;
1356
1735
  };
1736
+ imports.wbg.__wbg_set_write_mask_c92743022356850e = function(arg0, arg1) {
1737
+ getObject(arg0).writeMask = arg1 >>> 0;
1738
+ };
1357
1739
  imports.wbg.__wbg_set_x_0771b0f86d56cdf9 = function(arg0, arg1) {
1358
1740
  getObject(arg0).x = arg1 >>> 0;
1359
1741
  };
@@ -1398,6 +1780,9 @@ function __wbg_get_imports() {
1398
1780
  const ret = getObject(arg0).top;
1399
1781
  return ret;
1400
1782
  };
1783
+ imports.wbg.__wbg_unmap_ab94ab04cfb14bee = function(arg0) {
1784
+ getObject(arg0).unmap();
1785
+ };
1401
1786
  imports.wbg.__wbg_value_ee261c29fa562a8d = function(arg0) {
1402
1787
  const ret = getObject(arg0).value;
1403
1788
  return ret;
@@ -1408,19 +1793,24 @@ function __wbg_get_imports() {
1408
1793
  imports.wbg.__wbg_writeTexture_0466bf7d7d35e04e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1409
1794
  getObject(arg0).writeTexture(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
1410
1795
  }, 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
- };
1416
1796
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
1417
1797
  // Cast intrinsic for `Ref(String) -> Externref`.
1418
1798
  const ret = getStringFromWasm0(arg0, arg1);
1419
1799
  return addHeapObject(ret);
1420
1800
  };
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);
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);
1424
1814
  return addHeapObject(ret);
1425
1815
  };
1426
1816
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
@@ -1443,6 +1833,7 @@ function __wbg_finalize_init(instance, module) {
1443
1833
  wasm = instance.exports;
1444
1834
  __wbg_init.__wbindgen_wasm_module = module;
1445
1835
  cachedDataViewMemory0 = null;
1836
+ cachedUint32ArrayMemory0 = null;
1446
1837
  cachedUint8ArrayMemory0 = null;
1447
1838
 
1448
1839
 
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;
5
6
  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_1291: (a: number, b: number, c: number) => void;
16
- export const __wasm_bindgen_func_elem_1290: (a: number, b: number) => void;
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;
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,17 @@
1
1
  {
2
2
  "name": "@vulfram/transport-wasm",
3
- "version": "0.17.1-alpha",
3
+ "version": "0.17.2-alpha",
4
4
  "module": "src/index.ts",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
7
7
  "type": "module",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
8
11
  "dependencies": {
9
- "@vulfram/transport-types": "^0.2.5"
12
+ "@vulfram/transport-types": "^0.2.6"
10
13
  },
11
14
  "devDependencies": {
12
- "@types/bun": "^1.3.9"
15
+ "@types/bun": "^1.3.10"
13
16
  }
14
17
  }