@octoseq/visualiser 0.1.0-main.4f31910 → 0.1.0-main.994cb4e
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/package.json +1 -1
- package/pkg/package.json +15 -0
- package/pkg/visualiser.d.ts +257 -0
- package/pkg/visualiser.js +1673 -0
- package/pkg/visualiser_bg.wasm +0 -0
- package/pkg/visualiser_bg.wasm.d.ts +53 -0
|
@@ -0,0 +1,1673 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
|
|
3
|
+
function addToExternrefTable0(obj) {
|
|
4
|
+
const idx = wasm.__externref_table_alloc();
|
|
5
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
6
|
+
return idx;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
10
|
+
? { register: () => {}, unregister: () => {} }
|
|
11
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
12
|
+
|
|
13
|
+
function debugString(val) {
|
|
14
|
+
// primitive types
|
|
15
|
+
const type = typeof val;
|
|
16
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
17
|
+
return `${val}`;
|
|
18
|
+
}
|
|
19
|
+
if (type == 'string') {
|
|
20
|
+
return `"${val}"`;
|
|
21
|
+
}
|
|
22
|
+
if (type == 'symbol') {
|
|
23
|
+
const description = val.description;
|
|
24
|
+
if (description == null) {
|
|
25
|
+
return 'Symbol';
|
|
26
|
+
} else {
|
|
27
|
+
return `Symbol(${description})`;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
if (type == 'function') {
|
|
31
|
+
const name = val.name;
|
|
32
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
33
|
+
return `Function(${name})`;
|
|
34
|
+
} else {
|
|
35
|
+
return 'Function';
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
// objects
|
|
39
|
+
if (Array.isArray(val)) {
|
|
40
|
+
const length = val.length;
|
|
41
|
+
let debug = '[';
|
|
42
|
+
if (length > 0) {
|
|
43
|
+
debug += debugString(val[0]);
|
|
44
|
+
}
|
|
45
|
+
for(let i = 1; i < length; i++) {
|
|
46
|
+
debug += ', ' + debugString(val[i]);
|
|
47
|
+
}
|
|
48
|
+
debug += ']';
|
|
49
|
+
return debug;
|
|
50
|
+
}
|
|
51
|
+
// Test for built-in
|
|
52
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
53
|
+
let className;
|
|
54
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
55
|
+
className = builtInMatches[1];
|
|
56
|
+
} else {
|
|
57
|
+
// Failed to match the standard '[object ClassName]'
|
|
58
|
+
return toString.call(val);
|
|
59
|
+
}
|
|
60
|
+
if (className == 'Object') {
|
|
61
|
+
// we're a user defined class or Object
|
|
62
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
63
|
+
// easier than looping through ownProperties of `val`.
|
|
64
|
+
try {
|
|
65
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
66
|
+
} catch (_) {
|
|
67
|
+
return 'Object';
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
// errors
|
|
71
|
+
if (val instanceof Error) {
|
|
72
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
73
|
+
}
|
|
74
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
75
|
+
return className;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function getArrayF32FromWasm0(ptr, len) {
|
|
79
|
+
ptr = ptr >>> 0;
|
|
80
|
+
return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
84
|
+
ptr = ptr >>> 0;
|
|
85
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
89
|
+
ptr = ptr >>> 0;
|
|
90
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
let cachedDataViewMemory0 = null;
|
|
94
|
+
function getDataViewMemory0() {
|
|
95
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
96
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
97
|
+
}
|
|
98
|
+
return cachedDataViewMemory0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
let cachedFloat32ArrayMemory0 = null;
|
|
102
|
+
function getFloat32ArrayMemory0() {
|
|
103
|
+
if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
|
|
104
|
+
cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
|
|
105
|
+
}
|
|
106
|
+
return cachedFloat32ArrayMemory0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function getStringFromWasm0(ptr, len) {
|
|
110
|
+
ptr = ptr >>> 0;
|
|
111
|
+
return decodeText(ptr, len);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
let cachedUint32ArrayMemory0 = null;
|
|
115
|
+
function getUint32ArrayMemory0() {
|
|
116
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
117
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
118
|
+
}
|
|
119
|
+
return cachedUint32ArrayMemory0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
let cachedUint8ArrayMemory0 = null;
|
|
123
|
+
function getUint8ArrayMemory0() {
|
|
124
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
125
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
126
|
+
}
|
|
127
|
+
return cachedUint8ArrayMemory0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function handleError(f, args) {
|
|
131
|
+
try {
|
|
132
|
+
return f.apply(this, args);
|
|
133
|
+
} catch (e) {
|
|
134
|
+
const idx = addToExternrefTable0(e);
|
|
135
|
+
wasm.__wbindgen_exn_store(idx);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function isLikeNone(x) {
|
|
140
|
+
return x === undefined || x === null;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
144
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
145
|
+
const real = (...args) => {
|
|
146
|
+
|
|
147
|
+
// First up with a closure we increment the internal reference
|
|
148
|
+
// count. This ensures that the Rust closure environment won't
|
|
149
|
+
// be deallocated while we're invoking it.
|
|
150
|
+
state.cnt++;
|
|
151
|
+
const a = state.a;
|
|
152
|
+
state.a = 0;
|
|
153
|
+
try {
|
|
154
|
+
return f(a, state.b, ...args);
|
|
155
|
+
} finally {
|
|
156
|
+
state.a = a;
|
|
157
|
+
real._wbg_cb_unref();
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
real._wbg_cb_unref = () => {
|
|
161
|
+
if (--state.cnt === 0) {
|
|
162
|
+
state.dtor(state.a, state.b);
|
|
163
|
+
state.a = 0;
|
|
164
|
+
CLOSURE_DTORS.unregister(state);
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
168
|
+
return real;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function passArrayF32ToWasm0(arg, malloc) {
|
|
172
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
173
|
+
getFloat32ArrayMemory0().set(arg, ptr / 4);
|
|
174
|
+
WASM_VECTOR_LEN = arg.length;
|
|
175
|
+
return ptr;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
179
|
+
if (realloc === undefined) {
|
|
180
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
181
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
182
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
183
|
+
WASM_VECTOR_LEN = buf.length;
|
|
184
|
+
return ptr;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
let len = arg.length;
|
|
188
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
189
|
+
|
|
190
|
+
const mem = getUint8ArrayMemory0();
|
|
191
|
+
|
|
192
|
+
let offset = 0;
|
|
193
|
+
|
|
194
|
+
for (; offset < len; offset++) {
|
|
195
|
+
const code = arg.charCodeAt(offset);
|
|
196
|
+
if (code > 0x7F) break;
|
|
197
|
+
mem[ptr + offset] = code;
|
|
198
|
+
}
|
|
199
|
+
if (offset !== len) {
|
|
200
|
+
if (offset !== 0) {
|
|
201
|
+
arg = arg.slice(offset);
|
|
202
|
+
}
|
|
203
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
204
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
205
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
206
|
+
|
|
207
|
+
offset += ret.written;
|
|
208
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
WASM_VECTOR_LEN = offset;
|
|
212
|
+
return ptr;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
216
|
+
cachedTextDecoder.decode();
|
|
217
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
218
|
+
let numBytesDecoded = 0;
|
|
219
|
+
function decodeText(ptr, len) {
|
|
220
|
+
numBytesDecoded += len;
|
|
221
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
222
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
223
|
+
cachedTextDecoder.decode();
|
|
224
|
+
numBytesDecoded = len;
|
|
225
|
+
}
|
|
226
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
const cachedTextEncoder = new TextEncoder();
|
|
230
|
+
|
|
231
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
232
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
233
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
234
|
+
view.set(buf);
|
|
235
|
+
return {
|
|
236
|
+
read: arg.length,
|
|
237
|
+
written: buf.length
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
let WASM_VECTOR_LEN = 0;
|
|
243
|
+
|
|
244
|
+
function wasm_bindgen__convert__closures_____invoke__h9d1c5a23ecfcd5c8(arg0, arg1, arg2) {
|
|
245
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h9d1c5a23ecfcd5c8(arg0, arg1, arg2);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
function wasm_bindgen__convert__closures_____invoke__h53437a38721e89f7(arg0, arg1, arg2) {
|
|
249
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h53437a38721e89f7(arg0, arg1, arg2);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
function wasm_bindgen__convert__closures_____invoke__h320f3d825d3712ba(arg0, arg1, arg2, arg3) {
|
|
253
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h320f3d825d3712ba(arg0, arg1, arg2, arg3);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
const __wbindgen_enum_GpuCompilationMessageType = ["error", "warning", "info"];
|
|
257
|
+
|
|
258
|
+
const __wbindgen_enum_GpuDeviceLostReason = ["unknown", "destroyed"];
|
|
259
|
+
|
|
260
|
+
const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
|
|
261
|
+
|
|
262
|
+
const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
|
|
263
|
+
|
|
264
|
+
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"];
|
|
265
|
+
|
|
266
|
+
const WasmVisualiserFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
267
|
+
? { register: () => {}, unregister: () => {} }
|
|
268
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmvisualiser_free(ptr >>> 0, 1));
|
|
269
|
+
|
|
270
|
+
export class WasmVisualiser {
|
|
271
|
+
static __wrap(ptr) {
|
|
272
|
+
ptr = ptr >>> 0;
|
|
273
|
+
const obj = Object.create(WasmVisualiser.prototype);
|
|
274
|
+
obj.__wbg_ptr = ptr;
|
|
275
|
+
WasmVisualiserFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
276
|
+
return obj;
|
|
277
|
+
}
|
|
278
|
+
__destroy_into_raw() {
|
|
279
|
+
const ptr = this.__wbg_ptr;
|
|
280
|
+
this.__wbg_ptr = 0;
|
|
281
|
+
WasmVisualiserFinalization.unregister(this);
|
|
282
|
+
return ptr;
|
|
283
|
+
}
|
|
284
|
+
free() {
|
|
285
|
+
const ptr = this.__destroy_into_raw();
|
|
286
|
+
wasm.__wbg_wasmvisualiser_free(ptr, 0);
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Check if a script is currently loaded.
|
|
290
|
+
* @returns {boolean}
|
|
291
|
+
*/
|
|
292
|
+
has_script() {
|
|
293
|
+
const ret = wasm.wasmvisualiser_has_script(this.__wbg_ptr);
|
|
294
|
+
return ret !== 0;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Load a Rhai script for controlling the visualiser.
|
|
298
|
+
* Returns true if the script was loaded successfully.
|
|
299
|
+
* @param {string} script
|
|
300
|
+
* @returns {boolean}
|
|
301
|
+
*/
|
|
302
|
+
load_script(script) {
|
|
303
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
304
|
+
const len0 = WASM_VECTOR_LEN;
|
|
305
|
+
const ret = wasm.wasmvisualiser_load_script(this.__wbg_ptr, ptr0, len0);
|
|
306
|
+
return ret !== 0;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Push a named signal for use in scripts.
|
|
310
|
+
* The signal will be available as `inputs.<name>` in Rhai scripts.
|
|
311
|
+
* @param {string} name
|
|
312
|
+
* @param {Float32Array} samples
|
|
313
|
+
* @param {number} sample_rate
|
|
314
|
+
*/
|
|
315
|
+
push_signal(name, samples, sample_rate) {
|
|
316
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
317
|
+
const len0 = WASM_VECTOR_LEN;
|
|
318
|
+
const ptr1 = passArrayF32ToWasm0(samples, wasm.__wbindgen_malloc);
|
|
319
|
+
const len1 = WASM_VECTOR_LEN;
|
|
320
|
+
wasm.wasmvisualiser_push_signal(this.__wbg_ptr, ptr0, len0, ptr1, len1, sample_rate);
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Run script in analysis mode to collect debug.emit() signals.
|
|
324
|
+
*
|
|
325
|
+
* This runs the script headlessly across the full track duration,
|
|
326
|
+
* collecting all debug.emit() calls without rendering.
|
|
327
|
+
*
|
|
328
|
+
* Returns a JSON-serialized AnalysisResultJson.
|
|
329
|
+
* @param {string} script
|
|
330
|
+
* @param {number} duration
|
|
331
|
+
* @param {number} time_step
|
|
332
|
+
* @returns {string}
|
|
333
|
+
*/
|
|
334
|
+
run_analysis(script, duration, time_step) {
|
|
335
|
+
let deferred2_0;
|
|
336
|
+
let deferred2_1;
|
|
337
|
+
try {
|
|
338
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
339
|
+
const len0 = WASM_VECTOR_LEN;
|
|
340
|
+
const ret = wasm.wasmvisualiser_run_analysis(this.__wbg_ptr, ptr0, len0, duration, time_step);
|
|
341
|
+
deferred2_0 = ret[0];
|
|
342
|
+
deferred2_1 = ret[1];
|
|
343
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
344
|
+
} finally {
|
|
345
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Clear all named signals.
|
|
350
|
+
*/
|
|
351
|
+
clear_signals() {
|
|
352
|
+
wasm.wasmvisualiser_clear_signals(this.__wbg_ptr);
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* @param {number} k
|
|
356
|
+
*/
|
|
357
|
+
set_sigmoid_k(k) {
|
|
358
|
+
wasm.wasmvisualiser_set_sigmoid_k(this.__wbg_ptr, k);
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Isolate a single entity for rendering (useful for debugging).
|
|
362
|
+
* Only this entity will be rendered.
|
|
363
|
+
* @param {bigint} entity_id
|
|
364
|
+
*/
|
|
365
|
+
isolate_entity(entity_id) {
|
|
366
|
+
wasm.wasmvisualiser_isolate_entity(this.__wbg_ptr, entity_id);
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* @param {Float32Array} samples
|
|
370
|
+
* @param {number} sample_rate
|
|
371
|
+
*/
|
|
372
|
+
push_zoom_data(samples, sample_rate) {
|
|
373
|
+
const ptr0 = passArrayF32ToWasm0(samples, wasm.__wbindgen_malloc);
|
|
374
|
+
const len0 = WASM_VECTOR_LEN;
|
|
375
|
+
wasm.wasmvisualiser_push_zoom_data(this.__wbg_ptr, ptr0, len0, sample_rate);
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Clear entity isolation, resume normal rendering.
|
|
379
|
+
*/
|
|
380
|
+
clear_isolation() {
|
|
381
|
+
wasm.wasmvisualiser_clear_isolation(this.__wbg_ptr);
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Get current state values for debugging.
|
|
385
|
+
* Returns [time, scene_entity_count, mesh_count, line_count]
|
|
386
|
+
* @returns {Float32Array}
|
|
387
|
+
*/
|
|
388
|
+
get_current_vals() {
|
|
389
|
+
const ret = wasm.wasmvisualiser_get_current_vals(this.__wbg_ptr);
|
|
390
|
+
var v1 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
|
|
391
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
392
|
+
return v1;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Get the last script error message, if any.
|
|
396
|
+
* @returns {string | undefined}
|
|
397
|
+
*/
|
|
398
|
+
get_script_error() {
|
|
399
|
+
const ret = wasm.wasmvisualiser_get_script_error(this.__wbg_ptr);
|
|
400
|
+
let v1;
|
|
401
|
+
if (ret[0] !== 0) {
|
|
402
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
403
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
404
|
+
}
|
|
405
|
+
return v1;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Get the list of available signal names.
|
|
409
|
+
* Returns a JSON array of signal names.
|
|
410
|
+
* @returns {string}
|
|
411
|
+
*/
|
|
412
|
+
get_signal_names() {
|
|
413
|
+
let deferred1_0;
|
|
414
|
+
let deferred1_1;
|
|
415
|
+
try {
|
|
416
|
+
const ret = wasm.wasmvisualiser_get_signal_names(this.__wbg_ptr);
|
|
417
|
+
deferred1_0 = ret[0];
|
|
418
|
+
deferred1_1 = ret[1];
|
|
419
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
420
|
+
} finally {
|
|
421
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Push pre-extracted events for a band.
|
|
426
|
+
*
|
|
427
|
+
* Events are extracted by the TypeScript layer using the existing peak picker,
|
|
428
|
+
* then pushed here for script access via `inputs.bands[id].events`.
|
|
429
|
+
*
|
|
430
|
+
* The JSON format should be an array of event objects with:
|
|
431
|
+
* - time: f32
|
|
432
|
+
* - weight: f32
|
|
433
|
+
* - beat_position: Option<f32>
|
|
434
|
+
* - beat_phase: Option<f32>
|
|
435
|
+
* - cluster_id: Option<u32>
|
|
436
|
+
*
|
|
437
|
+
* Returns true if successful, false if parsing failed.
|
|
438
|
+
* @param {string} band_id
|
|
439
|
+
* @param {string} events_json
|
|
440
|
+
* @returns {boolean}
|
|
441
|
+
*/
|
|
442
|
+
push_band_events(band_id, events_json) {
|
|
443
|
+
const ptr0 = passStringToWasm0(band_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
444
|
+
const len0 = WASM_VECTOR_LEN;
|
|
445
|
+
const ptr1 = passStringToWasm0(events_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
446
|
+
const len1 = WASM_VECTOR_LEN;
|
|
447
|
+
const ret = wasm.wasmvisualiser_push_band_events(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
448
|
+
return ret !== 0;
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* Push a band-scoped signal for use in scripts.
|
|
452
|
+
* The signal will be available as `inputs.bands[band_id].{feature}` in Rhai scripts.
|
|
453
|
+
* Stores under both band_id and band_label for dual-access support.
|
|
454
|
+
*
|
|
455
|
+
* - `band_id`: The unique ID of the frequency band.
|
|
456
|
+
* - `band_label`: The user-visible label of the band.
|
|
457
|
+
* - `feature`: Signal type ("energy", "onset", "flux").
|
|
458
|
+
* - `samples`: Signal data.
|
|
459
|
+
* - `sample_rate`: Sample rate of the signal.
|
|
460
|
+
* @param {string} band_id
|
|
461
|
+
* @param {string} band_label
|
|
462
|
+
* @param {string} feature
|
|
463
|
+
* @param {Float32Array} samples
|
|
464
|
+
* @param {number} sample_rate
|
|
465
|
+
*/
|
|
466
|
+
push_band_signal(band_id, band_label, feature, samples, sample_rate) {
|
|
467
|
+
const ptr0 = passStringToWasm0(band_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
468
|
+
const len0 = WASM_VECTOR_LEN;
|
|
469
|
+
const ptr1 = passStringToWasm0(band_label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
470
|
+
const len1 = WASM_VECTOR_LEN;
|
|
471
|
+
const ptr2 = passStringToWasm0(feature, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
472
|
+
const len2 = WASM_VECTOR_LEN;
|
|
473
|
+
const ptr3 = passArrayF32ToWasm0(samples, wasm.__wbindgen_malloc);
|
|
474
|
+
const len3 = WASM_VECTOR_LEN;
|
|
475
|
+
wasm.wasmvisualiser_push_band_signal(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, sample_rate);
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Set the musical time structure for beat-aware signal processing.
|
|
479
|
+
* The JSON format matches the TypeScript MusicalTimeStructure type.
|
|
480
|
+
* Returns true if successful, false if parsing failed.
|
|
481
|
+
* @param {string} json
|
|
482
|
+
* @returns {boolean}
|
|
483
|
+
*/
|
|
484
|
+
set_musical_time(json) {
|
|
485
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
486
|
+
const len0 = WASM_VECTOR_LEN;
|
|
487
|
+
const ret = wasm.wasmvisualiser_set_musical_time(this.__wbg_ptr, ptr0, len0);
|
|
488
|
+
return ret !== 0;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Clear all band event streams.
|
|
492
|
+
*/
|
|
493
|
+
clear_band_events() {
|
|
494
|
+
wasm.wasmvisualiser_clear_band_events(this.__wbg_ptr);
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Set debug visualization options.
|
|
498
|
+
* @param {boolean} wireframe
|
|
499
|
+
* @param {boolean} bounding_boxes
|
|
500
|
+
*/
|
|
501
|
+
set_debug_options(wireframe, bounding_boxes) {
|
|
502
|
+
wasm.wasmvisualiser_set_debug_options(this.__wbg_ptr, wireframe, bounding_boxes);
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Clear all band signals.
|
|
506
|
+
*/
|
|
507
|
+
clear_band_signals() {
|
|
508
|
+
wasm.wasmvisualiser_clear_band_signals(this.__wbg_ptr);
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Clear the musical time structure.
|
|
512
|
+
* Beat-aware operations will fall back to 120 BPM default.
|
|
513
|
+
*/
|
|
514
|
+
clear_musical_time() {
|
|
515
|
+
wasm.wasmvisualiser_clear_musical_time(this.__wbg_ptr);
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Get frequency bounds for all active bands at a given time.
|
|
519
|
+
* Returns a JSON array of { bandId, label, lowHz, highHz, enabled } objects.
|
|
520
|
+
* @param {number} time
|
|
521
|
+
* @returns {string}
|
|
522
|
+
*/
|
|
523
|
+
get_band_bounds_at(time) {
|
|
524
|
+
let deferred1_0;
|
|
525
|
+
let deferred1_1;
|
|
526
|
+
try {
|
|
527
|
+
const ret = wasm.wasmvisualiser_get_band_bounds_at(this.__wbg_ptr, time);
|
|
528
|
+
deferred1_0 = ret[0];
|
|
529
|
+
deferred1_1 = ret[1];
|
|
530
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
531
|
+
} finally {
|
|
532
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* @param {Float32Array} samples
|
|
537
|
+
* @param {number} sample_rate
|
|
538
|
+
*/
|
|
539
|
+
push_rotation_data(samples, sample_rate) {
|
|
540
|
+
const ptr0 = passArrayF32ToWasm0(samples, wasm.__wbindgen_malloc);
|
|
541
|
+
const len0 = WASM_VECTOR_LEN;
|
|
542
|
+
wasm.wasmvisualiser_push_data(this.__wbg_ptr, ptr0, len0, sample_rate);
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Check if frequency bands are currently set.
|
|
546
|
+
* @returns {boolean}
|
|
547
|
+
*/
|
|
548
|
+
has_frequency_bands() {
|
|
549
|
+
const ret = wasm.wasmvisualiser_has_frequency_bands(this.__wbg_ptr);
|
|
550
|
+
return ret !== 0;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Set the frequency band structure for band-aware processing.
|
|
554
|
+
* The JSON format matches the TypeScript FrequencyBandStructure type.
|
|
555
|
+
* Returns true if successful, false if parsing failed.
|
|
556
|
+
* @param {string} json
|
|
557
|
+
* @returns {boolean}
|
|
558
|
+
*/
|
|
559
|
+
set_frequency_bands(json) {
|
|
560
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
561
|
+
const len0 = WASM_VECTOR_LEN;
|
|
562
|
+
const ret = wasm.wasmvisualiser_set_frequency_bands(this.__wbg_ptr, ptr0, len0);
|
|
563
|
+
return ret !== 0;
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Get the number of events for a specific band.
|
|
567
|
+
* Returns 0 if no events are stored for this band.
|
|
568
|
+
* @param {string} band_id
|
|
569
|
+
* @returns {number}
|
|
570
|
+
*/
|
|
571
|
+
get_band_event_count(band_id) {
|
|
572
|
+
const ptr0 = passStringToWasm0(band_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
573
|
+
const len0 = WASM_VECTOR_LEN;
|
|
574
|
+
const ret = wasm.wasmvisualiser_get_band_event_count(this.__wbg_ptr, ptr0, len0);
|
|
575
|
+
return ret >>> 0;
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* Get list of band keys (IDs and labels) that have signals.
|
|
579
|
+
* Returns a JSON array of strings.
|
|
580
|
+
* @returns {string}
|
|
581
|
+
*/
|
|
582
|
+
get_band_signal_keys() {
|
|
583
|
+
let deferred1_0;
|
|
584
|
+
let deferred1_1;
|
|
585
|
+
try {
|
|
586
|
+
const ret = wasm.wasmvisualiser_get_band_signal_keys(this.__wbg_ptr);
|
|
587
|
+
deferred1_0 = ret[0];
|
|
588
|
+
deferred1_1 = ret[1];
|
|
589
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
590
|
+
} finally {
|
|
591
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Clear the frequency band structure.
|
|
596
|
+
*/
|
|
597
|
+
clear_frequency_bands() {
|
|
598
|
+
wasm.wasmvisualiser_clear_frequency_bands(this.__wbg_ptr);
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Get the number of frequency bands.
|
|
602
|
+
* @returns {number}
|
|
603
|
+
*/
|
|
604
|
+
get_frequency_band_count() {
|
|
605
|
+
const ret = wasm.wasmvisualiser_get_frequency_band_count(this.__wbg_ptr);
|
|
606
|
+
return ret >>> 0;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Run script in analysis mode with event extraction support.
|
|
610
|
+
*
|
|
611
|
+
* This runs the script headlessly across the full track duration,
|
|
612
|
+
* collecting all debug.emit() calls AND extracting events from
|
|
613
|
+
* any signal.pick.events() calls.
|
|
614
|
+
*
|
|
615
|
+
* Returns a JSON-serialized ExtendedAnalysisResultJson.
|
|
616
|
+
* @param {string} script
|
|
617
|
+
* @param {number} duration
|
|
618
|
+
* @param {number} time_step
|
|
619
|
+
* @returns {string}
|
|
620
|
+
*/
|
|
621
|
+
run_analysis_with_events(script, duration, time_step) {
|
|
622
|
+
let deferred2_0;
|
|
623
|
+
let deferred2_1;
|
|
624
|
+
try {
|
|
625
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
626
|
+
const len0 = WASM_VECTOR_LEN;
|
|
627
|
+
const ret = wasm.wasmvisualiser_run_analysis_with_events(this.__wbg_ptr, ptr0, len0, duration, time_step);
|
|
628
|
+
deferred2_0 = ret[0];
|
|
629
|
+
deferred2_1 = ret[1];
|
|
630
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
631
|
+
} finally {
|
|
632
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Drain and return any pending structured script diagnostics as JSON.
|
|
637
|
+
*
|
|
638
|
+
* Intended for UI consumption. Calling this clears the pending diagnostics
|
|
639
|
+
* queue so repeated polling does not duplicate messages.
|
|
640
|
+
* @returns {string}
|
|
641
|
+
*/
|
|
642
|
+
take_script_diagnostics_json() {
|
|
643
|
+
let deferred1_0;
|
|
644
|
+
let deferred1_1;
|
|
645
|
+
try {
|
|
646
|
+
const ret = wasm.wasmvisualiser_take_script_diagnostics_json(this.__wbg_ptr);
|
|
647
|
+
deferred1_0 = ret[0];
|
|
648
|
+
deferred1_1 = ret[1];
|
|
649
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
650
|
+
} finally {
|
|
651
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
constructor() {
|
|
655
|
+
const ret = wasm.wasmvisualiser_new();
|
|
656
|
+
this.__wbg_ptr = ret >>> 0;
|
|
657
|
+
WasmVisualiserFinalization.register(this, this.__wbg_ptr, this);
|
|
658
|
+
return this;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* @param {number} dt
|
|
662
|
+
*/
|
|
663
|
+
render(dt) {
|
|
664
|
+
wasm.wasmvisualiser_render(this.__wbg_ptr, dt);
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* @param {number} width
|
|
668
|
+
* @param {number} height
|
|
669
|
+
*/
|
|
670
|
+
resize(width, height) {
|
|
671
|
+
wasm.wasmvisualiser_resize(this.__wbg_ptr, width, height);
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* @param {number} time
|
|
675
|
+
*/
|
|
676
|
+
set_time(time) {
|
|
677
|
+
wasm.wasmvisualiser_set_time(this.__wbg_ptr, time);
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* @param {Float32Array} samples
|
|
681
|
+
* @param {number} sample_rate
|
|
682
|
+
*/
|
|
683
|
+
push_data(samples, sample_rate) {
|
|
684
|
+
const ptr0 = passArrayF32ToWasm0(samples, wasm.__wbindgen_malloc);
|
|
685
|
+
const len0 = WASM_VECTOR_LEN;
|
|
686
|
+
wasm.wasmvisualiser_push_data(this.__wbg_ptr, ptr0, len0, sample_rate);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
if (Symbol.dispose) WasmVisualiser.prototype[Symbol.dispose] = WasmVisualiser.prototype.free;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* @param {HTMLCanvasElement} canvas
|
|
693
|
+
* @returns {Promise<WasmVisualiser>}
|
|
694
|
+
*/
|
|
695
|
+
export function create_visualiser(canvas) {
|
|
696
|
+
const ret = wasm.create_visualiser(canvas);
|
|
697
|
+
return ret;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Get the host-defined Script API metadata as a JSON string.
|
|
702
|
+
*
|
|
703
|
+
* This is a stable, versioned description of the scripting API surface and is
|
|
704
|
+
* intended to drive editor UX (autocomplete/hover/docs) and future language
|
|
705
|
+
* bindings.
|
|
706
|
+
* @returns {string}
|
|
707
|
+
*/
|
|
708
|
+
export function get_script_api_metadata_json() {
|
|
709
|
+
let deferred1_0;
|
|
710
|
+
let deferred1_1;
|
|
711
|
+
try {
|
|
712
|
+
const ret = wasm.get_script_api_metadata_json();
|
|
713
|
+
deferred1_0 = ret[0];
|
|
714
|
+
deferred1_1 = ret[1];
|
|
715
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
716
|
+
} finally {
|
|
717
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
export function init_panic_hook() {
|
|
722
|
+
wasm.init_panic_hook();
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
726
|
+
|
|
727
|
+
async function __wbg_load(module, imports) {
|
|
728
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
729
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
730
|
+
try {
|
|
731
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
732
|
+
} catch (e) {
|
|
733
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
734
|
+
|
|
735
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
736
|
+
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);
|
|
737
|
+
|
|
738
|
+
} else {
|
|
739
|
+
throw e;
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
const bytes = await module.arrayBuffer();
|
|
745
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
746
|
+
} else {
|
|
747
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
748
|
+
|
|
749
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
750
|
+
return { instance, module };
|
|
751
|
+
} else {
|
|
752
|
+
return instance;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
function __wbg_get_imports() {
|
|
758
|
+
const imports = {};
|
|
759
|
+
imports.wbg = {};
|
|
760
|
+
imports.wbg.__wbg_Window_cf5b693340a7c469 = function(arg0) {
|
|
761
|
+
const ret = arg0.Window;
|
|
762
|
+
return ret;
|
|
763
|
+
};
|
|
764
|
+
imports.wbg.__wbg_WorkerGlobalScope_354364d1b0bd06e5 = function(arg0) {
|
|
765
|
+
const ret = arg0.WorkerGlobalScope;
|
|
766
|
+
return ret;
|
|
767
|
+
};
|
|
768
|
+
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
769
|
+
const ret = debugString(arg1);
|
|
770
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
771
|
+
const len1 = WASM_VECTOR_LEN;
|
|
772
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
773
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
774
|
+
};
|
|
775
|
+
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
776
|
+
const ret = typeof(arg0) === 'function';
|
|
777
|
+
return ret;
|
|
778
|
+
};
|
|
779
|
+
imports.wbg.__wbg___wbindgen_is_null_dfda7d66506c95b5 = function(arg0) {
|
|
780
|
+
const ret = arg0 === null;
|
|
781
|
+
return ret;
|
|
782
|
+
};
|
|
783
|
+
imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
784
|
+
const val = arg0;
|
|
785
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
786
|
+
return ret;
|
|
787
|
+
};
|
|
788
|
+
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
789
|
+
const ret = arg0 === undefined;
|
|
790
|
+
return ret;
|
|
791
|
+
};
|
|
792
|
+
imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
793
|
+
const obj = arg1;
|
|
794
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
795
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
796
|
+
var len1 = WASM_VECTOR_LEN;
|
|
797
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
798
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
799
|
+
};
|
|
800
|
+
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
801
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
802
|
+
};
|
|
803
|
+
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
804
|
+
arg0._wbg_cb_unref();
|
|
805
|
+
};
|
|
806
|
+
imports.wbg.__wbg_beginComputePass_90d5303e604970cb = function(arg0, arg1) {
|
|
807
|
+
const ret = arg0.beginComputePass(arg1);
|
|
808
|
+
return ret;
|
|
809
|
+
};
|
|
810
|
+
imports.wbg.__wbg_beginRenderPass_9739520c601001c3 = function(arg0, arg1) {
|
|
811
|
+
const ret = arg0.beginRenderPass(arg1);
|
|
812
|
+
return ret;
|
|
813
|
+
};
|
|
814
|
+
imports.wbg.__wbg_buffer_6cb2fecb1f253d71 = function(arg0) {
|
|
815
|
+
const ret = arg0.buffer;
|
|
816
|
+
return ret;
|
|
817
|
+
};
|
|
818
|
+
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
819
|
+
const ret = arg0.call(arg1, arg2);
|
|
820
|
+
return ret;
|
|
821
|
+
}, arguments) };
|
|
822
|
+
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
823
|
+
const ret = arg0.call(arg1);
|
|
824
|
+
return ret;
|
|
825
|
+
}, arguments) };
|
|
826
|
+
imports.wbg.__wbg_clearBuffer_6164fc25d22b25cc = function(arg0, arg1, arg2, arg3) {
|
|
827
|
+
arg0.clearBuffer(arg1, arg2, arg3);
|
|
828
|
+
};
|
|
829
|
+
imports.wbg.__wbg_clearBuffer_cfcaaf1fb2baa885 = function(arg0, arg1, arg2) {
|
|
830
|
+
arg0.clearBuffer(arg1, arg2);
|
|
831
|
+
};
|
|
832
|
+
imports.wbg.__wbg_configure_2414aed971d368cd = function(arg0, arg1) {
|
|
833
|
+
arg0.configure(arg1);
|
|
834
|
+
};
|
|
835
|
+
imports.wbg.__wbg_copyBufferToBuffer_1ba67191114656a1 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
836
|
+
arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4, arg5);
|
|
837
|
+
};
|
|
838
|
+
imports.wbg.__wbg_copyBufferToTexture_878d31d479e48f28 = function(arg0, arg1, arg2, arg3) {
|
|
839
|
+
arg0.copyBufferToTexture(arg1, arg2, arg3);
|
|
840
|
+
};
|
|
841
|
+
imports.wbg.__wbg_copyExternalImageToTexture_7878d196c0b60d39 = function(arg0, arg1, arg2, arg3) {
|
|
842
|
+
arg0.copyExternalImageToTexture(arg1, arg2, arg3);
|
|
843
|
+
};
|
|
844
|
+
imports.wbg.__wbg_copyTextureToBuffer_6a8fe0e90f0a663d = function(arg0, arg1, arg2, arg3) {
|
|
845
|
+
arg0.copyTextureToBuffer(arg1, arg2, arg3);
|
|
846
|
+
};
|
|
847
|
+
imports.wbg.__wbg_copyTextureToTexture_0a06a393d6726b4a = function(arg0, arg1, arg2, arg3) {
|
|
848
|
+
arg0.copyTextureToTexture(arg1, arg2, arg3);
|
|
849
|
+
};
|
|
850
|
+
imports.wbg.__wbg_createBindGroupLayout_1d93b6d41c87ba9d = function(arg0, arg1) {
|
|
851
|
+
const ret = arg0.createBindGroupLayout(arg1);
|
|
852
|
+
return ret;
|
|
853
|
+
};
|
|
854
|
+
imports.wbg.__wbg_createBindGroup_61cd07ec9d423432 = function(arg0, arg1) {
|
|
855
|
+
const ret = arg0.createBindGroup(arg1);
|
|
856
|
+
return ret;
|
|
857
|
+
};
|
|
858
|
+
imports.wbg.__wbg_createBuffer_963aa00d5fe859e4 = function(arg0, arg1) {
|
|
859
|
+
const ret = arg0.createBuffer(arg1);
|
|
860
|
+
return ret;
|
|
861
|
+
};
|
|
862
|
+
imports.wbg.__wbg_createCommandEncoder_f0e1613e9a2dc1eb = function(arg0, arg1) {
|
|
863
|
+
const ret = arg0.createCommandEncoder(arg1);
|
|
864
|
+
return ret;
|
|
865
|
+
};
|
|
866
|
+
imports.wbg.__wbg_createComputePipeline_b9616b9fe2f4eb2f = function(arg0, arg1) {
|
|
867
|
+
const ret = arg0.createComputePipeline(arg1);
|
|
868
|
+
return ret;
|
|
869
|
+
};
|
|
870
|
+
imports.wbg.__wbg_createPipelineLayout_56c6cf983f892d2b = function(arg0, arg1) {
|
|
871
|
+
const ret = arg0.createPipelineLayout(arg1);
|
|
872
|
+
return ret;
|
|
873
|
+
};
|
|
874
|
+
imports.wbg.__wbg_createQuerySet_c14be802adf7c207 = function(arg0, arg1) {
|
|
875
|
+
const ret = arg0.createQuerySet(arg1);
|
|
876
|
+
return ret;
|
|
877
|
+
};
|
|
878
|
+
imports.wbg.__wbg_createRenderBundleEncoder_8e4bdffea72f8c1f = function(arg0, arg1) {
|
|
879
|
+
const ret = arg0.createRenderBundleEncoder(arg1);
|
|
880
|
+
return ret;
|
|
881
|
+
};
|
|
882
|
+
imports.wbg.__wbg_createRenderPipeline_079a88a0601fcce1 = function(arg0, arg1) {
|
|
883
|
+
const ret = arg0.createRenderPipeline(arg1);
|
|
884
|
+
return ret;
|
|
885
|
+
};
|
|
886
|
+
imports.wbg.__wbg_createSampler_ef5578990df3baf7 = function(arg0, arg1) {
|
|
887
|
+
const ret = arg0.createSampler(arg1);
|
|
888
|
+
return ret;
|
|
889
|
+
};
|
|
890
|
+
imports.wbg.__wbg_createShaderModule_17f451ea25cae47c = function(arg0, arg1) {
|
|
891
|
+
const ret = arg0.createShaderModule(arg1);
|
|
892
|
+
return ret;
|
|
893
|
+
};
|
|
894
|
+
imports.wbg.__wbg_createTexture_01cc1cd2fea732d9 = function(arg0, arg1) {
|
|
895
|
+
const ret = arg0.createTexture(arg1);
|
|
896
|
+
return ret;
|
|
897
|
+
};
|
|
898
|
+
imports.wbg.__wbg_createView_04701884291e1ccc = function(arg0, arg1) {
|
|
899
|
+
const ret = arg0.createView(arg1);
|
|
900
|
+
return ret;
|
|
901
|
+
};
|
|
902
|
+
imports.wbg.__wbg_debug_9d0c87ddda3dc485 = function(arg0) {
|
|
903
|
+
console.debug(arg0);
|
|
904
|
+
};
|
|
905
|
+
imports.wbg.__wbg_destroy_35f94012e5bb9c17 = function(arg0) {
|
|
906
|
+
arg0.destroy();
|
|
907
|
+
};
|
|
908
|
+
imports.wbg.__wbg_destroy_767d9dde1008e293 = function(arg0) {
|
|
909
|
+
arg0.destroy();
|
|
910
|
+
};
|
|
911
|
+
imports.wbg.__wbg_destroy_c6af4226dda95dbd = function(arg0) {
|
|
912
|
+
arg0.destroy();
|
|
913
|
+
};
|
|
914
|
+
imports.wbg.__wbg_dispatchWorkgroupsIndirect_8b25efab93a7a433 = function(arg0, arg1, arg2) {
|
|
915
|
+
arg0.dispatchWorkgroupsIndirect(arg1, arg2);
|
|
916
|
+
};
|
|
917
|
+
imports.wbg.__wbg_dispatchWorkgroups_c102fa81b955935d = function(arg0, arg1, arg2, arg3) {
|
|
918
|
+
arg0.dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
|
|
919
|
+
};
|
|
920
|
+
imports.wbg.__wbg_document_5b745e82ba551ca5 = function(arg0) {
|
|
921
|
+
const ret = arg0.document;
|
|
922
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
923
|
+
};
|
|
924
|
+
imports.wbg.__wbg_drawIndexedIndirect_34484fc6227c7bc8 = function(arg0, arg1, arg2) {
|
|
925
|
+
arg0.drawIndexedIndirect(arg1, arg2);
|
|
926
|
+
};
|
|
927
|
+
imports.wbg.__wbg_drawIndexedIndirect_5a7c30bb5f1d5b67 = function(arg0, arg1, arg2) {
|
|
928
|
+
arg0.drawIndexedIndirect(arg1, arg2);
|
|
929
|
+
};
|
|
930
|
+
imports.wbg.__wbg_drawIndexed_115af1449b52a948 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
931
|
+
arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
932
|
+
};
|
|
933
|
+
imports.wbg.__wbg_drawIndexed_a587cce4c317791f = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
934
|
+
arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
935
|
+
};
|
|
936
|
+
imports.wbg.__wbg_drawIndirect_036d71498a21f1a3 = function(arg0, arg1, arg2) {
|
|
937
|
+
arg0.drawIndirect(arg1, arg2);
|
|
938
|
+
};
|
|
939
|
+
imports.wbg.__wbg_drawIndirect_a1d7c5e893aa5756 = function(arg0, arg1, arg2) {
|
|
940
|
+
arg0.drawIndirect(arg1, arg2);
|
|
941
|
+
};
|
|
942
|
+
imports.wbg.__wbg_draw_5351b12033166aca = function(arg0, arg1, arg2, arg3, arg4) {
|
|
943
|
+
arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
944
|
+
};
|
|
945
|
+
imports.wbg.__wbg_draw_e2a7c5d66fb2d244 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
946
|
+
arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
947
|
+
};
|
|
948
|
+
imports.wbg.__wbg_end_0ac71677a5c1717a = function(arg0) {
|
|
949
|
+
arg0.end();
|
|
950
|
+
};
|
|
951
|
+
imports.wbg.__wbg_end_6f776519f1faa582 = function(arg0) {
|
|
952
|
+
arg0.end();
|
|
953
|
+
};
|
|
954
|
+
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
955
|
+
let deferred0_0;
|
|
956
|
+
let deferred0_1;
|
|
957
|
+
try {
|
|
958
|
+
deferred0_0 = arg0;
|
|
959
|
+
deferred0_1 = arg1;
|
|
960
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
961
|
+
} finally {
|
|
962
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
963
|
+
}
|
|
964
|
+
};
|
|
965
|
+
imports.wbg.__wbg_error_7bc7d576a6aaf855 = function(arg0) {
|
|
966
|
+
console.error(arg0);
|
|
967
|
+
};
|
|
968
|
+
imports.wbg.__wbg_error_e98e6aadd08e0b94 = function(arg0) {
|
|
969
|
+
const ret = arg0.error;
|
|
970
|
+
return ret;
|
|
971
|
+
};
|
|
972
|
+
imports.wbg.__wbg_executeBundles_8e6c0614da2805d4 = function(arg0, arg1) {
|
|
973
|
+
arg0.executeBundles(arg1);
|
|
974
|
+
};
|
|
975
|
+
imports.wbg.__wbg_features_1b464383ea8a7691 = function(arg0) {
|
|
976
|
+
const ret = arg0.features;
|
|
977
|
+
return ret;
|
|
978
|
+
};
|
|
979
|
+
imports.wbg.__wbg_features_e5fbbc2760867852 = function(arg0) {
|
|
980
|
+
const ret = arg0.features;
|
|
981
|
+
return ret;
|
|
982
|
+
};
|
|
983
|
+
imports.wbg.__wbg_finish_20711371c58df61c = function(arg0) {
|
|
984
|
+
const ret = arg0.finish();
|
|
985
|
+
return ret;
|
|
986
|
+
};
|
|
987
|
+
imports.wbg.__wbg_finish_34b2c54329c8719f = function(arg0, arg1) {
|
|
988
|
+
const ret = arg0.finish(arg1);
|
|
989
|
+
return ret;
|
|
990
|
+
};
|
|
991
|
+
imports.wbg.__wbg_finish_a9ab917e756ea00c = function(arg0, arg1) {
|
|
992
|
+
const ret = arg0.finish(arg1);
|
|
993
|
+
return ret;
|
|
994
|
+
};
|
|
995
|
+
imports.wbg.__wbg_finish_e0a6c97c0622f843 = function(arg0) {
|
|
996
|
+
const ret = arg0.finish();
|
|
997
|
+
return ret;
|
|
998
|
+
};
|
|
999
|
+
imports.wbg.__wbg_getBindGroupLayout_4a94df6108ac6667 = function(arg0, arg1) {
|
|
1000
|
+
const ret = arg0.getBindGroupLayout(arg1 >>> 0);
|
|
1001
|
+
return ret;
|
|
1002
|
+
};
|
|
1003
|
+
imports.wbg.__wbg_getBindGroupLayout_80e803d942962f6a = function(arg0, arg1) {
|
|
1004
|
+
const ret = arg0.getBindGroupLayout(arg1 >>> 0);
|
|
1005
|
+
return ret;
|
|
1006
|
+
};
|
|
1007
|
+
imports.wbg.__wbg_getCompilationInfo_2af3ecdfeda551a3 = function(arg0) {
|
|
1008
|
+
const ret = arg0.getCompilationInfo();
|
|
1009
|
+
return ret;
|
|
1010
|
+
};
|
|
1011
|
+
imports.wbg.__wbg_getContext_01f42b234e833f0a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1012
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
1013
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1014
|
+
}, arguments) };
|
|
1015
|
+
imports.wbg.__wbg_getContext_2f210d0a58d43d95 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1016
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
1017
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1018
|
+
}, arguments) };
|
|
1019
|
+
imports.wbg.__wbg_getCurrentTexture_5a79cda2ff36e1ee = function(arg0) {
|
|
1020
|
+
const ret = arg0.getCurrentTexture();
|
|
1021
|
+
return ret;
|
|
1022
|
+
};
|
|
1023
|
+
imports.wbg.__wbg_getMappedRange_932dd043ae22ee0a = function(arg0, arg1, arg2) {
|
|
1024
|
+
const ret = arg0.getMappedRange(arg1, arg2);
|
|
1025
|
+
return ret;
|
|
1026
|
+
};
|
|
1027
|
+
imports.wbg.__wbg_getPreferredCanvasFormat_de73c02773a5209e = function(arg0) {
|
|
1028
|
+
const ret = arg0.getPreferredCanvasFormat();
|
|
1029
|
+
return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 96) - 1;
|
|
1030
|
+
};
|
|
1031
|
+
imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
|
|
1032
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1033
|
+
}, arguments) };
|
|
1034
|
+
imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
1035
|
+
const ret = arg0[arg1 >>> 0];
|
|
1036
|
+
return ret;
|
|
1037
|
+
};
|
|
1038
|
+
imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
|
|
1039
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1040
|
+
return ret;
|
|
1041
|
+
}, arguments) };
|
|
1042
|
+
imports.wbg.__wbg_get_c53d381635aa3929 = function(arg0, arg1) {
|
|
1043
|
+
const ret = arg0[arg1 >>> 0];
|
|
1044
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1045
|
+
};
|
|
1046
|
+
imports.wbg.__wbg_gpu_87871e8f7ace8fee = function(arg0) {
|
|
1047
|
+
const ret = arg0.gpu;
|
|
1048
|
+
return ret;
|
|
1049
|
+
};
|
|
1050
|
+
imports.wbg.__wbg_has_624cbf0451d880e8 = function(arg0, arg1, arg2) {
|
|
1051
|
+
const ret = arg0.has(getStringFromWasm0(arg1, arg2));
|
|
1052
|
+
return ret;
|
|
1053
|
+
};
|
|
1054
|
+
imports.wbg.__wbg_height_a07787f693c253d2 = function(arg0) {
|
|
1055
|
+
const ret = arg0.height;
|
|
1056
|
+
return ret;
|
|
1057
|
+
};
|
|
1058
|
+
imports.wbg.__wbg_info_ce6bcc489c22f6f0 = function(arg0) {
|
|
1059
|
+
console.info(arg0);
|
|
1060
|
+
};
|
|
1061
|
+
imports.wbg.__wbg_instanceof_GpuAdapter_0731153d2b08720b = function(arg0) {
|
|
1062
|
+
let result;
|
|
1063
|
+
try {
|
|
1064
|
+
result = arg0 instanceof GPUAdapter;
|
|
1065
|
+
} catch (_) {
|
|
1066
|
+
result = false;
|
|
1067
|
+
}
|
|
1068
|
+
const ret = result;
|
|
1069
|
+
return ret;
|
|
1070
|
+
};
|
|
1071
|
+
imports.wbg.__wbg_instanceof_GpuCanvasContext_d14121c7bd72fcef = function(arg0) {
|
|
1072
|
+
let result;
|
|
1073
|
+
try {
|
|
1074
|
+
result = arg0 instanceof GPUCanvasContext;
|
|
1075
|
+
} catch (_) {
|
|
1076
|
+
result = false;
|
|
1077
|
+
}
|
|
1078
|
+
const ret = result;
|
|
1079
|
+
return ret;
|
|
1080
|
+
};
|
|
1081
|
+
imports.wbg.__wbg_instanceof_GpuDeviceLostInfo_a3677ebb8241d800 = function(arg0) {
|
|
1082
|
+
let result;
|
|
1083
|
+
try {
|
|
1084
|
+
result = arg0 instanceof GPUDeviceLostInfo;
|
|
1085
|
+
} catch (_) {
|
|
1086
|
+
result = false;
|
|
1087
|
+
}
|
|
1088
|
+
const ret = result;
|
|
1089
|
+
return ret;
|
|
1090
|
+
};
|
|
1091
|
+
imports.wbg.__wbg_instanceof_GpuOutOfMemoryError_391d9a08edbfa04b = function(arg0) {
|
|
1092
|
+
let result;
|
|
1093
|
+
try {
|
|
1094
|
+
result = arg0 instanceof GPUOutOfMemoryError;
|
|
1095
|
+
} catch (_) {
|
|
1096
|
+
result = false;
|
|
1097
|
+
}
|
|
1098
|
+
const ret = result;
|
|
1099
|
+
return ret;
|
|
1100
|
+
};
|
|
1101
|
+
imports.wbg.__wbg_instanceof_GpuValidationError_f4d803c383da3c92 = function(arg0) {
|
|
1102
|
+
let result;
|
|
1103
|
+
try {
|
|
1104
|
+
result = arg0 instanceof GPUValidationError;
|
|
1105
|
+
} catch (_) {
|
|
1106
|
+
result = false;
|
|
1107
|
+
}
|
|
1108
|
+
const ret = result;
|
|
1109
|
+
return ret;
|
|
1110
|
+
};
|
|
1111
|
+
imports.wbg.__wbg_instanceof_Object_577e21051f7bcb79 = function(arg0) {
|
|
1112
|
+
let result;
|
|
1113
|
+
try {
|
|
1114
|
+
result = arg0 instanceof Object;
|
|
1115
|
+
} catch (_) {
|
|
1116
|
+
result = false;
|
|
1117
|
+
}
|
|
1118
|
+
const ret = result;
|
|
1119
|
+
return ret;
|
|
1120
|
+
};
|
|
1121
|
+
imports.wbg.__wbg_instanceof_Window_b5cf7783caa68180 = function(arg0) {
|
|
1122
|
+
let result;
|
|
1123
|
+
try {
|
|
1124
|
+
result = arg0 instanceof Window;
|
|
1125
|
+
} catch (_) {
|
|
1126
|
+
result = false;
|
|
1127
|
+
}
|
|
1128
|
+
const ret = result;
|
|
1129
|
+
return ret;
|
|
1130
|
+
};
|
|
1131
|
+
imports.wbg.__wbg_label_2082ab37d2ad170d = function(arg0, arg1) {
|
|
1132
|
+
const ret = arg1.label;
|
|
1133
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1134
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1135
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1136
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1137
|
+
};
|
|
1138
|
+
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
1139
|
+
const ret = arg0.length;
|
|
1140
|
+
return ret;
|
|
1141
|
+
};
|
|
1142
|
+
imports.wbg.__wbg_length_9df32f7add647235 = function(arg0) {
|
|
1143
|
+
const ret = arg0.length;
|
|
1144
|
+
return ret;
|
|
1145
|
+
};
|
|
1146
|
+
imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
1147
|
+
const ret = arg0.length;
|
|
1148
|
+
return ret;
|
|
1149
|
+
};
|
|
1150
|
+
imports.wbg.__wbg_limits_2dd632c891786ddf = function(arg0) {
|
|
1151
|
+
const ret = arg0.limits;
|
|
1152
|
+
return ret;
|
|
1153
|
+
};
|
|
1154
|
+
imports.wbg.__wbg_limits_f6411f884b0b2d62 = function(arg0) {
|
|
1155
|
+
const ret = arg0.limits;
|
|
1156
|
+
return ret;
|
|
1157
|
+
};
|
|
1158
|
+
imports.wbg.__wbg_lineNum_0246de1e072ffe19 = function(arg0) {
|
|
1159
|
+
const ret = arg0.lineNum;
|
|
1160
|
+
return ret;
|
|
1161
|
+
};
|
|
1162
|
+
imports.wbg.__wbg_log_1d990106d99dacb7 = function(arg0) {
|
|
1163
|
+
console.log(arg0);
|
|
1164
|
+
};
|
|
1165
|
+
imports.wbg.__wbg_lost_6e4d29847ce2a34a = function(arg0) {
|
|
1166
|
+
const ret = arg0.lost;
|
|
1167
|
+
return ret;
|
|
1168
|
+
};
|
|
1169
|
+
imports.wbg.__wbg_mapAsync_37f5e03edf2e1352 = function(arg0, arg1, arg2, arg3) {
|
|
1170
|
+
const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
|
|
1171
|
+
return ret;
|
|
1172
|
+
};
|
|
1173
|
+
imports.wbg.__wbg_maxBindGroups_768ca5e8623bf450 = function(arg0) {
|
|
1174
|
+
const ret = arg0.maxBindGroups;
|
|
1175
|
+
return ret;
|
|
1176
|
+
};
|
|
1177
|
+
imports.wbg.__wbg_maxBindingsPerBindGroup_057972d600d69719 = function(arg0) {
|
|
1178
|
+
const ret = arg0.maxBindingsPerBindGroup;
|
|
1179
|
+
return ret;
|
|
1180
|
+
};
|
|
1181
|
+
imports.wbg.__wbg_maxBufferSize_e237b44f19a5a62b = function(arg0) {
|
|
1182
|
+
const ret = arg0.maxBufferSize;
|
|
1183
|
+
return ret;
|
|
1184
|
+
};
|
|
1185
|
+
imports.wbg.__wbg_maxColorAttachmentBytesPerSample_d6c7b4051d22c6d6 = function(arg0) {
|
|
1186
|
+
const ret = arg0.maxColorAttachmentBytesPerSample;
|
|
1187
|
+
return ret;
|
|
1188
|
+
};
|
|
1189
|
+
imports.wbg.__wbg_maxColorAttachments_7a18ba24c05edcfd = function(arg0) {
|
|
1190
|
+
const ret = arg0.maxColorAttachments;
|
|
1191
|
+
return ret;
|
|
1192
|
+
};
|
|
1193
|
+
imports.wbg.__wbg_maxComputeInvocationsPerWorkgroup_b99c2f3611633992 = function(arg0) {
|
|
1194
|
+
const ret = arg0.maxComputeInvocationsPerWorkgroup;
|
|
1195
|
+
return ret;
|
|
1196
|
+
};
|
|
1197
|
+
imports.wbg.__wbg_maxComputeWorkgroupSizeX_adb26da9ed7f77f7 = function(arg0) {
|
|
1198
|
+
const ret = arg0.maxComputeWorkgroupSizeX;
|
|
1199
|
+
return ret;
|
|
1200
|
+
};
|
|
1201
|
+
imports.wbg.__wbg_maxComputeWorkgroupSizeY_cc217559c98be33b = function(arg0) {
|
|
1202
|
+
const ret = arg0.maxComputeWorkgroupSizeY;
|
|
1203
|
+
return ret;
|
|
1204
|
+
};
|
|
1205
|
+
imports.wbg.__wbg_maxComputeWorkgroupSizeZ_66606a80e2cf2309 = function(arg0) {
|
|
1206
|
+
const ret = arg0.maxComputeWorkgroupSizeZ;
|
|
1207
|
+
return ret;
|
|
1208
|
+
};
|
|
1209
|
+
imports.wbg.__wbg_maxComputeWorkgroupStorageSize_cb6235497b8c4997 = function(arg0) {
|
|
1210
|
+
const ret = arg0.maxComputeWorkgroupStorageSize;
|
|
1211
|
+
return ret;
|
|
1212
|
+
};
|
|
1213
|
+
imports.wbg.__wbg_maxComputeWorkgroupsPerDimension_6bf550b5f21d57cf = function(arg0) {
|
|
1214
|
+
const ret = arg0.maxComputeWorkgroupsPerDimension;
|
|
1215
|
+
return ret;
|
|
1216
|
+
};
|
|
1217
|
+
imports.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_c6ac20334e328b47 = function(arg0) {
|
|
1218
|
+
const ret = arg0.maxDynamicStorageBuffersPerPipelineLayout;
|
|
1219
|
+
return ret;
|
|
1220
|
+
};
|
|
1221
|
+
imports.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_aa8f14a74b440f01 = function(arg0) {
|
|
1222
|
+
const ret = arg0.maxDynamicUniformBuffersPerPipelineLayout;
|
|
1223
|
+
return ret;
|
|
1224
|
+
};
|
|
1225
|
+
imports.wbg.__wbg_maxSampledTexturesPerShaderStage_db7c4922cc60144a = function(arg0) {
|
|
1226
|
+
const ret = arg0.maxSampledTexturesPerShaderStage;
|
|
1227
|
+
return ret;
|
|
1228
|
+
};
|
|
1229
|
+
imports.wbg.__wbg_maxSamplersPerShaderStage_538705fe2263e710 = function(arg0) {
|
|
1230
|
+
const ret = arg0.maxSamplersPerShaderStage;
|
|
1231
|
+
return ret;
|
|
1232
|
+
};
|
|
1233
|
+
imports.wbg.__wbg_maxStorageBufferBindingSize_32178c0f5f7f85cb = function(arg0) {
|
|
1234
|
+
const ret = arg0.maxStorageBufferBindingSize;
|
|
1235
|
+
return ret;
|
|
1236
|
+
};
|
|
1237
|
+
imports.wbg.__wbg_maxStorageBuffersPerShaderStage_9f67e9eae0089f77 = function(arg0) {
|
|
1238
|
+
const ret = arg0.maxStorageBuffersPerShaderStage;
|
|
1239
|
+
return ret;
|
|
1240
|
+
};
|
|
1241
|
+
imports.wbg.__wbg_maxStorageTexturesPerShaderStage_57239664936031cf = function(arg0) {
|
|
1242
|
+
const ret = arg0.maxStorageTexturesPerShaderStage;
|
|
1243
|
+
return ret;
|
|
1244
|
+
};
|
|
1245
|
+
imports.wbg.__wbg_maxTextureArrayLayers_db5d4e486c78ae04 = function(arg0) {
|
|
1246
|
+
const ret = arg0.maxTextureArrayLayers;
|
|
1247
|
+
return ret;
|
|
1248
|
+
};
|
|
1249
|
+
imports.wbg.__wbg_maxTextureDimension1D_3475085ffacabbdc = function(arg0) {
|
|
1250
|
+
const ret = arg0.maxTextureDimension1D;
|
|
1251
|
+
return ret;
|
|
1252
|
+
};
|
|
1253
|
+
imports.wbg.__wbg_maxTextureDimension2D_7c8d5ecf09eb8519 = function(arg0) {
|
|
1254
|
+
const ret = arg0.maxTextureDimension2D;
|
|
1255
|
+
return ret;
|
|
1256
|
+
};
|
|
1257
|
+
imports.wbg.__wbg_maxTextureDimension3D_8bd976677a0f91d4 = function(arg0) {
|
|
1258
|
+
const ret = arg0.maxTextureDimension3D;
|
|
1259
|
+
return ret;
|
|
1260
|
+
};
|
|
1261
|
+
imports.wbg.__wbg_maxUniformBufferBindingSize_95b1a54e7e4a0f0f = function(arg0) {
|
|
1262
|
+
const ret = arg0.maxUniformBufferBindingSize;
|
|
1263
|
+
return ret;
|
|
1264
|
+
};
|
|
1265
|
+
imports.wbg.__wbg_maxUniformBuffersPerShaderStage_5f475d9a453af14d = function(arg0) {
|
|
1266
|
+
const ret = arg0.maxUniformBuffersPerShaderStage;
|
|
1267
|
+
return ret;
|
|
1268
|
+
};
|
|
1269
|
+
imports.wbg.__wbg_maxVertexAttributes_4c48ca2f5d32f860 = function(arg0) {
|
|
1270
|
+
const ret = arg0.maxVertexAttributes;
|
|
1271
|
+
return ret;
|
|
1272
|
+
};
|
|
1273
|
+
imports.wbg.__wbg_maxVertexBufferArrayStride_2233f6933ecc5a16 = function(arg0) {
|
|
1274
|
+
const ret = arg0.maxVertexBufferArrayStride;
|
|
1275
|
+
return ret;
|
|
1276
|
+
};
|
|
1277
|
+
imports.wbg.__wbg_maxVertexBuffers_c47e508cd7348554 = function(arg0) {
|
|
1278
|
+
const ret = arg0.maxVertexBuffers;
|
|
1279
|
+
return ret;
|
|
1280
|
+
};
|
|
1281
|
+
imports.wbg.__wbg_message_0762358e59db7ed6 = function(arg0, arg1) {
|
|
1282
|
+
const ret = arg1.message;
|
|
1283
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1284
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1285
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1286
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1287
|
+
};
|
|
1288
|
+
imports.wbg.__wbg_message_7957ab09f64c6822 = function(arg0, arg1) {
|
|
1289
|
+
const ret = arg1.message;
|
|
1290
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1291
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1292
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1293
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1294
|
+
};
|
|
1295
|
+
imports.wbg.__wbg_message_b163994503433c9e = function(arg0, arg1) {
|
|
1296
|
+
const ret = arg1.message;
|
|
1297
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1298
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1299
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1300
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1301
|
+
};
|
|
1302
|
+
imports.wbg.__wbg_messages_da071582f72bc978 = function(arg0) {
|
|
1303
|
+
const ret = arg0.messages;
|
|
1304
|
+
return ret;
|
|
1305
|
+
};
|
|
1306
|
+
imports.wbg.__wbg_minStorageBufferOffsetAlignment_51b4801fac3a58de = function(arg0) {
|
|
1307
|
+
const ret = arg0.minStorageBufferOffsetAlignment;
|
|
1308
|
+
return ret;
|
|
1309
|
+
};
|
|
1310
|
+
imports.wbg.__wbg_minUniformBufferOffsetAlignment_5d62a77924b2335f = function(arg0) {
|
|
1311
|
+
const ret = arg0.minUniformBufferOffsetAlignment;
|
|
1312
|
+
return ret;
|
|
1313
|
+
};
|
|
1314
|
+
imports.wbg.__wbg_navigator_11b7299bb7886507 = function(arg0) {
|
|
1315
|
+
const ret = arg0.navigator;
|
|
1316
|
+
return ret;
|
|
1317
|
+
};
|
|
1318
|
+
imports.wbg.__wbg_navigator_b49edef831236138 = function(arg0) {
|
|
1319
|
+
const ret = arg0.navigator;
|
|
1320
|
+
return ret;
|
|
1321
|
+
};
|
|
1322
|
+
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
1323
|
+
const ret = new Object();
|
|
1324
|
+
return ret;
|
|
1325
|
+
};
|
|
1326
|
+
imports.wbg.__wbg_new_25f239778d6112b9 = function() {
|
|
1327
|
+
const ret = new Array();
|
|
1328
|
+
return ret;
|
|
1329
|
+
};
|
|
1330
|
+
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
1331
|
+
const ret = new Error();
|
|
1332
|
+
return ret;
|
|
1333
|
+
};
|
|
1334
|
+
imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
|
|
1335
|
+
try {
|
|
1336
|
+
var state0 = {a: arg0, b: arg1};
|
|
1337
|
+
var cb0 = (arg0, arg1) => {
|
|
1338
|
+
const a = state0.a;
|
|
1339
|
+
state0.a = 0;
|
|
1340
|
+
try {
|
|
1341
|
+
return wasm_bindgen__convert__closures_____invoke__h320f3d825d3712ba(a, state0.b, arg0, arg1);
|
|
1342
|
+
} finally {
|
|
1343
|
+
state0.a = a;
|
|
1344
|
+
}
|
|
1345
|
+
};
|
|
1346
|
+
const ret = new Promise(cb0);
|
|
1347
|
+
return ret;
|
|
1348
|
+
} finally {
|
|
1349
|
+
state0.a = state0.b = 0;
|
|
1350
|
+
}
|
|
1351
|
+
};
|
|
1352
|
+
imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
|
|
1353
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1354
|
+
return ret;
|
|
1355
|
+
};
|
|
1356
|
+
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
1357
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1358
|
+
return ret;
|
|
1359
|
+
};
|
|
1360
|
+
imports.wbg.__wbg_new_with_byte_offset_and_length_d85c3da1fd8df149 = function(arg0, arg1, arg2) {
|
|
1361
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1362
|
+
return ret;
|
|
1363
|
+
};
|
|
1364
|
+
imports.wbg.__wbg_now_8cf15d6e317793e1 = function(arg0) {
|
|
1365
|
+
const ret = arg0.now();
|
|
1366
|
+
return ret;
|
|
1367
|
+
};
|
|
1368
|
+
imports.wbg.__wbg_offset_336f14c993863b76 = function(arg0) {
|
|
1369
|
+
const ret = arg0.offset;
|
|
1370
|
+
return ret;
|
|
1371
|
+
};
|
|
1372
|
+
imports.wbg.__wbg_popErrorScope_af0b22f136a861d6 = function(arg0) {
|
|
1373
|
+
const ret = arg0.popErrorScope();
|
|
1374
|
+
return ret;
|
|
1375
|
+
};
|
|
1376
|
+
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
1377
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1378
|
+
};
|
|
1379
|
+
imports.wbg.__wbg_pushErrorScope_b52914ff10ba6ce3 = function(arg0, arg1) {
|
|
1380
|
+
arg0.pushErrorScope(__wbindgen_enum_GpuErrorFilter[arg1]);
|
|
1381
|
+
};
|
|
1382
|
+
imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
|
|
1383
|
+
const ret = arg0.push(arg1);
|
|
1384
|
+
return ret;
|
|
1385
|
+
};
|
|
1386
|
+
imports.wbg.__wbg_querySelectorAll_aa1048eae18f6f1a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1387
|
+
const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
|
|
1388
|
+
return ret;
|
|
1389
|
+
}, arguments) };
|
|
1390
|
+
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
1391
|
+
const ret = arg0.queueMicrotask;
|
|
1392
|
+
return ret;
|
|
1393
|
+
};
|
|
1394
|
+
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
1395
|
+
queueMicrotask(arg0);
|
|
1396
|
+
};
|
|
1397
|
+
imports.wbg.__wbg_queue_bea4017efaaf9904 = function(arg0) {
|
|
1398
|
+
const ret = arg0.queue;
|
|
1399
|
+
return ret;
|
|
1400
|
+
};
|
|
1401
|
+
imports.wbg.__wbg_reason_43acd39cce242b50 = function(arg0) {
|
|
1402
|
+
const ret = arg0.reason;
|
|
1403
|
+
return (__wbindgen_enum_GpuDeviceLostReason.indexOf(ret) + 1 || 3) - 1;
|
|
1404
|
+
};
|
|
1405
|
+
imports.wbg.__wbg_requestAdapter_e6dcfac497cafa7a = function(arg0, arg1) {
|
|
1406
|
+
const ret = arg0.requestAdapter(arg1);
|
|
1407
|
+
return ret;
|
|
1408
|
+
};
|
|
1409
|
+
imports.wbg.__wbg_requestDevice_03b802707d5a382c = function(arg0, arg1) {
|
|
1410
|
+
const ret = arg0.requestDevice(arg1);
|
|
1411
|
+
return ret;
|
|
1412
|
+
};
|
|
1413
|
+
imports.wbg.__wbg_resolveQuerySet_811661fb23f3b699 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1414
|
+
arg0.resolveQuerySet(arg1, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
1415
|
+
};
|
|
1416
|
+
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
1417
|
+
const ret = Promise.resolve(arg0);
|
|
1418
|
+
return ret;
|
|
1419
|
+
};
|
|
1420
|
+
imports.wbg.__wbg_setBindGroup_62a3045b0921e429 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1421
|
+
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1422
|
+
};
|
|
1423
|
+
imports.wbg.__wbg_setBindGroup_6c0fd18e9a53a945 = function(arg0, arg1, arg2) {
|
|
1424
|
+
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
1425
|
+
};
|
|
1426
|
+
imports.wbg.__wbg_setBindGroup_7f3b61f1f482133b = function(arg0, arg1, arg2) {
|
|
1427
|
+
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
1428
|
+
};
|
|
1429
|
+
imports.wbg.__wbg_setBindGroup_bf767a5aa46a33ce = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1430
|
+
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1431
|
+
};
|
|
1432
|
+
imports.wbg.__wbg_setBindGroup_c4aaff14063226b4 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1433
|
+
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1434
|
+
};
|
|
1435
|
+
imports.wbg.__wbg_setBindGroup_f82e771dc1b69093 = function(arg0, arg1, arg2) {
|
|
1436
|
+
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
1437
|
+
};
|
|
1438
|
+
imports.wbg.__wbg_setBlendConstant_016723821cfb3aa4 = function(arg0, arg1) {
|
|
1439
|
+
arg0.setBlendConstant(arg1);
|
|
1440
|
+
};
|
|
1441
|
+
imports.wbg.__wbg_setIndexBuffer_286a40afdff411b7 = function(arg0, arg1, arg2, arg3) {
|
|
1442
|
+
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
|
|
1443
|
+
};
|
|
1444
|
+
imports.wbg.__wbg_setIndexBuffer_7efd0b7a40c65fb9 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1445
|
+
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
|
|
1446
|
+
};
|
|
1447
|
+
imports.wbg.__wbg_setIndexBuffer_e091a9673bb575e2 = function(arg0, arg1, arg2, arg3) {
|
|
1448
|
+
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
|
|
1449
|
+
};
|
|
1450
|
+
imports.wbg.__wbg_setIndexBuffer_f0759f00036f615f = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1451
|
+
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
|
|
1452
|
+
};
|
|
1453
|
+
imports.wbg.__wbg_setPipeline_ba92070b8ee81cf9 = function(arg0, arg1) {
|
|
1454
|
+
arg0.setPipeline(arg1);
|
|
1455
|
+
};
|
|
1456
|
+
imports.wbg.__wbg_setPipeline_c344f76bae58c4d6 = function(arg0, arg1) {
|
|
1457
|
+
arg0.setPipeline(arg1);
|
|
1458
|
+
};
|
|
1459
|
+
imports.wbg.__wbg_setPipeline_d76451c50a121598 = function(arg0, arg1) {
|
|
1460
|
+
arg0.setPipeline(arg1);
|
|
1461
|
+
};
|
|
1462
|
+
imports.wbg.__wbg_setScissorRect_0b6ee0852ef0b6b9 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1463
|
+
arg0.setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
1464
|
+
};
|
|
1465
|
+
imports.wbg.__wbg_setStencilReference_34fd3d59673a5a9d = function(arg0, arg1) {
|
|
1466
|
+
arg0.setStencilReference(arg1 >>> 0);
|
|
1467
|
+
};
|
|
1468
|
+
imports.wbg.__wbg_setVertexBuffer_06a90dc78e1ad9c4 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1469
|
+
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
|
|
1470
|
+
};
|
|
1471
|
+
imports.wbg.__wbg_setVertexBuffer_1540e9118b6c451d = function(arg0, arg1, arg2, arg3) {
|
|
1472
|
+
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
|
|
1473
|
+
};
|
|
1474
|
+
imports.wbg.__wbg_setVertexBuffer_5166eedc06450701 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1475
|
+
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
|
|
1476
|
+
};
|
|
1477
|
+
imports.wbg.__wbg_setVertexBuffer_8621784e5014065b = function(arg0, arg1, arg2, arg3) {
|
|
1478
|
+
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
|
|
1479
|
+
};
|
|
1480
|
+
imports.wbg.__wbg_setViewport_731ad30abb13f744 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1481
|
+
arg0.setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
|
|
1482
|
+
};
|
|
1483
|
+
imports.wbg.__wbg_set_781438a03c0c3c81 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1484
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1485
|
+
return ret;
|
|
1486
|
+
}, arguments) };
|
|
1487
|
+
imports.wbg.__wbg_set_bc3a432bdcd60886 = function(arg0, arg1, arg2) {
|
|
1488
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
1489
|
+
};
|
|
1490
|
+
imports.wbg.__wbg_set_height_6f8f8ef4cb40e496 = function(arg0, arg1) {
|
|
1491
|
+
arg0.height = arg1 >>> 0;
|
|
1492
|
+
};
|
|
1493
|
+
imports.wbg.__wbg_set_height_afe09c24165867f7 = function(arg0, arg1) {
|
|
1494
|
+
arg0.height = arg1 >>> 0;
|
|
1495
|
+
};
|
|
1496
|
+
imports.wbg.__wbg_set_onuncapturederror_19541466822d790b = function(arg0, arg1) {
|
|
1497
|
+
arg0.onuncapturederror = arg1;
|
|
1498
|
+
};
|
|
1499
|
+
imports.wbg.__wbg_set_width_0a22c810f06a5152 = function(arg0, arg1) {
|
|
1500
|
+
arg0.width = arg1 >>> 0;
|
|
1501
|
+
};
|
|
1502
|
+
imports.wbg.__wbg_set_width_7ff7a22c6e9f423e = function(arg0, arg1) {
|
|
1503
|
+
arg0.width = arg1 >>> 0;
|
|
1504
|
+
};
|
|
1505
|
+
imports.wbg.__wbg_size_661bddb3f9898121 = function(arg0) {
|
|
1506
|
+
const ret = arg0.size;
|
|
1507
|
+
return ret;
|
|
1508
|
+
};
|
|
1509
|
+
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
1510
|
+
const ret = arg1.stack;
|
|
1511
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1512
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1513
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1514
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1515
|
+
};
|
|
1516
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
1517
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1518
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1519
|
+
};
|
|
1520
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
1521
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1522
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1523
|
+
};
|
|
1524
|
+
imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
1525
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1526
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1527
|
+
};
|
|
1528
|
+
imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
1529
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1530
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1531
|
+
};
|
|
1532
|
+
imports.wbg.__wbg_submit_f635072bb3d05faa = function(arg0, arg1) {
|
|
1533
|
+
arg0.submit(arg1);
|
|
1534
|
+
};
|
|
1535
|
+
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
1536
|
+
const ret = arg0.then(arg1, arg2);
|
|
1537
|
+
return ret;
|
|
1538
|
+
};
|
|
1539
|
+
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
1540
|
+
const ret = arg0.then(arg1);
|
|
1541
|
+
return ret;
|
|
1542
|
+
};
|
|
1543
|
+
imports.wbg.__wbg_type_c0d5d83032e9858a = function(arg0) {
|
|
1544
|
+
const ret = arg0.type;
|
|
1545
|
+
return (__wbindgen_enum_GpuCompilationMessageType.indexOf(ret) + 1 || 4) - 1;
|
|
1546
|
+
};
|
|
1547
|
+
imports.wbg.__wbg_unmap_8c2e8131b2aaa844 = function(arg0) {
|
|
1548
|
+
arg0.unmap();
|
|
1549
|
+
};
|
|
1550
|
+
imports.wbg.__wbg_usage_13caa02888040e9f = function(arg0) {
|
|
1551
|
+
const ret = arg0.usage;
|
|
1552
|
+
return ret;
|
|
1553
|
+
};
|
|
1554
|
+
imports.wbg.__wbg_valueOf_663ea9f1ad0d6eda = function(arg0) {
|
|
1555
|
+
const ret = arg0.valueOf();
|
|
1556
|
+
return ret;
|
|
1557
|
+
};
|
|
1558
|
+
imports.wbg.__wbg_warn_6e567d0d926ff881 = function(arg0) {
|
|
1559
|
+
console.warn(arg0);
|
|
1560
|
+
};
|
|
1561
|
+
imports.wbg.__wbg_wasmvisualiser_new = function(arg0) {
|
|
1562
|
+
const ret = WasmVisualiser.__wrap(arg0);
|
|
1563
|
+
return ret;
|
|
1564
|
+
};
|
|
1565
|
+
imports.wbg.__wbg_width_dd0cfe94d42f5143 = function(arg0) {
|
|
1566
|
+
const ret = arg0.width;
|
|
1567
|
+
return ret;
|
|
1568
|
+
};
|
|
1569
|
+
imports.wbg.__wbg_writeBuffer_5ca4981365eb5ac0 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1570
|
+
arg0.writeBuffer(arg1, arg2, arg3, arg4, arg5);
|
|
1571
|
+
};
|
|
1572
|
+
imports.wbg.__wbg_writeTexture_246118eb2f5a1592 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1573
|
+
arg0.writeTexture(arg1, arg2, arg3, arg4);
|
|
1574
|
+
};
|
|
1575
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1576
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1577
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1578
|
+
return ret;
|
|
1579
|
+
};
|
|
1580
|
+
imports.wbg.__wbindgen_cast_76d0cfa31f1ac8a4 = function(arg0, arg1) {
|
|
1581
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2169, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 2170, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1582
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__heb49a8f426ac2d2e, wasm_bindgen__convert__closures_____invoke__h9d1c5a23ecfcd5c8);
|
|
1583
|
+
return ret;
|
|
1584
|
+
};
|
|
1585
|
+
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
1586
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1587
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1588
|
+
return ret;
|
|
1589
|
+
};
|
|
1590
|
+
imports.wbg.__wbindgen_cast_cf6801dce1a51fdc = function(arg0, arg1) {
|
|
1591
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2301, function: Function { arguments: [Externref], shim_idx: 2302, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1592
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf5eaa61ced318e08, wasm_bindgen__convert__closures_____invoke__h53437a38721e89f7);
|
|
1593
|
+
return ret;
|
|
1594
|
+
};
|
|
1595
|
+
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
1596
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1597
|
+
const ret = arg0;
|
|
1598
|
+
return ret;
|
|
1599
|
+
};
|
|
1600
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1601
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1602
|
+
const offset = table.grow(4);
|
|
1603
|
+
table.set(0, undefined);
|
|
1604
|
+
table.set(offset + 0, undefined);
|
|
1605
|
+
table.set(offset + 1, null);
|
|
1606
|
+
table.set(offset + 2, true);
|
|
1607
|
+
table.set(offset + 3, false);
|
|
1608
|
+
};
|
|
1609
|
+
|
|
1610
|
+
return imports;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
function __wbg_finalize_init(instance, module) {
|
|
1614
|
+
wasm = instance.exports;
|
|
1615
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
1616
|
+
cachedDataViewMemory0 = null;
|
|
1617
|
+
cachedFloat32ArrayMemory0 = null;
|
|
1618
|
+
cachedUint32ArrayMemory0 = null;
|
|
1619
|
+
cachedUint8ArrayMemory0 = null;
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
wasm.__wbindgen_start();
|
|
1623
|
+
return wasm;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
function initSync(module) {
|
|
1627
|
+
if (wasm !== undefined) return wasm;
|
|
1628
|
+
|
|
1629
|
+
|
|
1630
|
+
if (typeof module !== 'undefined') {
|
|
1631
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1632
|
+
({module} = module)
|
|
1633
|
+
} else {
|
|
1634
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
const imports = __wbg_get_imports();
|
|
1639
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1640
|
+
module = new WebAssembly.Module(module);
|
|
1641
|
+
}
|
|
1642
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1643
|
+
return __wbg_finalize_init(instance, module);
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
async function __wbg_init(module_or_path) {
|
|
1647
|
+
if (wasm !== undefined) return wasm;
|
|
1648
|
+
|
|
1649
|
+
|
|
1650
|
+
if (typeof module_or_path !== 'undefined') {
|
|
1651
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1652
|
+
({module_or_path} = module_or_path)
|
|
1653
|
+
} else {
|
|
1654
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
if (typeof module_or_path === 'undefined') {
|
|
1659
|
+
module_or_path = new URL('visualiser_bg.wasm', import.meta.url);
|
|
1660
|
+
}
|
|
1661
|
+
const imports = __wbg_get_imports();
|
|
1662
|
+
|
|
1663
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1664
|
+
module_or_path = fetch(module_or_path);
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1668
|
+
|
|
1669
|
+
return __wbg_finalize_init(instance, module);
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
export { initSync };
|
|
1673
|
+
export default __wbg_init;
|