@vulfram/transport-wasm 0.5.5-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/lib/vulfram_core.d.ts +94 -0
- package/lib/vulfram_core.js +1752 -0
- package/lib/vulfram_core_bg.wasm +0 -0
- package/lib/vulfram_core_bg.wasm.d.ts +21 -0
- package/package.json +18 -0
- package/src/index.ts +85 -0
- package/tsconfig.json +29 -0
|
@@ -0,0 +1,1752 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
|
|
3
|
+
function addHeapObject(obj) {
|
|
4
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
5
|
+
const idx = heap_next;
|
|
6
|
+
heap_next = heap[idx];
|
|
7
|
+
|
|
8
|
+
heap[idx] = obj;
|
|
9
|
+
return idx;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
13
|
+
? { register: () => {}, unregister: () => {} }
|
|
14
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
15
|
+
|
|
16
|
+
function debugString(val) {
|
|
17
|
+
// primitive types
|
|
18
|
+
const type = typeof val;
|
|
19
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
20
|
+
return `${val}`;
|
|
21
|
+
}
|
|
22
|
+
if (type == 'string') {
|
|
23
|
+
return `"${val}"`;
|
|
24
|
+
}
|
|
25
|
+
if (type == 'symbol') {
|
|
26
|
+
const description = val.description;
|
|
27
|
+
if (description == null) {
|
|
28
|
+
return 'Symbol';
|
|
29
|
+
} else {
|
|
30
|
+
return `Symbol(${description})`;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (type == 'function') {
|
|
34
|
+
const name = val.name;
|
|
35
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
36
|
+
return `Function(${name})`;
|
|
37
|
+
} else {
|
|
38
|
+
return 'Function';
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
// objects
|
|
42
|
+
if (Array.isArray(val)) {
|
|
43
|
+
const length = val.length;
|
|
44
|
+
let debug = '[';
|
|
45
|
+
if (length > 0) {
|
|
46
|
+
debug += debugString(val[0]);
|
|
47
|
+
}
|
|
48
|
+
for(let i = 1; i < length; i++) {
|
|
49
|
+
debug += ', ' + debugString(val[i]);
|
|
50
|
+
}
|
|
51
|
+
debug += ']';
|
|
52
|
+
return debug;
|
|
53
|
+
}
|
|
54
|
+
// Test for built-in
|
|
55
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
56
|
+
let className;
|
|
57
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
58
|
+
className = builtInMatches[1];
|
|
59
|
+
} else {
|
|
60
|
+
// Failed to match the standard '[object ClassName]'
|
|
61
|
+
return toString.call(val);
|
|
62
|
+
}
|
|
63
|
+
if (className == 'Object') {
|
|
64
|
+
// we're a user defined class or Object
|
|
65
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
66
|
+
// easier than looping through ownProperties of `val`.
|
|
67
|
+
try {
|
|
68
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
69
|
+
} catch (_) {
|
|
70
|
+
return 'Object';
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// errors
|
|
74
|
+
if (val instanceof Error) {
|
|
75
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
76
|
+
}
|
|
77
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
78
|
+
return className;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function dropObject(idx) {
|
|
82
|
+
if (idx < 132) return;
|
|
83
|
+
heap[idx] = heap_next;
|
|
84
|
+
heap_next = idx;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
88
|
+
ptr = ptr >>> 0;
|
|
89
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
93
|
+
ptr = ptr >>> 0;
|
|
94
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
let cachedDataViewMemory0 = null;
|
|
98
|
+
function getDataViewMemory0() {
|
|
99
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
100
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
101
|
+
}
|
|
102
|
+
return cachedDataViewMemory0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function getStringFromWasm0(ptr, len) {
|
|
106
|
+
ptr = ptr >>> 0;
|
|
107
|
+
return decodeText(ptr, len);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
let cachedUint32ArrayMemory0 = null;
|
|
111
|
+
function getUint32ArrayMemory0() {
|
|
112
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
113
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
114
|
+
}
|
|
115
|
+
return cachedUint32ArrayMemory0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
let cachedUint8ArrayMemory0 = null;
|
|
119
|
+
function getUint8ArrayMemory0() {
|
|
120
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
121
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
122
|
+
}
|
|
123
|
+
return cachedUint8ArrayMemory0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function getObject(idx) { return heap[idx]; }
|
|
127
|
+
|
|
128
|
+
function handleError(f, args) {
|
|
129
|
+
try {
|
|
130
|
+
return f.apply(this, args);
|
|
131
|
+
} catch (e) {
|
|
132
|
+
wasm.__wbindgen_export3(addHeapObject(e));
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
let heap = new Array(128).fill(undefined);
|
|
137
|
+
heap.push(undefined, null, true, false);
|
|
138
|
+
|
|
139
|
+
let heap_next = heap.length;
|
|
140
|
+
|
|
141
|
+
function isLikeNone(x) {
|
|
142
|
+
return x === undefined || x === null;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
146
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
147
|
+
const real = (...args) => {
|
|
148
|
+
|
|
149
|
+
// First up with a closure we increment the internal reference
|
|
150
|
+
// count. This ensures that the Rust closure environment won't
|
|
151
|
+
// be deallocated while we're invoking it.
|
|
152
|
+
state.cnt++;
|
|
153
|
+
const a = state.a;
|
|
154
|
+
state.a = 0;
|
|
155
|
+
try {
|
|
156
|
+
return f(a, state.b, ...args);
|
|
157
|
+
} finally {
|
|
158
|
+
state.a = a;
|
|
159
|
+
real._wbg_cb_unref();
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
real._wbg_cb_unref = () => {
|
|
163
|
+
if (--state.cnt === 0) {
|
|
164
|
+
state.dtor(state.a, state.b);
|
|
165
|
+
state.a = 0;
|
|
166
|
+
CLOSURE_DTORS.unregister(state);
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
170
|
+
return real;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
174
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
175
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
176
|
+
WASM_VECTOR_LEN = arg.length;
|
|
177
|
+
return ptr;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
181
|
+
if (realloc === undefined) {
|
|
182
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
183
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
184
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
185
|
+
WASM_VECTOR_LEN = buf.length;
|
|
186
|
+
return ptr;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
let len = arg.length;
|
|
190
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
191
|
+
|
|
192
|
+
const mem = getUint8ArrayMemory0();
|
|
193
|
+
|
|
194
|
+
let offset = 0;
|
|
195
|
+
|
|
196
|
+
for (; offset < len; offset++) {
|
|
197
|
+
const code = arg.charCodeAt(offset);
|
|
198
|
+
if (code > 0x7F) break;
|
|
199
|
+
mem[ptr + offset] = code;
|
|
200
|
+
}
|
|
201
|
+
if (offset !== len) {
|
|
202
|
+
if (offset !== 0) {
|
|
203
|
+
arg = arg.slice(offset);
|
|
204
|
+
}
|
|
205
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
206
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
207
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
208
|
+
|
|
209
|
+
offset += ret.written;
|
|
210
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
WASM_VECTOR_LEN = offset;
|
|
214
|
+
return ptr;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
function takeObject(idx) {
|
|
218
|
+
const ret = getObject(idx);
|
|
219
|
+
dropObject(idx);
|
|
220
|
+
return ret;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
224
|
+
cachedTextDecoder.decode();
|
|
225
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
226
|
+
let numBytesDecoded = 0;
|
|
227
|
+
function decodeText(ptr, len) {
|
|
228
|
+
numBytesDecoded += len;
|
|
229
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
230
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
231
|
+
cachedTextDecoder.decode();
|
|
232
|
+
numBytesDecoded = len;
|
|
233
|
+
}
|
|
234
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
const cachedTextEncoder = new TextEncoder();
|
|
238
|
+
|
|
239
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
240
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
241
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
242
|
+
view.set(buf);
|
|
243
|
+
return {
|
|
244
|
+
read: arg.length,
|
|
245
|
+
written: buf.length
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
let WASM_VECTOR_LEN = 0;
|
|
251
|
+
|
|
252
|
+
function __wasm_bindgen_func_elem_842(arg0, arg1, arg2) {
|
|
253
|
+
wasm.__wasm_bindgen_func_elem_842(arg0, arg1, addHeapObject(arg2));
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
|
|
257
|
+
|
|
258
|
+
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"];
|
|
259
|
+
|
|
260
|
+
const __wbindgen_enum_GpuBlendOperation = ["add", "subtract", "reverse-subtract", "min", "max"];
|
|
261
|
+
|
|
262
|
+
const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
|
|
263
|
+
|
|
264
|
+
const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
|
|
265
|
+
|
|
266
|
+
const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
|
|
267
|
+
|
|
268
|
+
const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
|
|
269
|
+
|
|
270
|
+
const __wbindgen_enum_GpuFilterMode = ["nearest", "linear"];
|
|
271
|
+
|
|
272
|
+
const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
|
|
273
|
+
|
|
274
|
+
const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
|
|
275
|
+
|
|
276
|
+
const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
|
|
277
|
+
|
|
278
|
+
const __wbindgen_enum_GpuMipmapFilterMode = ["nearest", "linear"];
|
|
279
|
+
|
|
280
|
+
const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
|
|
281
|
+
|
|
282
|
+
const __wbindgen_enum_GpuPrimitiveTopology = ["point-list", "line-list", "line-strip", "triangle-list", "triangle-strip"];
|
|
283
|
+
|
|
284
|
+
const __wbindgen_enum_GpuQueryType = ["occlusion", "timestamp"];
|
|
285
|
+
|
|
286
|
+
const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
|
|
287
|
+
|
|
288
|
+
const __wbindgen_enum_GpuStencilOperation = ["keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap"];
|
|
289
|
+
|
|
290
|
+
const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
|
|
291
|
+
|
|
292
|
+
const __wbindgen_enum_GpuStoreOp = ["store", "discard"];
|
|
293
|
+
|
|
294
|
+
const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
|
|
295
|
+
|
|
296
|
+
const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
|
|
297
|
+
|
|
298
|
+
const __wbindgen_enum_GpuTextureFormat = ["r8unorm", "r8snorm", "r8uint", "r8sint", "r16uint", "r16sint", "r16float", "rg8unorm", "rg8snorm", "rg8uint", "rg8sint", "r32uint", "r32sint", "r32float", "rg16uint", "rg16sint", "rg16float", "rgba8unorm", "rgba8unorm-srgb", "rgba8snorm", "rgba8uint", "rgba8sint", "bgra8unorm", "bgra8unorm-srgb", "rgb9e5ufloat", "rgb10a2uint", "rgb10a2unorm", "rg11b10ufloat", "rg32uint", "rg32sint", "rg32float", "rgba16uint", "rgba16sint", "rgba16float", "rgba32uint", "rgba32sint", "rgba32float", "stencil8", "depth16unorm", "depth24plus", "depth24plus-stencil8", "depth32float", "depth32float-stencil8", "bc1-rgba-unorm", "bc1-rgba-unorm-srgb", "bc2-rgba-unorm", "bc2-rgba-unorm-srgb", "bc3-rgba-unorm", "bc3-rgba-unorm-srgb", "bc4-r-unorm", "bc4-r-snorm", "bc5-rg-unorm", "bc5-rg-snorm", "bc6h-rgb-ufloat", "bc6h-rgb-float", "bc7-rgba-unorm", "bc7-rgba-unorm-srgb", "etc2-rgb8unorm", "etc2-rgb8unorm-srgb", "etc2-rgb8a1unorm", "etc2-rgb8a1unorm-srgb", "etc2-rgba8unorm", "etc2-rgba8unorm-srgb", "eac-r11unorm", "eac-r11snorm", "eac-rg11unorm", "eac-rg11snorm", "astc-4x4-unorm", "astc-4x4-unorm-srgb", "astc-5x4-unorm", "astc-5x4-unorm-srgb", "astc-5x5-unorm", "astc-5x5-unorm-srgb", "astc-6x5-unorm", "astc-6x5-unorm-srgb", "astc-6x6-unorm", "astc-6x6-unorm-srgb", "astc-8x5-unorm", "astc-8x5-unorm-srgb", "astc-8x6-unorm", "astc-8x6-unorm-srgb", "astc-8x8-unorm", "astc-8x8-unorm-srgb", "astc-10x5-unorm", "astc-10x5-unorm-srgb", "astc-10x6-unorm", "astc-10x6-unorm-srgb", "astc-10x8-unorm", "astc-10x8-unorm-srgb", "astc-10x10-unorm", "astc-10x10-unorm-srgb", "astc-12x10-unorm", "astc-12x10-unorm-srgb", "astc-12x12-unorm", "astc-12x12-unorm-srgb"];
|
|
299
|
+
|
|
300
|
+
const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
|
|
301
|
+
|
|
302
|
+
const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
|
|
303
|
+
|
|
304
|
+
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"];
|
|
305
|
+
|
|
306
|
+
const __wbindgen_enum_GpuVertexStepMode = ["vertex", "instance"];
|
|
307
|
+
|
|
308
|
+
const BufferResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
309
|
+
? { register: () => {}, unregister: () => {} }
|
|
310
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_bufferresult_free(ptr >>> 0, 1));
|
|
311
|
+
|
|
312
|
+
export class BufferResult {
|
|
313
|
+
static __wrap(ptr) {
|
|
314
|
+
ptr = ptr >>> 0;
|
|
315
|
+
const obj = Object.create(BufferResult.prototype);
|
|
316
|
+
obj.__wbg_ptr = ptr;
|
|
317
|
+
BufferResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
318
|
+
return obj;
|
|
319
|
+
}
|
|
320
|
+
__destroy_into_raw() {
|
|
321
|
+
const ptr = this.__wbg_ptr;
|
|
322
|
+
this.__wbg_ptr = 0;
|
|
323
|
+
BufferResultFinalization.unregister(this);
|
|
324
|
+
return ptr;
|
|
325
|
+
}
|
|
326
|
+
free() {
|
|
327
|
+
const ptr = this.__destroy_into_raw();
|
|
328
|
+
wasm.__wbg_bufferresult_free(ptr, 0);
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* @returns {Uint8Array}
|
|
332
|
+
*/
|
|
333
|
+
get buffer() {
|
|
334
|
+
try {
|
|
335
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
336
|
+
wasm.bufferresult_buffer(retptr, this.__wbg_ptr);
|
|
337
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
338
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
339
|
+
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
340
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
341
|
+
return v1;
|
|
342
|
+
} finally {
|
|
343
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* @returns {number}
|
|
348
|
+
*/
|
|
349
|
+
get result() {
|
|
350
|
+
const ret = wasm.bufferresult_result(this.__wbg_ptr);
|
|
351
|
+
return ret >>> 0;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
if (Symbol.dispose) BufferResult.prototype[Symbol.dispose] = BufferResult.prototype.free;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Chroma subsampling format
|
|
358
|
+
* @enum {0 | 1 | 2 | 3}
|
|
359
|
+
*/
|
|
360
|
+
export const ChromaSampling = Object.freeze({
|
|
361
|
+
/**
|
|
362
|
+
* Both vertically and horizontally subsampled.
|
|
363
|
+
*/
|
|
364
|
+
Cs420: 0, "0": "Cs420",
|
|
365
|
+
/**
|
|
366
|
+
* Horizontally subsampled.
|
|
367
|
+
*/
|
|
368
|
+
Cs422: 1, "1": "Cs422",
|
|
369
|
+
/**
|
|
370
|
+
* Not subsampled.
|
|
371
|
+
*/
|
|
372
|
+
Cs444: 2, "2": "Cs444",
|
|
373
|
+
/**
|
|
374
|
+
* Monochrome.
|
|
375
|
+
*/
|
|
376
|
+
Cs400: 3, "3": "Cs400",
|
|
377
|
+
});
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* @returns {number}
|
|
381
|
+
*/
|
|
382
|
+
export function vulfram_dispose() {
|
|
383
|
+
const ret = wasm.vulfram_dispose();
|
|
384
|
+
return ret >>> 0;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* @returns {BufferResult}
|
|
389
|
+
*/
|
|
390
|
+
export function vulfram_get_profiling() {
|
|
391
|
+
const ret = wasm.vulfram_get_profiling();
|
|
392
|
+
return BufferResult.__wrap(ret);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* @returns {number}
|
|
397
|
+
*/
|
|
398
|
+
export function vulfram_init() {
|
|
399
|
+
const ret = wasm.vulfram_init();
|
|
400
|
+
return ret >>> 0;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* @returns {BufferResult}
|
|
405
|
+
*/
|
|
406
|
+
export function vulfram_receive_events() {
|
|
407
|
+
const ret = wasm.vulfram_receive_events();
|
|
408
|
+
return BufferResult.__wrap(ret);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* @returns {BufferResult}
|
|
413
|
+
*/
|
|
414
|
+
export function vulfram_receive_queue() {
|
|
415
|
+
const ret = wasm.vulfram_receive_queue();
|
|
416
|
+
return BufferResult.__wrap(ret);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* @param {Uint8Array} data
|
|
421
|
+
* @returns {number}
|
|
422
|
+
*/
|
|
423
|
+
export function vulfram_send_queue(data) {
|
|
424
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export);
|
|
425
|
+
const len0 = WASM_VECTOR_LEN;
|
|
426
|
+
const ret = wasm.vulfram_send_queue(ptr0, len0);
|
|
427
|
+
return ret >>> 0;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* @param {number} time_ms
|
|
432
|
+
* @param {number} delta_ms
|
|
433
|
+
* @returns {number}
|
|
434
|
+
*/
|
|
435
|
+
export function vulfram_tick(time_ms, delta_ms) {
|
|
436
|
+
const ret = wasm.vulfram_tick(time_ms, delta_ms);
|
|
437
|
+
return ret >>> 0;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* @param {bigint} id
|
|
442
|
+
* @param {number} upload_type
|
|
443
|
+
* @param {Uint8Array} data
|
|
444
|
+
* @returns {number}
|
|
445
|
+
*/
|
|
446
|
+
export function vulfram_upload_buffer(id, upload_type, data) {
|
|
447
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export);
|
|
448
|
+
const len0 = WASM_VECTOR_LEN;
|
|
449
|
+
const ret = wasm.vulfram_upload_buffer(id, upload_type, ptr0, len0);
|
|
450
|
+
return ret >>> 0;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
454
|
+
|
|
455
|
+
async function __wbg_load(module, imports) {
|
|
456
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
457
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
458
|
+
try {
|
|
459
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
460
|
+
} catch (e) {
|
|
461
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
462
|
+
|
|
463
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
464
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
465
|
+
|
|
466
|
+
} else {
|
|
467
|
+
throw e;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
const bytes = await module.arrayBuffer();
|
|
473
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
474
|
+
} else {
|
|
475
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
476
|
+
|
|
477
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
478
|
+
return { instance, module };
|
|
479
|
+
} else {
|
|
480
|
+
return instance;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
function __wbg_get_imports() {
|
|
486
|
+
const imports = {};
|
|
487
|
+
imports.wbg = {};
|
|
488
|
+
imports.wbg.__wbg_Window_7b2011a6368164ef = function(arg0) {
|
|
489
|
+
const ret = getObject(arg0).Window;
|
|
490
|
+
return addHeapObject(ret);
|
|
491
|
+
};
|
|
492
|
+
imports.wbg.__wbg_WorkerGlobalScope_4bddbcb12b3f5a28 = function(arg0) {
|
|
493
|
+
const ret = getObject(arg0).WorkerGlobalScope;
|
|
494
|
+
return addHeapObject(ret);
|
|
495
|
+
};
|
|
496
|
+
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
497
|
+
const ret = debugString(getObject(arg1));
|
|
498
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
499
|
+
const len1 = WASM_VECTOR_LEN;
|
|
500
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
501
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
502
|
+
};
|
|
503
|
+
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
504
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
505
|
+
return ret;
|
|
506
|
+
};
|
|
507
|
+
imports.wbg.__wbg___wbindgen_is_null_dfda7d66506c95b5 = function(arg0) {
|
|
508
|
+
const ret = getObject(arg0) === null;
|
|
509
|
+
return ret;
|
|
510
|
+
};
|
|
511
|
+
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
512
|
+
const ret = getObject(arg0) === undefined;
|
|
513
|
+
return ret;
|
|
514
|
+
};
|
|
515
|
+
imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
516
|
+
const obj = getObject(arg1);
|
|
517
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
518
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
519
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
520
|
+
};
|
|
521
|
+
imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
522
|
+
const obj = getObject(arg1);
|
|
523
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
524
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
525
|
+
var len1 = WASM_VECTOR_LEN;
|
|
526
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
527
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
528
|
+
};
|
|
529
|
+
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
530
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
531
|
+
};
|
|
532
|
+
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
533
|
+
getObject(arg0)._wbg_cb_unref();
|
|
534
|
+
};
|
|
535
|
+
imports.wbg.__wbg_addEventListener_6a82629b3d430a48 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
536
|
+
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
537
|
+
}, arguments) };
|
|
538
|
+
imports.wbg.__wbg_altKey_56d1d642f3a28c92 = function(arg0) {
|
|
539
|
+
const ret = getObject(arg0).altKey;
|
|
540
|
+
return ret;
|
|
541
|
+
};
|
|
542
|
+
imports.wbg.__wbg_axes_509e10f6078df948 = function(arg0) {
|
|
543
|
+
const ret = getObject(arg0).axes;
|
|
544
|
+
return addHeapObject(ret);
|
|
545
|
+
};
|
|
546
|
+
imports.wbg.__wbg_beginComputePass_8971ad8382254094 = function(arg0, arg1) {
|
|
547
|
+
const ret = getObject(arg0).beginComputePass(getObject(arg1));
|
|
548
|
+
return addHeapObject(ret);
|
|
549
|
+
};
|
|
550
|
+
imports.wbg.__wbg_beginRenderPass_599b98d9a6ba5692 = function() { return handleError(function (arg0, arg1) {
|
|
551
|
+
const ret = getObject(arg0).beginRenderPass(getObject(arg1));
|
|
552
|
+
return addHeapObject(ret);
|
|
553
|
+
}, arguments) };
|
|
554
|
+
imports.wbg.__wbg_buffer_6cb2fecb1f253d71 = function(arg0) {
|
|
555
|
+
const ret = getObject(arg0).buffer;
|
|
556
|
+
return addHeapObject(ret);
|
|
557
|
+
};
|
|
558
|
+
imports.wbg.__wbg_button_a54acd25bab5d442 = function(arg0) {
|
|
559
|
+
const ret = getObject(arg0).button;
|
|
560
|
+
return ret;
|
|
561
|
+
};
|
|
562
|
+
imports.wbg.__wbg_buttons_54a4da089b4ae582 = function(arg0) {
|
|
563
|
+
const ret = getObject(arg0).buttons;
|
|
564
|
+
return addHeapObject(ret);
|
|
565
|
+
};
|
|
566
|
+
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
567
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
568
|
+
return addHeapObject(ret);
|
|
569
|
+
}, arguments) };
|
|
570
|
+
imports.wbg.__wbg_clientHeight_2554d64d9b2dfc4f = function(arg0) {
|
|
571
|
+
const ret = getObject(arg0).clientHeight;
|
|
572
|
+
return ret;
|
|
573
|
+
};
|
|
574
|
+
imports.wbg.__wbg_clientWidth_dbc9540f4ebdce2a = function(arg0) {
|
|
575
|
+
const ret = getObject(arg0).clientWidth;
|
|
576
|
+
return ret;
|
|
577
|
+
};
|
|
578
|
+
imports.wbg.__wbg_clientX_c17906c33ea43025 = function(arg0) {
|
|
579
|
+
const ret = getObject(arg0).clientX;
|
|
580
|
+
return ret;
|
|
581
|
+
};
|
|
582
|
+
imports.wbg.__wbg_clientY_70eb66d231a332a3 = function(arg0) {
|
|
583
|
+
const ret = getObject(arg0).clientY;
|
|
584
|
+
return ret;
|
|
585
|
+
};
|
|
586
|
+
imports.wbg.__wbg_code_b3ddfa90f724c486 = function(arg0, arg1) {
|
|
587
|
+
const ret = getObject(arg1).code;
|
|
588
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
589
|
+
const len1 = WASM_VECTOR_LEN;
|
|
590
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
591
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
592
|
+
};
|
|
593
|
+
imports.wbg.__wbg_configure_bee5e0250d8526d5 = function() { return handleError(function (arg0, arg1) {
|
|
594
|
+
getObject(arg0).configure(getObject(arg1));
|
|
595
|
+
}, arguments) };
|
|
596
|
+
imports.wbg.__wbg_connected_6a7990d03eaa4de0 = function(arg0) {
|
|
597
|
+
const ret = getObject(arg0).connected;
|
|
598
|
+
return ret;
|
|
599
|
+
};
|
|
600
|
+
imports.wbg.__wbg_copyBufferToBuffer_3e2b8d1e524281f5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
601
|
+
getObject(arg0).copyBufferToBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
|
|
602
|
+
}, arguments) };
|
|
603
|
+
imports.wbg.__wbg_copyTextureToTexture_bf93074b99536fcf = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
604
|
+
getObject(arg0).copyTextureToTexture(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
605
|
+
}, arguments) };
|
|
606
|
+
imports.wbg.__wbg_createBindGroupLayout_f543b79f894eed2e = function() { return handleError(function (arg0, arg1) {
|
|
607
|
+
const ret = getObject(arg0).createBindGroupLayout(getObject(arg1));
|
|
608
|
+
return addHeapObject(ret);
|
|
609
|
+
}, arguments) };
|
|
610
|
+
imports.wbg.__wbg_createBindGroup_06db01d96df151a7 = function(arg0, arg1) {
|
|
611
|
+
const ret = getObject(arg0).createBindGroup(getObject(arg1));
|
|
612
|
+
return addHeapObject(ret);
|
|
613
|
+
};
|
|
614
|
+
imports.wbg.__wbg_createBuffer_6e69283608e8f98f = function() { return handleError(function (arg0, arg1) {
|
|
615
|
+
const ret = getObject(arg0).createBuffer(getObject(arg1));
|
|
616
|
+
return addHeapObject(ret);
|
|
617
|
+
}, arguments) };
|
|
618
|
+
imports.wbg.__wbg_createCommandEncoder_88e8ef64b19cdb2c = function(arg0, arg1) {
|
|
619
|
+
const ret = getObject(arg0).createCommandEncoder(getObject(arg1));
|
|
620
|
+
return addHeapObject(ret);
|
|
621
|
+
};
|
|
622
|
+
imports.wbg.__wbg_createComputePipeline_d24ca7b211444394 = function(arg0, arg1) {
|
|
623
|
+
const ret = getObject(arg0).createComputePipeline(getObject(arg1));
|
|
624
|
+
return addHeapObject(ret);
|
|
625
|
+
};
|
|
626
|
+
imports.wbg.__wbg_createPipelineLayout_0f960a922b66be56 = function(arg0, arg1) {
|
|
627
|
+
const ret = getObject(arg0).createPipelineLayout(getObject(arg1));
|
|
628
|
+
return addHeapObject(ret);
|
|
629
|
+
};
|
|
630
|
+
imports.wbg.__wbg_createQuerySet_23e578b66db97e49 = function() { return handleError(function (arg0, arg1) {
|
|
631
|
+
const ret = getObject(arg0).createQuerySet(getObject(arg1));
|
|
632
|
+
return addHeapObject(ret);
|
|
633
|
+
}, arguments) };
|
|
634
|
+
imports.wbg.__wbg_createRenderPipeline_725209221f17f288 = function() { return handleError(function (arg0, arg1) {
|
|
635
|
+
const ret = getObject(arg0).createRenderPipeline(getObject(arg1));
|
|
636
|
+
return addHeapObject(ret);
|
|
637
|
+
}, arguments) };
|
|
638
|
+
imports.wbg.__wbg_createSampler_36aca895fb724d8b = function(arg0, arg1) {
|
|
639
|
+
const ret = getObject(arg0).createSampler(getObject(arg1));
|
|
640
|
+
return addHeapObject(ret);
|
|
641
|
+
};
|
|
642
|
+
imports.wbg.__wbg_createShaderModule_714b17aece65828e = function(arg0, arg1) {
|
|
643
|
+
const ret = getObject(arg0).createShaderModule(getObject(arg1));
|
|
644
|
+
return addHeapObject(ret);
|
|
645
|
+
};
|
|
646
|
+
imports.wbg.__wbg_createTexture_63195fd0d63c3a24 = function() { return handleError(function (arg0, arg1) {
|
|
647
|
+
const ret = getObject(arg0).createTexture(getObject(arg1));
|
|
648
|
+
return addHeapObject(ret);
|
|
649
|
+
}, arguments) };
|
|
650
|
+
imports.wbg.__wbg_createView_79f49fbd3fb5f94f = function() { return handleError(function (arg0, arg1) {
|
|
651
|
+
const ret = getObject(arg0).createView(getObject(arg1));
|
|
652
|
+
return addHeapObject(ret);
|
|
653
|
+
}, arguments) };
|
|
654
|
+
imports.wbg.__wbg_ctrlKey_487597b9069da036 = function(arg0) {
|
|
655
|
+
const ret = getObject(arg0).ctrlKey;
|
|
656
|
+
return ret;
|
|
657
|
+
};
|
|
658
|
+
imports.wbg.__wbg_deltaMode_d74ec093e23ffeec = function(arg0) {
|
|
659
|
+
const ret = getObject(arg0).deltaMode;
|
|
660
|
+
return ret;
|
|
661
|
+
};
|
|
662
|
+
imports.wbg.__wbg_deltaX_41f7678c94b10355 = function(arg0) {
|
|
663
|
+
const ret = getObject(arg0).deltaX;
|
|
664
|
+
return ret;
|
|
665
|
+
};
|
|
666
|
+
imports.wbg.__wbg_deltaY_3f10fd796fae2a0f = function(arg0) {
|
|
667
|
+
const ret = getObject(arg0).deltaY;
|
|
668
|
+
return ret;
|
|
669
|
+
};
|
|
670
|
+
imports.wbg.__wbg_dispatchWorkgroups_d63caaf66ad5bbb0 = function(arg0, arg1, arg2, arg3) {
|
|
671
|
+
getObject(arg0).dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
|
672
|
+
};
|
|
673
|
+
imports.wbg.__wbg_document_5b745e82ba551ca5 = function(arg0) {
|
|
674
|
+
const ret = getObject(arg0).document;
|
|
675
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
676
|
+
};
|
|
677
|
+
imports.wbg.__wbg_drawIndexed_c47b56e3bafadecb = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
678
|
+
getObject(arg0).drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
679
|
+
};
|
|
680
|
+
imports.wbg.__wbg_draw_3f782f0d09a907da = function(arg0, arg1, arg2, arg3, arg4) {
|
|
681
|
+
getObject(arg0).draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
682
|
+
};
|
|
683
|
+
imports.wbg.__wbg_end_8bb194afb9988691 = function(arg0) {
|
|
684
|
+
getObject(arg0).end();
|
|
685
|
+
};
|
|
686
|
+
imports.wbg.__wbg_end_ae98f313507234ce = function(arg0) {
|
|
687
|
+
getObject(arg0).end();
|
|
688
|
+
};
|
|
689
|
+
imports.wbg.__wbg_features_5d2c2677affa352d = function(arg0) {
|
|
690
|
+
const ret = getObject(arg0).features;
|
|
691
|
+
return addHeapObject(ret);
|
|
692
|
+
};
|
|
693
|
+
imports.wbg.__wbg_finish_08e2d7b08c066b25 = function(arg0, arg1) {
|
|
694
|
+
const ret = getObject(arg0).finish(getObject(arg1));
|
|
695
|
+
return addHeapObject(ret);
|
|
696
|
+
};
|
|
697
|
+
imports.wbg.__wbg_finish_5ebfba3167b3092c = function(arg0) {
|
|
698
|
+
const ret = getObject(arg0).finish();
|
|
699
|
+
return addHeapObject(ret);
|
|
700
|
+
};
|
|
701
|
+
imports.wbg.__wbg_from_29a8414a7a7cd19d = function(arg0) {
|
|
702
|
+
const ret = Array.from(getObject(arg0));
|
|
703
|
+
return addHeapObject(ret);
|
|
704
|
+
};
|
|
705
|
+
imports.wbg.__wbg_getBoundingClientRect_25e44a78507968b0 = function(arg0) {
|
|
706
|
+
const ret = getObject(arg0).getBoundingClientRect();
|
|
707
|
+
return addHeapObject(ret);
|
|
708
|
+
};
|
|
709
|
+
imports.wbg.__wbg_getContext_01f42b234e833f0a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
710
|
+
const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
|
|
711
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
712
|
+
}, arguments) };
|
|
713
|
+
imports.wbg.__wbg_getCurrentTexture_6dc4d0ea8555e374 = function() { return handleError(function (arg0) {
|
|
714
|
+
const ret = getObject(arg0).getCurrentTexture();
|
|
715
|
+
return addHeapObject(ret);
|
|
716
|
+
}, arguments) };
|
|
717
|
+
imports.wbg.__wbg_getElementById_e05488d2143c2b21 = function(arg0, arg1, arg2) {
|
|
718
|
+
const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2));
|
|
719
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
720
|
+
};
|
|
721
|
+
imports.wbg.__wbg_getGamepads_0a2243e96f36011e = function() { return handleError(function (arg0) {
|
|
722
|
+
const ret = getObject(arg0).getGamepads();
|
|
723
|
+
return addHeapObject(ret);
|
|
724
|
+
}, arguments) };
|
|
725
|
+
imports.wbg.__wbg_getPreferredCanvasFormat_06854455b835cf40 = function(arg0) {
|
|
726
|
+
const ret = getObject(arg0).getPreferredCanvasFormat();
|
|
727
|
+
return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 96) - 1;
|
|
728
|
+
};
|
|
729
|
+
imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
730
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
731
|
+
return addHeapObject(ret);
|
|
732
|
+
};
|
|
733
|
+
imports.wbg.__wbg_gpu_653e59c6ae8028a8 = function(arg0) {
|
|
734
|
+
const ret = getObject(arg0).gpu;
|
|
735
|
+
return addHeapObject(ret);
|
|
736
|
+
};
|
|
737
|
+
imports.wbg.__wbg_has_f1efef5b257eade8 = function(arg0, arg1, arg2) {
|
|
738
|
+
const ret = getObject(arg0).has(getStringFromWasm0(arg1, arg2));
|
|
739
|
+
return ret;
|
|
740
|
+
};
|
|
741
|
+
imports.wbg.__wbg_id_8f6c18eb89285f50 = function(arg0, arg1) {
|
|
742
|
+
const ret = getObject(arg1).id;
|
|
743
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
744
|
+
const len1 = WASM_VECTOR_LEN;
|
|
745
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
746
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
747
|
+
};
|
|
748
|
+
imports.wbg.__wbg_instanceof_GamepadButton_c6cd27aa389ac695 = function(arg0) {
|
|
749
|
+
let result;
|
|
750
|
+
try {
|
|
751
|
+
result = getObject(arg0) instanceof GamepadButton;
|
|
752
|
+
} catch (_) {
|
|
753
|
+
result = false;
|
|
754
|
+
}
|
|
755
|
+
const ret = result;
|
|
756
|
+
return ret;
|
|
757
|
+
};
|
|
758
|
+
imports.wbg.__wbg_instanceof_Gamepad_2a3c10a094fbd989 = function(arg0) {
|
|
759
|
+
let result;
|
|
760
|
+
try {
|
|
761
|
+
result = getObject(arg0) instanceof Gamepad;
|
|
762
|
+
} catch (_) {
|
|
763
|
+
result = false;
|
|
764
|
+
}
|
|
765
|
+
const ret = result;
|
|
766
|
+
return ret;
|
|
767
|
+
};
|
|
768
|
+
imports.wbg.__wbg_instanceof_GpuAdapter_b2c1300e425af95c = function(arg0) {
|
|
769
|
+
let result;
|
|
770
|
+
try {
|
|
771
|
+
result = getObject(arg0) instanceof GPUAdapter;
|
|
772
|
+
} catch (_) {
|
|
773
|
+
result = false;
|
|
774
|
+
}
|
|
775
|
+
const ret = result;
|
|
776
|
+
return ret;
|
|
777
|
+
};
|
|
778
|
+
imports.wbg.__wbg_instanceof_GpuCanvasContext_c9b75b4b7dc7555e = function(arg0) {
|
|
779
|
+
let result;
|
|
780
|
+
try {
|
|
781
|
+
result = getObject(arg0) instanceof GPUCanvasContext;
|
|
782
|
+
} catch (_) {
|
|
783
|
+
result = false;
|
|
784
|
+
}
|
|
785
|
+
const ret = result;
|
|
786
|
+
return ret;
|
|
787
|
+
};
|
|
788
|
+
imports.wbg.__wbg_instanceof_HtmlCanvasElement_c4251b1b6a15edcc = function(arg0) {
|
|
789
|
+
let result;
|
|
790
|
+
try {
|
|
791
|
+
result = getObject(arg0) instanceof HTMLCanvasElement;
|
|
792
|
+
} catch (_) {
|
|
793
|
+
result = false;
|
|
794
|
+
}
|
|
795
|
+
const ret = result;
|
|
796
|
+
return ret;
|
|
797
|
+
};
|
|
798
|
+
imports.wbg.__wbg_instanceof_KeyboardEvent_1d6c7f5fcec88195 = function(arg0) {
|
|
799
|
+
let result;
|
|
800
|
+
try {
|
|
801
|
+
result = getObject(arg0) instanceof KeyboardEvent;
|
|
802
|
+
} catch (_) {
|
|
803
|
+
result = false;
|
|
804
|
+
}
|
|
805
|
+
const ret = result;
|
|
806
|
+
return ret;
|
|
807
|
+
};
|
|
808
|
+
imports.wbg.__wbg_instanceof_PointerEvent_421e84f66fae8b5c = function(arg0) {
|
|
809
|
+
let result;
|
|
810
|
+
try {
|
|
811
|
+
result = getObject(arg0) instanceof PointerEvent;
|
|
812
|
+
} catch (_) {
|
|
813
|
+
result = false;
|
|
814
|
+
}
|
|
815
|
+
const ret = result;
|
|
816
|
+
return ret;
|
|
817
|
+
};
|
|
818
|
+
imports.wbg.__wbg_instanceof_WheelEvent_126f1ae9bf322f38 = function(arg0) {
|
|
819
|
+
let result;
|
|
820
|
+
try {
|
|
821
|
+
result = getObject(arg0) instanceof WheelEvent;
|
|
822
|
+
} catch (_) {
|
|
823
|
+
result = false;
|
|
824
|
+
}
|
|
825
|
+
const ret = result;
|
|
826
|
+
return ret;
|
|
827
|
+
};
|
|
828
|
+
imports.wbg.__wbg_instanceof_Window_b5cf7783caa68180 = function(arg0) {
|
|
829
|
+
let result;
|
|
830
|
+
try {
|
|
831
|
+
result = getObject(arg0) instanceof Window;
|
|
832
|
+
} catch (_) {
|
|
833
|
+
result = false;
|
|
834
|
+
}
|
|
835
|
+
const ret = result;
|
|
836
|
+
return ret;
|
|
837
|
+
};
|
|
838
|
+
imports.wbg.__wbg_key_505d33c50799526a = function(arg0, arg1) {
|
|
839
|
+
const ret = getObject(arg1).key;
|
|
840
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
841
|
+
const len1 = WASM_VECTOR_LEN;
|
|
842
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
843
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
844
|
+
};
|
|
845
|
+
imports.wbg.__wbg_label_f279af9fe090b53f = function(arg0, arg1) {
|
|
846
|
+
const ret = getObject(arg1).label;
|
|
847
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
848
|
+
const len1 = WASM_VECTOR_LEN;
|
|
849
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
850
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
851
|
+
};
|
|
852
|
+
imports.wbg.__wbg_left_d52bfa3824286825 = function(arg0) {
|
|
853
|
+
const ret = getObject(arg0).left;
|
|
854
|
+
return ret;
|
|
855
|
+
};
|
|
856
|
+
imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
857
|
+
const ret = getObject(arg0).length;
|
|
858
|
+
return ret;
|
|
859
|
+
};
|
|
860
|
+
imports.wbg.__wbg_limits_59402e6db2c6b230 = function(arg0) {
|
|
861
|
+
const ret = getObject(arg0).limits;
|
|
862
|
+
return addHeapObject(ret);
|
|
863
|
+
};
|
|
864
|
+
imports.wbg.__wbg_location_0ef648bbeb3e599c = function(arg0) {
|
|
865
|
+
const ret = getObject(arg0).location;
|
|
866
|
+
return ret;
|
|
867
|
+
};
|
|
868
|
+
imports.wbg.__wbg_mapAsync_e89ffbd0722e6025 = function(arg0, arg1, arg2, arg3) {
|
|
869
|
+
const ret = getObject(arg0).mapAsync(arg1 >>> 0, arg2, arg3);
|
|
870
|
+
return addHeapObject(ret);
|
|
871
|
+
};
|
|
872
|
+
imports.wbg.__wbg_maxBindGroups_52e3144d1d4f3951 = function(arg0) {
|
|
873
|
+
const ret = getObject(arg0).maxBindGroups;
|
|
874
|
+
return ret;
|
|
875
|
+
};
|
|
876
|
+
imports.wbg.__wbg_maxBindingsPerBindGroup_8e383157db4cfd9d = function(arg0) {
|
|
877
|
+
const ret = getObject(arg0).maxBindingsPerBindGroup;
|
|
878
|
+
return ret;
|
|
879
|
+
};
|
|
880
|
+
imports.wbg.__wbg_maxBufferSize_4bed0deb2b5570bc = function(arg0) {
|
|
881
|
+
const ret = getObject(arg0).maxBufferSize;
|
|
882
|
+
return ret;
|
|
883
|
+
};
|
|
884
|
+
imports.wbg.__wbg_maxColorAttachmentBytesPerSample_2ded1d176129b49e = function(arg0) {
|
|
885
|
+
const ret = getObject(arg0).maxColorAttachmentBytesPerSample;
|
|
886
|
+
return ret;
|
|
887
|
+
};
|
|
888
|
+
imports.wbg.__wbg_maxColorAttachments_a363e1f84136b445 = function(arg0) {
|
|
889
|
+
const ret = getObject(arg0).maxColorAttachments;
|
|
890
|
+
return ret;
|
|
891
|
+
};
|
|
892
|
+
imports.wbg.__wbg_maxComputeInvocationsPerWorkgroup_8c8259a34a467300 = function(arg0) {
|
|
893
|
+
const ret = getObject(arg0).maxComputeInvocationsPerWorkgroup;
|
|
894
|
+
return ret;
|
|
895
|
+
};
|
|
896
|
+
imports.wbg.__wbg_maxComputeWorkgroupSizeX_6a123a5258a37c70 = function(arg0) {
|
|
897
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeX;
|
|
898
|
+
return ret;
|
|
899
|
+
};
|
|
900
|
+
imports.wbg.__wbg_maxComputeWorkgroupSizeY_212a6e863b315f06 = function(arg0) {
|
|
901
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeY;
|
|
902
|
+
return ret;
|
|
903
|
+
};
|
|
904
|
+
imports.wbg.__wbg_maxComputeWorkgroupSizeZ_53a8c06a42e0daa4 = function(arg0) {
|
|
905
|
+
const ret = getObject(arg0).maxComputeWorkgroupSizeZ;
|
|
906
|
+
return ret;
|
|
907
|
+
};
|
|
908
|
+
imports.wbg.__wbg_maxComputeWorkgroupStorageSize_0940bd6b70d5ee03 = function(arg0) {
|
|
909
|
+
const ret = getObject(arg0).maxComputeWorkgroupStorageSize;
|
|
910
|
+
return ret;
|
|
911
|
+
};
|
|
912
|
+
imports.wbg.__wbg_maxComputeWorkgroupsPerDimension_155968404880d2bc = function(arg0) {
|
|
913
|
+
const ret = getObject(arg0).maxComputeWorkgroupsPerDimension;
|
|
914
|
+
return ret;
|
|
915
|
+
};
|
|
916
|
+
imports.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_7d88fb9026cd8af3 = function(arg0) {
|
|
917
|
+
const ret = getObject(arg0).maxDynamicStorageBuffersPerPipelineLayout;
|
|
918
|
+
return ret;
|
|
919
|
+
};
|
|
920
|
+
imports.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_146ac1a721fbca9b = function(arg0) {
|
|
921
|
+
const ret = getObject(arg0).maxDynamicUniformBuffersPerPipelineLayout;
|
|
922
|
+
return ret;
|
|
923
|
+
};
|
|
924
|
+
imports.wbg.__wbg_maxSampledTexturesPerShaderStage_10ee96b97a701e05 = function(arg0) {
|
|
925
|
+
const ret = getObject(arg0).maxSampledTexturesPerShaderStage;
|
|
926
|
+
return ret;
|
|
927
|
+
};
|
|
928
|
+
imports.wbg.__wbg_maxSamplersPerShaderStage_7546a712e69839d0 = function(arg0) {
|
|
929
|
+
const ret = getObject(arg0).maxSamplersPerShaderStage;
|
|
930
|
+
return ret;
|
|
931
|
+
};
|
|
932
|
+
imports.wbg.__wbg_maxStorageBufferBindingSize_6f36ebfc9d4874d1 = function(arg0) {
|
|
933
|
+
const ret = getObject(arg0).maxStorageBufferBindingSize;
|
|
934
|
+
return ret;
|
|
935
|
+
};
|
|
936
|
+
imports.wbg.__wbg_maxStorageBuffersPerShaderStage_ad3988a66894ccd8 = function(arg0) {
|
|
937
|
+
const ret = getObject(arg0).maxStorageBuffersPerShaderStage;
|
|
938
|
+
return ret;
|
|
939
|
+
};
|
|
940
|
+
imports.wbg.__wbg_maxStorageTexturesPerShaderStage_3c4b0fd6cdb25d2f = function(arg0) {
|
|
941
|
+
const ret = getObject(arg0).maxStorageTexturesPerShaderStage;
|
|
942
|
+
return ret;
|
|
943
|
+
};
|
|
944
|
+
imports.wbg.__wbg_maxTextureArrayLayers_596c959454186b7e = function(arg0) {
|
|
945
|
+
const ret = getObject(arg0).maxTextureArrayLayers;
|
|
946
|
+
return ret;
|
|
947
|
+
};
|
|
948
|
+
imports.wbg.__wbg_maxTextureDimension1D_395c7225194787e6 = function(arg0) {
|
|
949
|
+
const ret = getObject(arg0).maxTextureDimension1D;
|
|
950
|
+
return ret;
|
|
951
|
+
};
|
|
952
|
+
imports.wbg.__wbg_maxTextureDimension2D_1c70c07372595733 = function(arg0) {
|
|
953
|
+
const ret = getObject(arg0).maxTextureDimension2D;
|
|
954
|
+
return ret;
|
|
955
|
+
};
|
|
956
|
+
imports.wbg.__wbg_maxTextureDimension3D_c2c0b973db2f7087 = function(arg0) {
|
|
957
|
+
const ret = getObject(arg0).maxTextureDimension3D;
|
|
958
|
+
return ret;
|
|
959
|
+
};
|
|
960
|
+
imports.wbg.__wbg_maxUniformBufferBindingSize_18e95cb371149021 = function(arg0) {
|
|
961
|
+
const ret = getObject(arg0).maxUniformBufferBindingSize;
|
|
962
|
+
return ret;
|
|
963
|
+
};
|
|
964
|
+
imports.wbg.__wbg_maxUniformBuffersPerShaderStage_e21721df6407d356 = function(arg0) {
|
|
965
|
+
const ret = getObject(arg0).maxUniformBuffersPerShaderStage;
|
|
966
|
+
return ret;
|
|
967
|
+
};
|
|
968
|
+
imports.wbg.__wbg_maxVertexAttributes_3685d049fb4b9557 = function(arg0) {
|
|
969
|
+
const ret = getObject(arg0).maxVertexAttributes;
|
|
970
|
+
return ret;
|
|
971
|
+
};
|
|
972
|
+
imports.wbg.__wbg_maxVertexBufferArrayStride_799ce7d416969442 = function(arg0) {
|
|
973
|
+
const ret = getObject(arg0).maxVertexBufferArrayStride;
|
|
974
|
+
return ret;
|
|
975
|
+
};
|
|
976
|
+
imports.wbg.__wbg_maxVertexBuffers_9e36c1cf99fac3d6 = function(arg0) {
|
|
977
|
+
const ret = getObject(arg0).maxVertexBuffers;
|
|
978
|
+
return ret;
|
|
979
|
+
};
|
|
980
|
+
imports.wbg.__wbg_metaKey_0572b1cbcb5b272b = function(arg0) {
|
|
981
|
+
const ret = getObject(arg0).metaKey;
|
|
982
|
+
return ret;
|
|
983
|
+
};
|
|
984
|
+
imports.wbg.__wbg_minStorageBufferOffsetAlignment_04598b6c2361de5d = function(arg0) {
|
|
985
|
+
const ret = getObject(arg0).minStorageBufferOffsetAlignment;
|
|
986
|
+
return ret;
|
|
987
|
+
};
|
|
988
|
+
imports.wbg.__wbg_minUniformBufferOffsetAlignment_0743900952f2cbce = function(arg0) {
|
|
989
|
+
const ret = getObject(arg0).minUniformBufferOffsetAlignment;
|
|
990
|
+
return ret;
|
|
991
|
+
};
|
|
992
|
+
imports.wbg.__wbg_navigator_11b7299bb7886507 = function(arg0) {
|
|
993
|
+
const ret = getObject(arg0).navigator;
|
|
994
|
+
return addHeapObject(ret);
|
|
995
|
+
};
|
|
996
|
+
imports.wbg.__wbg_navigator_b49edef831236138 = function(arg0) {
|
|
997
|
+
const ret = getObject(arg0).navigator;
|
|
998
|
+
return addHeapObject(ret);
|
|
999
|
+
};
|
|
1000
|
+
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
1001
|
+
const ret = new Object();
|
|
1002
|
+
return addHeapObject(ret);
|
|
1003
|
+
};
|
|
1004
|
+
imports.wbg.__wbg_new_25f239778d6112b9 = function() {
|
|
1005
|
+
const ret = new Array();
|
|
1006
|
+
return addHeapObject(ret);
|
|
1007
|
+
};
|
|
1008
|
+
imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
|
|
1009
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1010
|
+
return addHeapObject(ret);
|
|
1011
|
+
};
|
|
1012
|
+
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
1013
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1014
|
+
return addHeapObject(ret);
|
|
1015
|
+
};
|
|
1016
|
+
imports.wbg.__wbg_now_69d776cd24f5215b = function() {
|
|
1017
|
+
const ret = Date.now();
|
|
1018
|
+
return ret;
|
|
1019
|
+
};
|
|
1020
|
+
imports.wbg.__wbg_onSubmittedWorkDone_babe5ab237e856ff = function(arg0) {
|
|
1021
|
+
const ret = getObject(arg0).onSubmittedWorkDone();
|
|
1022
|
+
return addHeapObject(ret);
|
|
1023
|
+
};
|
|
1024
|
+
imports.wbg.__wbg_pointerId_bf4326e151df1474 = function(arg0) {
|
|
1025
|
+
const ret = getObject(arg0).pointerId;
|
|
1026
|
+
return ret;
|
|
1027
|
+
};
|
|
1028
|
+
imports.wbg.__wbg_pointerType_f1939c6407f96be9 = function(arg0, arg1) {
|
|
1029
|
+
const ret = getObject(arg1).pointerType;
|
|
1030
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1031
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1032
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1033
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1034
|
+
};
|
|
1035
|
+
imports.wbg.__wbg_pressed_34cb0204fc8b7d8b = function(arg0) {
|
|
1036
|
+
const ret = getObject(arg0).pressed;
|
|
1037
|
+
return ret;
|
|
1038
|
+
};
|
|
1039
|
+
imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
|
|
1040
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
1041
|
+
return ret;
|
|
1042
|
+
};
|
|
1043
|
+
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
1044
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
1045
|
+
return addHeapObject(ret);
|
|
1046
|
+
};
|
|
1047
|
+
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
1048
|
+
queueMicrotask(getObject(arg0));
|
|
1049
|
+
};
|
|
1050
|
+
imports.wbg.__wbg_queue_13a5c48e3c54a28c = function(arg0) {
|
|
1051
|
+
const ret = getObject(arg0).queue;
|
|
1052
|
+
return addHeapObject(ret);
|
|
1053
|
+
};
|
|
1054
|
+
imports.wbg.__wbg_repeat_3733d1d584bf0e38 = function(arg0) {
|
|
1055
|
+
const ret = getObject(arg0).repeat;
|
|
1056
|
+
return ret;
|
|
1057
|
+
};
|
|
1058
|
+
imports.wbg.__wbg_requestAdapter_cc9a9924f72519ab = function(arg0, arg1) {
|
|
1059
|
+
const ret = getObject(arg0).requestAdapter(getObject(arg1));
|
|
1060
|
+
return addHeapObject(ret);
|
|
1061
|
+
};
|
|
1062
|
+
imports.wbg.__wbg_requestDevice_295504649d1da14c = function(arg0, arg1) {
|
|
1063
|
+
const ret = getObject(arg0).requestDevice(getObject(arg1));
|
|
1064
|
+
return addHeapObject(ret);
|
|
1065
|
+
};
|
|
1066
|
+
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
1067
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
1068
|
+
return addHeapObject(ret);
|
|
1069
|
+
};
|
|
1070
|
+
imports.wbg.__wbg_setBindGroup_ae93a2ba8c665826 = function(arg0, arg1, arg2) {
|
|
1071
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2));
|
|
1072
|
+
};
|
|
1073
|
+
imports.wbg.__wbg_setBindGroup_bf7233e51ee0fd56 = function(arg0, arg1, arg2) {
|
|
1074
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2));
|
|
1075
|
+
};
|
|
1076
|
+
imports.wbg.__wbg_setBindGroup_c532d9e80c3b863a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1077
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2), getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1078
|
+
}, arguments) };
|
|
1079
|
+
imports.wbg.__wbg_setIndexBuffer_d6851b016152211a = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1080
|
+
getObject(arg0).setIndexBuffer(getObject(arg1), __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
|
|
1081
|
+
};
|
|
1082
|
+
imports.wbg.__wbg_setPipeline_6d9bb386aa5ee85f = function(arg0, arg1) {
|
|
1083
|
+
getObject(arg0).setPipeline(getObject(arg1));
|
|
1084
|
+
};
|
|
1085
|
+
imports.wbg.__wbg_setPipeline_b632e313f54b1cb1 = function(arg0, arg1) {
|
|
1086
|
+
getObject(arg0).setPipeline(getObject(arg1));
|
|
1087
|
+
};
|
|
1088
|
+
imports.wbg.__wbg_setScissorRect_13be2665184d6e20 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1089
|
+
getObject(arg0).setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1090
|
+
};
|
|
1091
|
+
imports.wbg.__wbg_setVertexBuffer_c8234139ead62a61 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1092
|
+
getObject(arg0).setVertexBuffer(arg1 >>> 0, getObject(arg2), arg3, arg4);
|
|
1093
|
+
};
|
|
1094
|
+
imports.wbg.__wbg_setViewport_b25340c5cfc5e64f = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1095
|
+
getObject(arg0).setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
1096
|
+
};
|
|
1097
|
+
imports.wbg.__wbg_set_781438a03c0c3c81 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1098
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
1099
|
+
return ret;
|
|
1100
|
+
}, arguments) };
|
|
1101
|
+
imports.wbg.__wbg_set_a_e87a2053d5fccb4c = function(arg0, arg1) {
|
|
1102
|
+
getObject(arg0).a = arg1;
|
|
1103
|
+
};
|
|
1104
|
+
imports.wbg.__wbg_set_access_69d91e9d4e4ceac2 = function(arg0, arg1) {
|
|
1105
|
+
getObject(arg0).access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
|
|
1106
|
+
};
|
|
1107
|
+
imports.wbg.__wbg_set_address_mode_u_17e91ba6701d7cdf = function(arg0, arg1) {
|
|
1108
|
+
getObject(arg0).addressModeU = __wbindgen_enum_GpuAddressMode[arg1];
|
|
1109
|
+
};
|
|
1110
|
+
imports.wbg.__wbg_set_address_mode_v_83cff33885b49fd0 = function(arg0, arg1) {
|
|
1111
|
+
getObject(arg0).addressModeV = __wbindgen_enum_GpuAddressMode[arg1];
|
|
1112
|
+
};
|
|
1113
|
+
imports.wbg.__wbg_set_address_mode_w_2445963d0feae757 = function(arg0, arg1) {
|
|
1114
|
+
getObject(arg0).addressModeW = __wbindgen_enum_GpuAddressMode[arg1];
|
|
1115
|
+
};
|
|
1116
|
+
imports.wbg.__wbg_set_alpha_a7a68e5ec04efe77 = function(arg0, arg1) {
|
|
1117
|
+
getObject(arg0).alpha = getObject(arg1);
|
|
1118
|
+
};
|
|
1119
|
+
imports.wbg.__wbg_set_alpha_mode_60f87267fa3d95d0 = function(arg0, arg1) {
|
|
1120
|
+
getObject(arg0).alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
|
|
1121
|
+
};
|
|
1122
|
+
imports.wbg.__wbg_set_alpha_to_coverage_enabled_67782b8fff854d06 = function(arg0, arg1) {
|
|
1123
|
+
getObject(arg0).alphaToCoverageEnabled = arg1 !== 0;
|
|
1124
|
+
};
|
|
1125
|
+
imports.wbg.__wbg_set_array_layer_count_2bd74e56899b603a = function(arg0, arg1) {
|
|
1126
|
+
getObject(arg0).arrayLayerCount = arg1 >>> 0;
|
|
1127
|
+
};
|
|
1128
|
+
imports.wbg.__wbg_set_array_stride_acb85bd3848529a6 = function(arg0, arg1) {
|
|
1129
|
+
getObject(arg0).arrayStride = arg1;
|
|
1130
|
+
};
|
|
1131
|
+
imports.wbg.__wbg_set_aspect_82ca9caa27a4c533 = function(arg0, arg1) {
|
|
1132
|
+
getObject(arg0).aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
1133
|
+
};
|
|
1134
|
+
imports.wbg.__wbg_set_aspect_b78bd0b34ebfe19b = function(arg0, arg1) {
|
|
1135
|
+
getObject(arg0).aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
1136
|
+
};
|
|
1137
|
+
imports.wbg.__wbg_set_attributes_4d5de6c80e3a7e73 = function(arg0, arg1) {
|
|
1138
|
+
getObject(arg0).attributes = getObject(arg1);
|
|
1139
|
+
};
|
|
1140
|
+
imports.wbg.__wbg_set_b_87725d82ac69a631 = function(arg0, arg1) {
|
|
1141
|
+
getObject(arg0).b = arg1;
|
|
1142
|
+
};
|
|
1143
|
+
imports.wbg.__wbg_set_base_array_layer_064977086530f2e7 = function(arg0, arg1) {
|
|
1144
|
+
getObject(arg0).baseArrayLayer = arg1 >>> 0;
|
|
1145
|
+
};
|
|
1146
|
+
imports.wbg.__wbg_set_base_mip_level_845abe28a57bd901 = function(arg0, arg1) {
|
|
1147
|
+
getObject(arg0).baseMipLevel = arg1 >>> 0;
|
|
1148
|
+
};
|
|
1149
|
+
imports.wbg.__wbg_set_beginning_of_pass_write_index_18bb7ab9fb16de02 = function(arg0, arg1) {
|
|
1150
|
+
getObject(arg0).beginningOfPassWriteIndex = arg1 >>> 0;
|
|
1151
|
+
};
|
|
1152
|
+
imports.wbg.__wbg_set_bind_group_layouts_db65f9787380e242 = function(arg0, arg1) {
|
|
1153
|
+
getObject(arg0).bindGroupLayouts = getObject(arg1);
|
|
1154
|
+
};
|
|
1155
|
+
imports.wbg.__wbg_set_binding_35fa28beda49ff83 = function(arg0, arg1) {
|
|
1156
|
+
getObject(arg0).binding = arg1 >>> 0;
|
|
1157
|
+
};
|
|
1158
|
+
imports.wbg.__wbg_set_binding_3b4abee15b11f6ec = function(arg0, arg1) {
|
|
1159
|
+
getObject(arg0).binding = arg1 >>> 0;
|
|
1160
|
+
};
|
|
1161
|
+
imports.wbg.__wbg_set_blend_21337ec514ad2280 = function(arg0, arg1) {
|
|
1162
|
+
getObject(arg0).blend = getObject(arg1);
|
|
1163
|
+
};
|
|
1164
|
+
imports.wbg.__wbg_set_buffer_a9223dfcc0e34853 = function(arg0, arg1) {
|
|
1165
|
+
getObject(arg0).buffer = getObject(arg1);
|
|
1166
|
+
};
|
|
1167
|
+
imports.wbg.__wbg_set_buffer_d49e95bb5349d827 = function(arg0, arg1) {
|
|
1168
|
+
getObject(arg0).buffer = getObject(arg1);
|
|
1169
|
+
};
|
|
1170
|
+
imports.wbg.__wbg_set_buffers_68609a5d48c31b27 = function(arg0, arg1) {
|
|
1171
|
+
getObject(arg0).buffers = getObject(arg1);
|
|
1172
|
+
};
|
|
1173
|
+
imports.wbg.__wbg_set_bytes_per_row_4a52bbf4cdbfe78b = function(arg0, arg1) {
|
|
1174
|
+
getObject(arg0).bytesPerRow = arg1 >>> 0;
|
|
1175
|
+
};
|
|
1176
|
+
imports.wbg.__wbg_set_clear_value_8fc3623594df71b2 = function(arg0, arg1) {
|
|
1177
|
+
getObject(arg0).clearValue = getObject(arg1);
|
|
1178
|
+
};
|
|
1179
|
+
imports.wbg.__wbg_set_code_20093e29960281f8 = function(arg0, arg1, arg2) {
|
|
1180
|
+
getObject(arg0).code = getStringFromWasm0(arg1, arg2);
|
|
1181
|
+
};
|
|
1182
|
+
imports.wbg.__wbg_set_color_64a633bf7b4cf6fe = function(arg0, arg1) {
|
|
1183
|
+
getObject(arg0).color = getObject(arg1);
|
|
1184
|
+
};
|
|
1185
|
+
imports.wbg.__wbg_set_color_attachments_4d4c71d7eeba8e2f = function(arg0, arg1) {
|
|
1186
|
+
getObject(arg0).colorAttachments = getObject(arg1);
|
|
1187
|
+
};
|
|
1188
|
+
imports.wbg.__wbg_set_compare_0376672b0c0bbfd8 = function(arg0, arg1) {
|
|
1189
|
+
getObject(arg0).compare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
1190
|
+
};
|
|
1191
|
+
imports.wbg.__wbg_set_compare_f3fb77a9bf3f0f7e = function(arg0, arg1) {
|
|
1192
|
+
getObject(arg0).compare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
1193
|
+
};
|
|
1194
|
+
imports.wbg.__wbg_set_compute_937f4ee700e465ff = function(arg0, arg1) {
|
|
1195
|
+
getObject(arg0).compute = getObject(arg1);
|
|
1196
|
+
};
|
|
1197
|
+
imports.wbg.__wbg_set_count_6f4f66c8eedc9bba = function(arg0, arg1) {
|
|
1198
|
+
getObject(arg0).count = arg1 >>> 0;
|
|
1199
|
+
};
|
|
1200
|
+
imports.wbg.__wbg_set_count_8cf9a3dd1ffc7b7d = function(arg0, arg1) {
|
|
1201
|
+
getObject(arg0).count = arg1 >>> 0;
|
|
1202
|
+
};
|
|
1203
|
+
imports.wbg.__wbg_set_cull_mode_41c12526410d3e05 = function(arg0, arg1) {
|
|
1204
|
+
getObject(arg0).cullMode = __wbindgen_enum_GpuCullMode[arg1];
|
|
1205
|
+
};
|
|
1206
|
+
imports.wbg.__wbg_set_depth_bias_31554aeaaa675954 = function(arg0, arg1) {
|
|
1207
|
+
getObject(arg0).depthBias = arg1;
|
|
1208
|
+
};
|
|
1209
|
+
imports.wbg.__wbg_set_depth_bias_clamp_8cf5f4f0d80e8cba = function(arg0, arg1) {
|
|
1210
|
+
getObject(arg0).depthBiasClamp = arg1;
|
|
1211
|
+
};
|
|
1212
|
+
imports.wbg.__wbg_set_depth_bias_slope_scale_310ae406f2d3a055 = function(arg0, arg1) {
|
|
1213
|
+
getObject(arg0).depthBiasSlopeScale = arg1;
|
|
1214
|
+
};
|
|
1215
|
+
imports.wbg.__wbg_set_depth_clear_value_8760aafb583d5312 = function(arg0, arg1) {
|
|
1216
|
+
getObject(arg0).depthClearValue = arg1;
|
|
1217
|
+
};
|
|
1218
|
+
imports.wbg.__wbg_set_depth_compare_8831904ce3173063 = function(arg0, arg1) {
|
|
1219
|
+
getObject(arg0).depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
1220
|
+
};
|
|
1221
|
+
imports.wbg.__wbg_set_depth_fail_op_62ec602580477afc = function(arg0, arg1) {
|
|
1222
|
+
getObject(arg0).depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1223
|
+
};
|
|
1224
|
+
imports.wbg.__wbg_set_depth_load_op_102d57f3ddf95461 = function(arg0, arg1) {
|
|
1225
|
+
getObject(arg0).depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
1226
|
+
};
|
|
1227
|
+
imports.wbg.__wbg_set_depth_or_array_layers_d7b93db07c5da69d = function(arg0, arg1) {
|
|
1228
|
+
getObject(arg0).depthOrArrayLayers = arg1 >>> 0;
|
|
1229
|
+
};
|
|
1230
|
+
imports.wbg.__wbg_set_depth_read_only_aebc24a542debafd = function(arg0, arg1) {
|
|
1231
|
+
getObject(arg0).depthReadOnly = arg1 !== 0;
|
|
1232
|
+
};
|
|
1233
|
+
imports.wbg.__wbg_set_depth_stencil_5627e73aaf33912c = function(arg0, arg1) {
|
|
1234
|
+
getObject(arg0).depthStencil = getObject(arg1);
|
|
1235
|
+
};
|
|
1236
|
+
imports.wbg.__wbg_set_depth_stencil_attachment_04b936535778e362 = function(arg0, arg1) {
|
|
1237
|
+
getObject(arg0).depthStencilAttachment = getObject(arg1);
|
|
1238
|
+
};
|
|
1239
|
+
imports.wbg.__wbg_set_depth_store_op_610b0a50dbb00eb8 = function(arg0, arg1) {
|
|
1240
|
+
getObject(arg0).depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
1241
|
+
};
|
|
1242
|
+
imports.wbg.__wbg_set_depth_write_enabled_f94217df9ff2d60c = function(arg0, arg1) {
|
|
1243
|
+
getObject(arg0).depthWriteEnabled = arg1 !== 0;
|
|
1244
|
+
};
|
|
1245
|
+
imports.wbg.__wbg_set_device_dab18ead7bfc077b = function(arg0, arg1) {
|
|
1246
|
+
getObject(arg0).device = getObject(arg1);
|
|
1247
|
+
};
|
|
1248
|
+
imports.wbg.__wbg_set_dimension_2a75a794a0bfcc94 = function(arg0, arg1) {
|
|
1249
|
+
getObject(arg0).dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1250
|
+
};
|
|
1251
|
+
imports.wbg.__wbg_set_dimension_a3c50fb6d43f6cec = function(arg0, arg1) {
|
|
1252
|
+
getObject(arg0).dimension = __wbindgen_enum_GpuTextureDimension[arg1];
|
|
1253
|
+
};
|
|
1254
|
+
imports.wbg.__wbg_set_dst_factor_cf872fec841747ac = function(arg0, arg1) {
|
|
1255
|
+
getObject(arg0).dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
1256
|
+
};
|
|
1257
|
+
imports.wbg.__wbg_set_end_of_pass_write_index_02ee5189026c1d3a = function(arg0, arg1) {
|
|
1258
|
+
getObject(arg0).endOfPassWriteIndex = arg1 >>> 0;
|
|
1259
|
+
};
|
|
1260
|
+
imports.wbg.__wbg_set_entries_1472deaee7053fb7 = function(arg0, arg1) {
|
|
1261
|
+
getObject(arg0).entries = getObject(arg1);
|
|
1262
|
+
};
|
|
1263
|
+
imports.wbg.__wbg_set_entries_b2258b5ef29810b0 = function(arg0, arg1) {
|
|
1264
|
+
getObject(arg0).entries = getObject(arg1);
|
|
1265
|
+
};
|
|
1266
|
+
imports.wbg.__wbg_set_entry_point_11f912102ade99b1 = function(arg0, arg1, arg2) {
|
|
1267
|
+
getObject(arg0).entryPoint = getStringFromWasm0(arg1, arg2);
|
|
1268
|
+
};
|
|
1269
|
+
imports.wbg.__wbg_set_entry_point_7f546bbf1e63e58d = function(arg0, arg1, arg2) {
|
|
1270
|
+
getObject(arg0).entryPoint = getStringFromWasm0(arg1, arg2);
|
|
1271
|
+
};
|
|
1272
|
+
imports.wbg.__wbg_set_entry_point_f9224cdb29cbe5df = function(arg0, arg1, arg2) {
|
|
1273
|
+
getObject(arg0).entryPoint = getStringFromWasm0(arg1, arg2);
|
|
1274
|
+
};
|
|
1275
|
+
imports.wbg.__wbg_set_external_texture_613e4434100d63ee = function(arg0, arg1) {
|
|
1276
|
+
getObject(arg0).externalTexture = getObject(arg1);
|
|
1277
|
+
};
|
|
1278
|
+
imports.wbg.__wbg_set_fail_op_73a4e194f4bc914a = function(arg0, arg1) {
|
|
1279
|
+
getObject(arg0).failOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1280
|
+
};
|
|
1281
|
+
imports.wbg.__wbg_set_format_1670e760e18ac001 = function(arg0, arg1) {
|
|
1282
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1283
|
+
};
|
|
1284
|
+
imports.wbg.__wbg_set_format_2141a8a1fd36fb9c = function(arg0, arg1) {
|
|
1285
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1286
|
+
};
|
|
1287
|
+
imports.wbg.__wbg_set_format_25e4aacc74949e38 = function(arg0, arg1) {
|
|
1288
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1289
|
+
};
|
|
1290
|
+
imports.wbg.__wbg_set_format_3f7008e9e568f0fc = function(arg0, arg1) {
|
|
1291
|
+
getObject(arg0).format = __wbindgen_enum_GpuVertexFormat[arg1];
|
|
1292
|
+
};
|
|
1293
|
+
imports.wbg.__wbg_set_format_4a4fccdfc45bc409 = function(arg0, arg1) {
|
|
1294
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1295
|
+
};
|
|
1296
|
+
imports.wbg.__wbg_set_format_7696f8290da8a36b = function(arg0, arg1) {
|
|
1297
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1298
|
+
};
|
|
1299
|
+
imports.wbg.__wbg_set_format_974a01725f579c5d = function(arg0, arg1) {
|
|
1300
|
+
getObject(arg0).format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1301
|
+
};
|
|
1302
|
+
imports.wbg.__wbg_set_fragment_f7ce64feaf1cd7dc = function(arg0, arg1) {
|
|
1303
|
+
getObject(arg0).fragment = getObject(arg1);
|
|
1304
|
+
};
|
|
1305
|
+
imports.wbg.__wbg_set_front_face_09e32557f8852301 = function(arg0, arg1) {
|
|
1306
|
+
getObject(arg0).frontFace = __wbindgen_enum_GpuFrontFace[arg1];
|
|
1307
|
+
};
|
|
1308
|
+
imports.wbg.__wbg_set_g_c31c959457596456 = function(arg0, arg1) {
|
|
1309
|
+
getObject(arg0).g = arg1;
|
|
1310
|
+
};
|
|
1311
|
+
imports.wbg.__wbg_set_has_dynamic_offset_fbc1bb343939ed0b = function(arg0, arg1) {
|
|
1312
|
+
getObject(arg0).hasDynamicOffset = arg1 !== 0;
|
|
1313
|
+
};
|
|
1314
|
+
imports.wbg.__wbg_set_height_6f8f8ef4cb40e496 = function(arg0, arg1) {
|
|
1315
|
+
getObject(arg0).height = arg1 >>> 0;
|
|
1316
|
+
};
|
|
1317
|
+
imports.wbg.__wbg_set_height_710b87344b3d6748 = function(arg0, arg1) {
|
|
1318
|
+
getObject(arg0).height = arg1 >>> 0;
|
|
1319
|
+
};
|
|
1320
|
+
imports.wbg.__wbg_set_height_afe09c24165867f7 = function(arg0, arg1) {
|
|
1321
|
+
getObject(arg0).height = arg1 >>> 0;
|
|
1322
|
+
};
|
|
1323
|
+
imports.wbg.__wbg_set_label_026fd015857827ae = function(arg0, arg1, arg2) {
|
|
1324
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1325
|
+
};
|
|
1326
|
+
imports.wbg.__wbg_set_label_0ec13ba975f77124 = function(arg0, arg1, arg2) {
|
|
1327
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1328
|
+
};
|
|
1329
|
+
imports.wbg.__wbg_set_label_3b658d9ce970552c = function(arg0, arg1, arg2) {
|
|
1330
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1331
|
+
};
|
|
1332
|
+
imports.wbg.__wbg_set_label_48883f5f49e4ec47 = function(arg0, arg1, arg2) {
|
|
1333
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1334
|
+
};
|
|
1335
|
+
imports.wbg.__wbg_set_label_4bbbc289ddddebd7 = function(arg0, arg1, arg2) {
|
|
1336
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1337
|
+
};
|
|
1338
|
+
imports.wbg.__wbg_set_label_4f4264b0041180e2 = function(arg0, arg1, arg2) {
|
|
1339
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1340
|
+
};
|
|
1341
|
+
imports.wbg.__wbg_set_label_5b46e419b9e88c5e = function(arg0, arg1, arg2) {
|
|
1342
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1343
|
+
};
|
|
1344
|
+
imports.wbg.__wbg_set_label_95423cd2e1f4b5dd = function(arg0, arg1, arg2) {
|
|
1345
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1346
|
+
};
|
|
1347
|
+
imports.wbg.__wbg_set_label_ad0f2c69b41c3483 = function(arg0, arg1, arg2) {
|
|
1348
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1349
|
+
};
|
|
1350
|
+
imports.wbg.__wbg_set_label_c3fc0a66f4ecc82b = function(arg0, arg1, arg2) {
|
|
1351
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1352
|
+
};
|
|
1353
|
+
imports.wbg.__wbg_set_label_c857f45a8485236a = function(arg0, arg1, arg2) {
|
|
1354
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1355
|
+
};
|
|
1356
|
+
imports.wbg.__wbg_set_label_d0fd4d4810525bf2 = function(arg0, arg1, arg2) {
|
|
1357
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1358
|
+
};
|
|
1359
|
+
imports.wbg.__wbg_set_label_dc8df9969898889c = function(arg0, arg1, arg2) {
|
|
1360
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1361
|
+
};
|
|
1362
|
+
imports.wbg.__wbg_set_label_e3709fe3e82429b5 = function(arg0, arg1, arg2) {
|
|
1363
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1364
|
+
};
|
|
1365
|
+
imports.wbg.__wbg_set_label_fb5d28b3ba7af11f = function(arg0, arg1, arg2) {
|
|
1366
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1367
|
+
};
|
|
1368
|
+
imports.wbg.__wbg_set_layout_170ec6b8aa37178f = function(arg0, arg1) {
|
|
1369
|
+
getObject(arg0).layout = getObject(arg1);
|
|
1370
|
+
};
|
|
1371
|
+
imports.wbg.__wbg_set_layout_7f76289be3294b4a = function(arg0, arg1) {
|
|
1372
|
+
getObject(arg0).layout = getObject(arg1);
|
|
1373
|
+
};
|
|
1374
|
+
imports.wbg.__wbg_set_layout_c20d48b352b24c1b = function(arg0, arg1) {
|
|
1375
|
+
getObject(arg0).layout = getObject(arg1);
|
|
1376
|
+
};
|
|
1377
|
+
imports.wbg.__wbg_set_load_op_c71d200e998908b0 = function(arg0, arg1) {
|
|
1378
|
+
getObject(arg0).loadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
1379
|
+
};
|
|
1380
|
+
imports.wbg.__wbg_set_lod_max_clamp_aaac5daaecca96d4 = function(arg0, arg1) {
|
|
1381
|
+
getObject(arg0).lodMaxClamp = arg1;
|
|
1382
|
+
};
|
|
1383
|
+
imports.wbg.__wbg_set_lod_min_clamp_ed2162d4b198abba = function(arg0, arg1) {
|
|
1384
|
+
getObject(arg0).lodMinClamp = arg1;
|
|
1385
|
+
};
|
|
1386
|
+
imports.wbg.__wbg_set_mag_filter_c8a8c1218cd38da6 = function(arg0, arg1) {
|
|
1387
|
+
getObject(arg0).magFilter = __wbindgen_enum_GpuFilterMode[arg1];
|
|
1388
|
+
};
|
|
1389
|
+
imports.wbg.__wbg_set_mapped_at_creation_2d003ce549611385 = function(arg0, arg1) {
|
|
1390
|
+
getObject(arg0).mappedAtCreation = arg1 !== 0;
|
|
1391
|
+
};
|
|
1392
|
+
imports.wbg.__wbg_set_mask_a933ba2e61c7610a = function(arg0, arg1) {
|
|
1393
|
+
getObject(arg0).mask = arg1 >>> 0;
|
|
1394
|
+
};
|
|
1395
|
+
imports.wbg.__wbg_set_max_anisotropy_fb4bae64cb5acf57 = function(arg0, arg1) {
|
|
1396
|
+
getObject(arg0).maxAnisotropy = arg1;
|
|
1397
|
+
};
|
|
1398
|
+
imports.wbg.__wbg_set_min_binding_size_308360802ae7a9ba = function(arg0, arg1) {
|
|
1399
|
+
getObject(arg0).minBindingSize = arg1;
|
|
1400
|
+
};
|
|
1401
|
+
imports.wbg.__wbg_set_min_filter_2dafbdeb188fd817 = function(arg0, arg1) {
|
|
1402
|
+
getObject(arg0).minFilter = __wbindgen_enum_GpuFilterMode[arg1];
|
|
1403
|
+
};
|
|
1404
|
+
imports.wbg.__wbg_set_mip_level_babe1ff64201f0ea = function(arg0, arg1) {
|
|
1405
|
+
getObject(arg0).mipLevel = arg1 >>> 0;
|
|
1406
|
+
};
|
|
1407
|
+
imports.wbg.__wbg_set_mip_level_count_cd3197411f4f2432 = function(arg0, arg1) {
|
|
1408
|
+
getObject(arg0).mipLevelCount = arg1 >>> 0;
|
|
1409
|
+
};
|
|
1410
|
+
imports.wbg.__wbg_set_mip_level_count_fdc72450a94244ef = function(arg0, arg1) {
|
|
1411
|
+
getObject(arg0).mipLevelCount = arg1 >>> 0;
|
|
1412
|
+
};
|
|
1413
|
+
imports.wbg.__wbg_set_mipmap_filter_79f552c459e63aa6 = function(arg0, arg1) {
|
|
1414
|
+
getObject(arg0).mipmapFilter = __wbindgen_enum_GpuMipmapFilterMode[arg1];
|
|
1415
|
+
};
|
|
1416
|
+
imports.wbg.__wbg_set_module_18d541838665d831 = function(arg0, arg1) {
|
|
1417
|
+
getObject(arg0).module = getObject(arg1);
|
|
1418
|
+
};
|
|
1419
|
+
imports.wbg.__wbg_set_module_20641353ebb28712 = function(arg0, arg1) {
|
|
1420
|
+
getObject(arg0).module = getObject(arg1);
|
|
1421
|
+
};
|
|
1422
|
+
imports.wbg.__wbg_set_module_6ece909be28666dd = function(arg0, arg1) {
|
|
1423
|
+
getObject(arg0).module = getObject(arg1);
|
|
1424
|
+
};
|
|
1425
|
+
imports.wbg.__wbg_set_multisample_e0f310ea9e40c2d9 = function(arg0, arg1) {
|
|
1426
|
+
getObject(arg0).multisample = getObject(arg1);
|
|
1427
|
+
};
|
|
1428
|
+
imports.wbg.__wbg_set_multisampled_cd50d8f6709cea1a = function(arg0, arg1) {
|
|
1429
|
+
getObject(arg0).multisampled = arg1 !== 0;
|
|
1430
|
+
};
|
|
1431
|
+
imports.wbg.__wbg_set_offset_2e78915f5d65d704 = function(arg0, arg1) {
|
|
1432
|
+
getObject(arg0).offset = arg1;
|
|
1433
|
+
};
|
|
1434
|
+
imports.wbg.__wbg_set_offset_405017033a936d89 = function(arg0, arg1) {
|
|
1435
|
+
getObject(arg0).offset = arg1;
|
|
1436
|
+
};
|
|
1437
|
+
imports.wbg.__wbg_set_offset_e7ce8b8eaaf46b95 = function(arg0, arg1) {
|
|
1438
|
+
getObject(arg0).offset = arg1;
|
|
1439
|
+
};
|
|
1440
|
+
imports.wbg.__wbg_set_operation_b96fabca3716aaa3 = function(arg0, arg1) {
|
|
1441
|
+
getObject(arg0).operation = __wbindgen_enum_GpuBlendOperation[arg1];
|
|
1442
|
+
};
|
|
1443
|
+
imports.wbg.__wbg_set_origin_c5f017d3f09ad7ff = function(arg0, arg1) {
|
|
1444
|
+
getObject(arg0).origin = getObject(arg1);
|
|
1445
|
+
};
|
|
1446
|
+
imports.wbg.__wbg_set_pass_op_765be90bb2f27220 = function(arg0, arg1) {
|
|
1447
|
+
getObject(arg0).passOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1448
|
+
};
|
|
1449
|
+
imports.wbg.__wbg_set_power_preference_39b347bf0d236ce6 = function(arg0, arg1) {
|
|
1450
|
+
getObject(arg0).powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
|
|
1451
|
+
};
|
|
1452
|
+
imports.wbg.__wbg_set_primitive_d6456d7efe6b4fe5 = function(arg0, arg1) {
|
|
1453
|
+
getObject(arg0).primitive = getObject(arg1);
|
|
1454
|
+
};
|
|
1455
|
+
imports.wbg.__wbg_set_query_set_20ecd7f9a16f3ec6 = function(arg0, arg1) {
|
|
1456
|
+
getObject(arg0).querySet = getObject(arg1);
|
|
1457
|
+
};
|
|
1458
|
+
imports.wbg.__wbg_set_r_07bd987697069496 = function(arg0, arg1) {
|
|
1459
|
+
getObject(arg0).r = arg1;
|
|
1460
|
+
};
|
|
1461
|
+
imports.wbg.__wbg_set_required_features_650c9e5dafbaa395 = function(arg0, arg1) {
|
|
1462
|
+
getObject(arg0).requiredFeatures = getObject(arg1);
|
|
1463
|
+
};
|
|
1464
|
+
imports.wbg.__wbg_set_resolve_target_c18cd4048765732a = function(arg0, arg1) {
|
|
1465
|
+
getObject(arg0).resolveTarget = getObject(arg1);
|
|
1466
|
+
};
|
|
1467
|
+
imports.wbg.__wbg_set_resource_8cea0fe2c8745c3e = function(arg0, arg1) {
|
|
1468
|
+
getObject(arg0).resource = getObject(arg1);
|
|
1469
|
+
};
|
|
1470
|
+
imports.wbg.__wbg_set_rows_per_image_2f7969031c71f0d8 = function(arg0, arg1) {
|
|
1471
|
+
getObject(arg0).rowsPerImage = arg1 >>> 0;
|
|
1472
|
+
};
|
|
1473
|
+
imports.wbg.__wbg_set_sample_count_07aedd28692aeae8 = function(arg0, arg1) {
|
|
1474
|
+
getObject(arg0).sampleCount = arg1 >>> 0;
|
|
1475
|
+
};
|
|
1476
|
+
imports.wbg.__wbg_set_sample_type_601a744a4bd6ea07 = function(arg0, arg1) {
|
|
1477
|
+
getObject(arg0).sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
|
|
1478
|
+
};
|
|
1479
|
+
imports.wbg.__wbg_set_sampler_1a2729c0aa194081 = function(arg0, arg1) {
|
|
1480
|
+
getObject(arg0).sampler = getObject(arg1);
|
|
1481
|
+
};
|
|
1482
|
+
imports.wbg.__wbg_set_shader_location_bdcfdc1009d351b1 = function(arg0, arg1) {
|
|
1483
|
+
getObject(arg0).shaderLocation = arg1 >>> 0;
|
|
1484
|
+
};
|
|
1485
|
+
imports.wbg.__wbg_set_size_7a392ee585f87da8 = function(arg0, arg1) {
|
|
1486
|
+
getObject(arg0).size = arg1;
|
|
1487
|
+
};
|
|
1488
|
+
imports.wbg.__wbg_set_size_c6bf409f70f4420f = function(arg0, arg1) {
|
|
1489
|
+
getObject(arg0).size = getObject(arg1);
|
|
1490
|
+
};
|
|
1491
|
+
imports.wbg.__wbg_set_size_f902b266d636bf6e = function(arg0, arg1) {
|
|
1492
|
+
getObject(arg0).size = arg1;
|
|
1493
|
+
};
|
|
1494
|
+
imports.wbg.__wbg_set_src_factor_50cef27aa8aece91 = function(arg0, arg1) {
|
|
1495
|
+
getObject(arg0).srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
1496
|
+
};
|
|
1497
|
+
imports.wbg.__wbg_set_stencil_back_e740415a5c0b637a = function(arg0, arg1) {
|
|
1498
|
+
getObject(arg0).stencilBack = getObject(arg1);
|
|
1499
|
+
};
|
|
1500
|
+
imports.wbg.__wbg_set_stencil_clear_value_6be76b512040398d = function(arg0, arg1) {
|
|
1501
|
+
getObject(arg0).stencilClearValue = arg1 >>> 0;
|
|
1502
|
+
};
|
|
1503
|
+
imports.wbg.__wbg_set_stencil_front_03185e1c3bafa411 = function(arg0, arg1) {
|
|
1504
|
+
getObject(arg0).stencilFront = getObject(arg1);
|
|
1505
|
+
};
|
|
1506
|
+
imports.wbg.__wbg_set_stencil_load_op_084f44352b978b3d = function(arg0, arg1) {
|
|
1507
|
+
getObject(arg0).stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
1508
|
+
};
|
|
1509
|
+
imports.wbg.__wbg_set_stencil_read_mask_e2736fc4af9399e4 = function(arg0, arg1) {
|
|
1510
|
+
getObject(arg0).stencilReadMask = arg1 >>> 0;
|
|
1511
|
+
};
|
|
1512
|
+
imports.wbg.__wbg_set_stencil_read_only_31f3d99299373c12 = function(arg0, arg1) {
|
|
1513
|
+
getObject(arg0).stencilReadOnly = arg1 !== 0;
|
|
1514
|
+
};
|
|
1515
|
+
imports.wbg.__wbg_set_stencil_store_op_428fb4955e4899d6 = function(arg0, arg1) {
|
|
1516
|
+
getObject(arg0).stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
1517
|
+
};
|
|
1518
|
+
imports.wbg.__wbg_set_stencil_write_mask_b1d3e1655305a187 = function(arg0, arg1) {
|
|
1519
|
+
getObject(arg0).stencilWriteMask = arg1 >>> 0;
|
|
1520
|
+
};
|
|
1521
|
+
imports.wbg.__wbg_set_step_mode_98e49f7877daf1c5 = function(arg0, arg1) {
|
|
1522
|
+
getObject(arg0).stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
|
|
1523
|
+
};
|
|
1524
|
+
imports.wbg.__wbg_set_storage_texture_6ee0cbeb50698110 = function(arg0, arg1) {
|
|
1525
|
+
getObject(arg0).storageTexture = getObject(arg1);
|
|
1526
|
+
};
|
|
1527
|
+
imports.wbg.__wbg_set_store_op_e761080d541a10cc = function(arg0, arg1) {
|
|
1528
|
+
getObject(arg0).storeOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
1529
|
+
};
|
|
1530
|
+
imports.wbg.__wbg_set_strip_index_format_16df9e33c7aa97e6 = function(arg0, arg1) {
|
|
1531
|
+
getObject(arg0).stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
|
|
1532
|
+
};
|
|
1533
|
+
imports.wbg.__wbg_set_targets_9fd1ec0b8edc895c = function(arg0, arg1) {
|
|
1534
|
+
getObject(arg0).targets = getObject(arg1);
|
|
1535
|
+
};
|
|
1536
|
+
imports.wbg.__wbg_set_texture_f03807916f70dcc6 = function(arg0, arg1) {
|
|
1537
|
+
getObject(arg0).texture = getObject(arg1);
|
|
1538
|
+
};
|
|
1539
|
+
imports.wbg.__wbg_set_texture_f8ae0bb4bb159354 = function(arg0, arg1) {
|
|
1540
|
+
getObject(arg0).texture = getObject(arg1);
|
|
1541
|
+
};
|
|
1542
|
+
imports.wbg.__wbg_set_timestamp_writes_3998dbfa21e48dbe = function(arg0, arg1) {
|
|
1543
|
+
getObject(arg0).timestampWrites = getObject(arg1);
|
|
1544
|
+
};
|
|
1545
|
+
imports.wbg.__wbg_set_topology_036632318a24227d = function(arg0, arg1) {
|
|
1546
|
+
getObject(arg0).topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
|
|
1547
|
+
};
|
|
1548
|
+
imports.wbg.__wbg_set_type_0cb4cdb5eff87f31 = function(arg0, arg1) {
|
|
1549
|
+
getObject(arg0).type = __wbindgen_enum_GpuBufferBindingType[arg1];
|
|
1550
|
+
};
|
|
1551
|
+
imports.wbg.__wbg_set_type_3099d48161846862 = function(arg0, arg1) {
|
|
1552
|
+
getObject(arg0).type = __wbindgen_enum_GpuQueryType[arg1];
|
|
1553
|
+
};
|
|
1554
|
+
imports.wbg.__wbg_set_type_d05fa8415ad0761f = function(arg0, arg1) {
|
|
1555
|
+
getObject(arg0).type = __wbindgen_enum_GpuSamplerBindingType[arg1];
|
|
1556
|
+
};
|
|
1557
|
+
imports.wbg.__wbg_set_unclipped_depth_17a5ab83d4e7cadc = function(arg0, arg1) {
|
|
1558
|
+
getObject(arg0).unclippedDepth = arg1 !== 0;
|
|
1559
|
+
};
|
|
1560
|
+
imports.wbg.__wbg_set_usage_3d569e7b02227032 = function(arg0, arg1) {
|
|
1561
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
1562
|
+
};
|
|
1563
|
+
imports.wbg.__wbg_set_usage_ac222ece73f994b7 = function(arg0, arg1) {
|
|
1564
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
1565
|
+
};
|
|
1566
|
+
imports.wbg.__wbg_set_usage_ca00520767c8a475 = function(arg0, arg1) {
|
|
1567
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
1568
|
+
};
|
|
1569
|
+
imports.wbg.__wbg_set_usage_fe13088353b65bee = function(arg0, arg1) {
|
|
1570
|
+
getObject(arg0).usage = arg1 >>> 0;
|
|
1571
|
+
};
|
|
1572
|
+
imports.wbg.__wbg_set_vertex_76b7ac4bdfbb06f4 = function(arg0, arg1) {
|
|
1573
|
+
getObject(arg0).vertex = getObject(arg1);
|
|
1574
|
+
};
|
|
1575
|
+
imports.wbg.__wbg_set_view_1ef41eeb26eaf718 = function(arg0, arg1) {
|
|
1576
|
+
getObject(arg0).view = getObject(arg1);
|
|
1577
|
+
};
|
|
1578
|
+
imports.wbg.__wbg_set_view_46b654a12649c6f6 = function(arg0, arg1) {
|
|
1579
|
+
getObject(arg0).view = getObject(arg1);
|
|
1580
|
+
};
|
|
1581
|
+
imports.wbg.__wbg_set_view_dimension_12c332494a2697dc = function(arg0, arg1) {
|
|
1582
|
+
getObject(arg0).viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1583
|
+
};
|
|
1584
|
+
imports.wbg.__wbg_set_view_dimension_31b9fd7126132e82 = function(arg0, arg1) {
|
|
1585
|
+
getObject(arg0).viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1586
|
+
};
|
|
1587
|
+
imports.wbg.__wbg_set_view_formats_152cb995add2ee4e = function(arg0, arg1) {
|
|
1588
|
+
getObject(arg0).viewFormats = getObject(arg1);
|
|
1589
|
+
};
|
|
1590
|
+
imports.wbg.__wbg_set_view_formats_cc77650da6c3b25b = function(arg0, arg1) {
|
|
1591
|
+
getObject(arg0).viewFormats = getObject(arg1);
|
|
1592
|
+
};
|
|
1593
|
+
imports.wbg.__wbg_set_visibility_6d1fc94552f22ac3 = function(arg0, arg1) {
|
|
1594
|
+
getObject(arg0).visibility = arg1 >>> 0;
|
|
1595
|
+
};
|
|
1596
|
+
imports.wbg.__wbg_set_width_0a22c810f06a5152 = function(arg0, arg1) {
|
|
1597
|
+
getObject(arg0).width = arg1 >>> 0;
|
|
1598
|
+
};
|
|
1599
|
+
imports.wbg.__wbg_set_width_5ee1e2d4a0fd929b = function(arg0, arg1) {
|
|
1600
|
+
getObject(arg0).width = arg1 >>> 0;
|
|
1601
|
+
};
|
|
1602
|
+
imports.wbg.__wbg_set_width_7ff7a22c6e9f423e = function(arg0, arg1) {
|
|
1603
|
+
getObject(arg0).width = arg1 >>> 0;
|
|
1604
|
+
};
|
|
1605
|
+
imports.wbg.__wbg_set_write_mask_c92743022356850e = function(arg0, arg1) {
|
|
1606
|
+
getObject(arg0).writeMask = arg1 >>> 0;
|
|
1607
|
+
};
|
|
1608
|
+
imports.wbg.__wbg_set_x_0771b0f86d56cdf9 = function(arg0, arg1) {
|
|
1609
|
+
getObject(arg0).x = arg1 >>> 0;
|
|
1610
|
+
};
|
|
1611
|
+
imports.wbg.__wbg_set_y_668d1578881576dd = function(arg0, arg1) {
|
|
1612
|
+
getObject(arg0).y = arg1 >>> 0;
|
|
1613
|
+
};
|
|
1614
|
+
imports.wbg.__wbg_set_z_3e24a918a76c816d = function(arg0, arg1) {
|
|
1615
|
+
getObject(arg0).z = arg1 >>> 0;
|
|
1616
|
+
};
|
|
1617
|
+
imports.wbg.__wbg_shiftKey_d2640abcfa98acec = function(arg0) {
|
|
1618
|
+
const ret = getObject(arg0).shiftKey;
|
|
1619
|
+
return ret;
|
|
1620
|
+
};
|
|
1621
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
1622
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1623
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1624
|
+
};
|
|
1625
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
1626
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1627
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1628
|
+
};
|
|
1629
|
+
imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
1630
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1631
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1632
|
+
};
|
|
1633
|
+
imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
1634
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1635
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1636
|
+
};
|
|
1637
|
+
imports.wbg.__wbg_submit_a1850a1cb6baf64a = function(arg0, arg1) {
|
|
1638
|
+
getObject(arg0).submit(getObject(arg1));
|
|
1639
|
+
};
|
|
1640
|
+
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
1641
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
1642
|
+
return addHeapObject(ret);
|
|
1643
|
+
};
|
|
1644
|
+
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
1645
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
1646
|
+
return addHeapObject(ret);
|
|
1647
|
+
};
|
|
1648
|
+
imports.wbg.__wbg_top_7d5b82a2c5d7f13f = function(arg0) {
|
|
1649
|
+
const ret = getObject(arg0).top;
|
|
1650
|
+
return ret;
|
|
1651
|
+
};
|
|
1652
|
+
imports.wbg.__wbg_value_ee261c29fa562a8d = function(arg0) {
|
|
1653
|
+
const ret = getObject(arg0).value;
|
|
1654
|
+
return ret;
|
|
1655
|
+
};
|
|
1656
|
+
imports.wbg.__wbg_writeBuffer_b203cf79b98d6dd8 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1657
|
+
getObject(arg0).writeBuffer(getObject(arg1), arg2, getObject(arg3), arg4, arg5);
|
|
1658
|
+
}, arguments) };
|
|
1659
|
+
imports.wbg.__wbg_writeTexture_0466bf7d7d35e04e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1660
|
+
getObject(arg0).writeTexture(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
1661
|
+
}, arguments) };
|
|
1662
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1663
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1664
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1665
|
+
return addHeapObject(ret);
|
|
1666
|
+
};
|
|
1667
|
+
imports.wbg.__wbindgen_cast_5672704bc77a612c = function(arg0, arg1) {
|
|
1668
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 44, function: Function { arguments: [Externref], shim_idx: 45, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1669
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_841, __wasm_bindgen_func_elem_842);
|
|
1670
|
+
return addHeapObject(ret);
|
|
1671
|
+
};
|
|
1672
|
+
imports.wbg.__wbindgen_cast_a6131ecc6b03e94d = function(arg0, arg1) {
|
|
1673
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 44, function: Function { arguments: [NamedExternref("Event")], shim_idx: 45, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1674
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_841, __wasm_bindgen_func_elem_842);
|
|
1675
|
+
return addHeapObject(ret);
|
|
1676
|
+
};
|
|
1677
|
+
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
1678
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1679
|
+
const ret = arg0;
|
|
1680
|
+
return addHeapObject(ret);
|
|
1681
|
+
};
|
|
1682
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
1683
|
+
const ret = getObject(arg0);
|
|
1684
|
+
return addHeapObject(ret);
|
|
1685
|
+
};
|
|
1686
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
1687
|
+
takeObject(arg0);
|
|
1688
|
+
};
|
|
1689
|
+
|
|
1690
|
+
return imports;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
function __wbg_finalize_init(instance, module) {
|
|
1694
|
+
wasm = instance.exports;
|
|
1695
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
1696
|
+
cachedDataViewMemory0 = null;
|
|
1697
|
+
cachedUint32ArrayMemory0 = null;
|
|
1698
|
+
cachedUint8ArrayMemory0 = null;
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
|
|
1702
|
+
return wasm;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
function initSync(module) {
|
|
1706
|
+
if (wasm !== undefined) return wasm;
|
|
1707
|
+
|
|
1708
|
+
|
|
1709
|
+
if (typeof module !== 'undefined') {
|
|
1710
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1711
|
+
({module} = module)
|
|
1712
|
+
} else {
|
|
1713
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
const imports = __wbg_get_imports();
|
|
1718
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1719
|
+
module = new WebAssembly.Module(module);
|
|
1720
|
+
}
|
|
1721
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1722
|
+
return __wbg_finalize_init(instance, module);
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
async function __wbg_init(module_or_path) {
|
|
1726
|
+
if (wasm !== undefined) return wasm;
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
if (typeof module_or_path !== 'undefined') {
|
|
1730
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1731
|
+
({module_or_path} = module_or_path)
|
|
1732
|
+
} else {
|
|
1733
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
if (typeof module_or_path === 'undefined') {
|
|
1738
|
+
module_or_path = new URL('vulfram_core_bg.wasm', import.meta.url);
|
|
1739
|
+
}
|
|
1740
|
+
const imports = __wbg_get_imports();
|
|
1741
|
+
|
|
1742
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1743
|
+
module_or_path = fetch(module_or_path);
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1747
|
+
|
|
1748
|
+
return __wbg_finalize_init(instance, module);
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
export { initSync };
|
|
1752
|
+
export default __wbg_init;
|