goudengine 0.0.824 → 0.0.826
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/goud-engine-node.darwin-arm64.node +0 -0
- package/goud-engine-node.darwin-x64.node +0 -0
- package/goud-engine-node.linux-x64-gnu.node +0 -0
- package/goud-engine-node.win32-x64-msvc.node +0 -0
- package/index.d.ts +113 -85
- package/index.js +542 -278
- package/package.json +15 -15
- package/wasm/goud_engine.d.ts +186 -161
- package/wasm/goud_engine.js +1562 -1498
- package/wasm/goud_engine_bg.wasm +0 -0
- package/wasm/goud_engine_bg.wasm.d.ts +6 -3
package/wasm/goud_engine.js
CHANGED
|
@@ -1,358 +1,159 @@
|
|
|
1
|
-
|
|
1
|
+
/* @ts-self-types="./goud_engine.d.ts" */
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
:
|
|
3
|
+
/**
|
|
4
|
+
* Chroma subsampling format
|
|
5
|
+
* @enum {0 | 1 | 2 | 3}
|
|
6
|
+
*/
|
|
7
|
+
export const ChromaSampling = Object.freeze({
|
|
8
|
+
/**
|
|
9
|
+
* Both vertically and horizontally subsampled.
|
|
10
|
+
*/
|
|
11
|
+
Cs420: 0, "0": "Cs420",
|
|
12
|
+
/**
|
|
13
|
+
* Horizontally subsampled.
|
|
14
|
+
*/
|
|
15
|
+
Cs422: 1, "1": "Cs422",
|
|
16
|
+
/**
|
|
17
|
+
* Not subsampled.
|
|
18
|
+
*/
|
|
19
|
+
Cs444: 2, "2": "Cs444",
|
|
20
|
+
/**
|
|
21
|
+
* Monochrome.
|
|
22
|
+
*/
|
|
23
|
+
Cs400: 3, "3": "Cs400",
|
|
24
|
+
});
|
|
12
25
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
export class WasmGame {
|
|
27
|
+
static __wrap(ptr) {
|
|
28
|
+
ptr = ptr >>> 0;
|
|
29
|
+
const obj = Object.create(WasmGame.prototype);
|
|
30
|
+
obj.__wbg_ptr = ptr;
|
|
31
|
+
WasmGameFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
32
|
+
return obj;
|
|
18
33
|
}
|
|
19
|
-
|
|
20
|
-
|
|
34
|
+
__destroy_into_raw() {
|
|
35
|
+
const ptr = this.__wbg_ptr;
|
|
36
|
+
this.__wbg_ptr = 0;
|
|
37
|
+
WasmGameFinalization.unregister(this);
|
|
38
|
+
return ptr;
|
|
21
39
|
}
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
return 'Symbol';
|
|
26
|
-
} else {
|
|
27
|
-
return `Symbol(${description})`;
|
|
28
|
-
}
|
|
40
|
+
free() {
|
|
41
|
+
const ptr = this.__destroy_into_raw();
|
|
42
|
+
wasm.__wbg_wasmgame_free(ptr, 0);
|
|
29
43
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
44
|
+
/**
|
|
45
|
+
* @param {bigint} entity_bits
|
|
46
|
+
* @param {string} name
|
|
47
|
+
*/
|
|
48
|
+
add_name(entity_bits, name) {
|
|
49
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
50
|
+
const len0 = WASM_VECTOR_LEN;
|
|
51
|
+
wasm.wasmgame_add_name(this.__wbg_ptr, entity_bits, ptr0, len0);
|
|
37
52
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
for(let i = 1; i < length; i++) {
|
|
46
|
-
debug += ', ' + debugString(val[i]);
|
|
47
|
-
}
|
|
48
|
-
debug += ']';
|
|
49
|
-
return debug;
|
|
53
|
+
/**
|
|
54
|
+
* @param {number} dx
|
|
55
|
+
* @param {number} dy
|
|
56
|
+
*/
|
|
57
|
+
add_scroll_delta(dx, dy) {
|
|
58
|
+
wasm.wasmgame_add_scroll_delta(this.__wbg_ptr, dx, dy);
|
|
50
59
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
/**
|
|
61
|
+
* @param {bigint} entity_bits
|
|
62
|
+
* @param {number} px
|
|
63
|
+
* @param {number} py
|
|
64
|
+
* @param {number} rotation
|
|
65
|
+
* @param {number} sx
|
|
66
|
+
* @param {number} sy
|
|
67
|
+
*/
|
|
68
|
+
add_transform2d(entity_bits, px, py, rotation, sx, sy) {
|
|
69
|
+
wasm.wasmgame_add_transform2d(this.__wbg_ptr, entity_bits, px, py, rotation, sx, sy);
|
|
59
70
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
66
|
-
} catch (_) {
|
|
67
|
-
return 'Object';
|
|
68
|
-
}
|
|
71
|
+
/**
|
|
72
|
+
* @param {number} delta_time
|
|
73
|
+
*/
|
|
74
|
+
begin_frame(delta_time) {
|
|
75
|
+
wasm.wasmgame_begin_frame(this.__wbg_ptr, delta_time);
|
|
69
76
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
77
|
+
/**
|
|
78
|
+
* Creates a game instance with wgpu rendering attached to a canvas.
|
|
79
|
+
* @param {HTMLCanvasElement} canvas
|
|
80
|
+
* @param {number} width
|
|
81
|
+
* @param {number} height
|
|
82
|
+
* @param {string} title
|
|
83
|
+
* @returns {Promise<WasmGame>}
|
|
84
|
+
*/
|
|
85
|
+
static createWithCanvas(canvas, width, height, title) {
|
|
86
|
+
const ptr0 = passStringToWasm0(title, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
87
|
+
const len0 = WASM_VECTOR_LEN;
|
|
88
|
+
const ret = wasm.wasmgame_createWithCanvas(canvas, width, height, ptr0, len0);
|
|
89
|
+
return ret;
|
|
73
90
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
function getArrayU64FromWasm0(ptr, len) {
|
|
84
|
-
ptr = ptr >>> 0;
|
|
85
|
-
return getBigUint64ArrayMemory0().subarray(ptr / 8, ptr / 8 + 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 cachedBigUint64ArrayMemory0 = null;
|
|
94
|
-
function getBigUint64ArrayMemory0() {
|
|
95
|
-
if (cachedBigUint64ArrayMemory0 === null || cachedBigUint64ArrayMemory0.byteLength === 0) {
|
|
96
|
-
cachedBigUint64ArrayMemory0 = new BigUint64Array(wasm.memory.buffer);
|
|
91
|
+
/**
|
|
92
|
+
* @returns {number}
|
|
93
|
+
*/
|
|
94
|
+
get delta_time() {
|
|
95
|
+
const ret = wasm.wasmgame_delta_time(this.__wbg_ptr);
|
|
96
|
+
return ret;
|
|
97
97
|
}
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
/**
|
|
99
|
+
* @param {bigint} entity_bits
|
|
100
|
+
* @returns {boolean}
|
|
101
|
+
*/
|
|
102
|
+
despawn(entity_bits) {
|
|
103
|
+
const ret = wasm.wasmgame_despawn(this.__wbg_ptr, entity_bits);
|
|
104
|
+
return ret !== 0;
|
|
105
105
|
}
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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);
|
|
106
|
+
/**
|
|
107
|
+
* @param {number} handle
|
|
108
|
+
*/
|
|
109
|
+
destroy_texture(handle) {
|
|
110
|
+
wasm.wasmgame_destroy_texture(this.__wbg_ptr, handle);
|
|
118
111
|
}
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
112
|
+
/**
|
|
113
|
+
* @param {number} x
|
|
114
|
+
* @param {number} y
|
|
115
|
+
* @param {number} w
|
|
116
|
+
* @param {number} h
|
|
117
|
+
* @param {number} r
|
|
118
|
+
* @param {number} g
|
|
119
|
+
* @param {number} b
|
|
120
|
+
* @param {number} a
|
|
121
|
+
*/
|
|
122
|
+
draw_quad(x, y, w, h, r, g, b, a) {
|
|
123
|
+
wasm.wasmgame_draw_quad(this.__wbg_ptr, x, y, w, h, r, g, b, a);
|
|
126
124
|
}
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
125
|
+
/**
|
|
126
|
+
* @param {number} texture
|
|
127
|
+
* @param {number} x
|
|
128
|
+
* @param {number} y
|
|
129
|
+
* @param {number} w
|
|
130
|
+
* @param {number} h
|
|
131
|
+
* @param {number} rotation
|
|
132
|
+
* @param {number} r
|
|
133
|
+
* @param {number} g
|
|
134
|
+
* @param {number} b
|
|
135
|
+
* @param {number} a
|
|
136
|
+
*/
|
|
137
|
+
draw_sprite(texture, x, y, w, h, rotation, r, g, b, a) {
|
|
138
|
+
wasm.wasmgame_draw_sprite(this.__wbg_ptr, texture, x, y, w, h, rotation, r, g, b, a);
|
|
136
139
|
}
|
|
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 passStringToWasm0(arg, malloc, realloc) {
|
|
172
|
-
if (realloc === undefined) {
|
|
173
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
174
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
175
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
176
|
-
WASM_VECTOR_LEN = buf.length;
|
|
177
|
-
return ptr;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
let len = arg.length;
|
|
181
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
182
|
-
|
|
183
|
-
const mem = getUint8ArrayMemory0();
|
|
184
|
-
|
|
185
|
-
let offset = 0;
|
|
186
|
-
|
|
187
|
-
for (; offset < len; offset++) {
|
|
188
|
-
const code = arg.charCodeAt(offset);
|
|
189
|
-
if (code > 0x7F) break;
|
|
190
|
-
mem[ptr + offset] = code;
|
|
191
|
-
}
|
|
192
|
-
if (offset !== len) {
|
|
193
|
-
if (offset !== 0) {
|
|
194
|
-
arg = arg.slice(offset);
|
|
195
|
-
}
|
|
196
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
197
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
198
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
199
|
-
|
|
200
|
-
offset += ret.written;
|
|
201
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
WASM_VECTOR_LEN = offset;
|
|
205
|
-
return ptr;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
209
|
-
cachedTextDecoder.decode();
|
|
210
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
211
|
-
let numBytesDecoded = 0;
|
|
212
|
-
function decodeText(ptr, len) {
|
|
213
|
-
numBytesDecoded += len;
|
|
214
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
215
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
216
|
-
cachedTextDecoder.decode();
|
|
217
|
-
numBytesDecoded = len;
|
|
218
|
-
}
|
|
219
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
const cachedTextEncoder = new TextEncoder();
|
|
223
|
-
|
|
224
|
-
if (!('encodeInto' in cachedTextEncoder)) {
|
|
225
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
226
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
227
|
-
view.set(buf);
|
|
228
|
-
return {
|
|
229
|
-
read: arg.length,
|
|
230
|
-
written: buf.length
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
let WASM_VECTOR_LEN = 0;
|
|
236
|
-
|
|
237
|
-
function wasm_bindgen__convert__closures_____invoke__hea5223c55c1708a8(arg0, arg1, arg2) {
|
|
238
|
-
wasm.wasm_bindgen__convert__closures_____invoke__hea5223c55c1708a8(arg0, arg1, arg2);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
function wasm_bindgen__convert__closures_____invoke__h1c1a44fa2edf53c0(arg0, arg1, arg2, arg3) {
|
|
242
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h1c1a44fa2edf53c0(arg0, arg1, arg2, arg3);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
|
|
246
|
-
|
|
247
|
-
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"];
|
|
248
|
-
|
|
249
|
-
const __wbindgen_enum_GpuBlendOperation = ["add", "subtract", "reverse-subtract", "min", "max"];
|
|
250
|
-
|
|
251
|
-
const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
|
|
252
|
-
|
|
253
|
-
const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
|
|
254
|
-
|
|
255
|
-
const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
|
|
256
|
-
|
|
257
|
-
const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
|
|
258
|
-
|
|
259
|
-
const __wbindgen_enum_GpuFilterMode = ["nearest", "linear"];
|
|
260
|
-
|
|
261
|
-
const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
|
|
262
|
-
|
|
263
|
-
const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
|
|
264
|
-
|
|
265
|
-
const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
|
|
266
|
-
|
|
267
|
-
const __wbindgen_enum_GpuMipmapFilterMode = ["nearest", "linear"];
|
|
268
|
-
|
|
269
|
-
const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
|
|
270
|
-
|
|
271
|
-
const __wbindgen_enum_GpuPrimitiveTopology = ["point-list", "line-list", "line-strip", "triangle-list", "triangle-strip"];
|
|
272
|
-
|
|
273
|
-
const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
|
|
274
|
-
|
|
275
|
-
const __wbindgen_enum_GpuStencilOperation = ["keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap"];
|
|
276
|
-
|
|
277
|
-
const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
|
|
278
|
-
|
|
279
|
-
const __wbindgen_enum_GpuStoreOp = ["store", "discard"];
|
|
280
|
-
|
|
281
|
-
const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
|
|
282
|
-
|
|
283
|
-
const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
|
|
284
|
-
|
|
285
|
-
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"];
|
|
286
|
-
|
|
287
|
-
const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
|
|
288
|
-
|
|
289
|
-
const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
|
|
290
|
-
|
|
291
|
-
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"];
|
|
292
|
-
|
|
293
|
-
const __wbindgen_enum_GpuVertexStepMode = ["vertex", "instance"];
|
|
294
|
-
|
|
295
|
-
const WasmGameFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
296
|
-
? { register: () => {}, unregister: () => {} }
|
|
297
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmgame_free(ptr >>> 0, 1));
|
|
298
|
-
|
|
299
|
-
const WasmTransform2DFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
300
|
-
? { register: () => {}, unregister: () => {} }
|
|
301
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtransform2d_free(ptr >>> 0, 1));
|
|
302
|
-
|
|
303
|
-
export class WasmGame {
|
|
304
|
-
static __wrap(ptr) {
|
|
305
|
-
ptr = ptr >>> 0;
|
|
306
|
-
const obj = Object.create(WasmGame.prototype);
|
|
307
|
-
obj.__wbg_ptr = ptr;
|
|
308
|
-
WasmGameFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
309
|
-
return obj;
|
|
310
|
-
}
|
|
311
|
-
__destroy_into_raw() {
|
|
312
|
-
const ptr = this.__wbg_ptr;
|
|
313
|
-
this.__wbg_ptr = 0;
|
|
314
|
-
WasmGameFinalization.unregister(this);
|
|
315
|
-
return ptr;
|
|
316
|
-
}
|
|
317
|
-
free() {
|
|
318
|
-
const ptr = this.__destroy_into_raw();
|
|
319
|
-
wasm.__wbg_wasmgame_free(ptr, 0);
|
|
140
|
+
end_frame() {
|
|
141
|
+
wasm.wasmgame_end_frame(this.__wbg_ptr);
|
|
320
142
|
}
|
|
321
143
|
/**
|
|
322
144
|
* @returns {number}
|
|
323
145
|
*/
|
|
324
|
-
|
|
325
|
-
const ret = wasm.
|
|
326
|
-
return ret;
|
|
146
|
+
entity_count() {
|
|
147
|
+
const ret = wasm.wasmgame_entity_count(this.__wbg_ptr);
|
|
148
|
+
return ret >>> 0;
|
|
327
149
|
}
|
|
328
150
|
/**
|
|
329
151
|
* @returns {number}
|
|
330
152
|
*/
|
|
331
|
-
get
|
|
332
|
-
const ret = wasm.
|
|
153
|
+
get fps() {
|
|
154
|
+
const ret = wasm.wasmgame_fps(this.__wbg_ptr);
|
|
333
155
|
return ret;
|
|
334
156
|
}
|
|
335
|
-
/**
|
|
336
|
-
* @param {number} delta_time
|
|
337
|
-
*/
|
|
338
|
-
begin_frame(delta_time) {
|
|
339
|
-
wasm.wasmgame_begin_frame(this.__wbg_ptr, delta_time);
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* @param {number} texture
|
|
343
|
-
* @param {number} x
|
|
344
|
-
* @param {number} y
|
|
345
|
-
* @param {number} w
|
|
346
|
-
* @param {number} h
|
|
347
|
-
* @param {number} rotation
|
|
348
|
-
* @param {number} r
|
|
349
|
-
* @param {number} g
|
|
350
|
-
* @param {number} b
|
|
351
|
-
* @param {number} a
|
|
352
|
-
*/
|
|
353
|
-
draw_sprite(texture, x, y, w, h, rotation, r, g, b, a) {
|
|
354
|
-
wasm.wasmgame_draw_sprite(this.__wbg_ptr, texture, x, y, w, h, rotation, r, g, b, a);
|
|
355
|
-
}
|
|
356
157
|
/**
|
|
357
158
|
* @returns {bigint}
|
|
358
159
|
*/
|
|
@@ -360,43 +161,34 @@ export class WasmGame {
|
|
|
360
161
|
const ret = wasm.wasmgame_frame_count(this.__wbg_ptr);
|
|
361
162
|
return BigInt.asUintN(64, ret);
|
|
362
163
|
}
|
|
363
|
-
/**
|
|
364
|
-
* @param {number} key_code
|
|
365
|
-
*/
|
|
366
|
-
release_key(key_code) {
|
|
367
|
-
wasm.wasmgame_release_key(this.__wbg_ptr, key_code);
|
|
368
|
-
}
|
|
369
164
|
/**
|
|
370
165
|
* @param {bigint} entity_bits
|
|
371
|
-
* @returns {
|
|
372
|
-
*/
|
|
373
|
-
remove_name(entity_bits) {
|
|
374
|
-
const ret = wasm.wasmgame_remove_name(this.__wbg_ptr, entity_bits);
|
|
375
|
-
return ret !== 0;
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* @param {number} count
|
|
379
|
-
* @returns {BigUint64Array}
|
|
166
|
+
* @returns {string | undefined}
|
|
380
167
|
*/
|
|
381
|
-
|
|
382
|
-
const ret = wasm.
|
|
383
|
-
|
|
384
|
-
|
|
168
|
+
get_name(entity_bits) {
|
|
169
|
+
const ret = wasm.wasmgame_get_name(this.__wbg_ptr, entity_bits);
|
|
170
|
+
let v1;
|
|
171
|
+
if (ret[0] !== 0) {
|
|
172
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
173
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
174
|
+
}
|
|
385
175
|
return v1;
|
|
386
176
|
}
|
|
387
177
|
/**
|
|
388
|
-
* @
|
|
178
|
+
* @param {bigint} entity_bits
|
|
179
|
+
* @returns {WasmTransform2D | undefined}
|
|
389
180
|
*/
|
|
390
|
-
|
|
391
|
-
const ret = wasm.
|
|
392
|
-
return
|
|
181
|
+
get_transform2d(entity_bits) {
|
|
182
|
+
const ret = wasm.wasmgame_get_transform2d(this.__wbg_ptr, entity_bits);
|
|
183
|
+
return ret === 0 ? undefined : WasmTransform2D.__wrap(ret);
|
|
393
184
|
}
|
|
394
185
|
/**
|
|
395
|
-
* @
|
|
186
|
+
* @param {bigint} entity_bits
|
|
187
|
+
* @returns {boolean}
|
|
396
188
|
*/
|
|
397
|
-
|
|
398
|
-
const ret = wasm.
|
|
399
|
-
return ret
|
|
189
|
+
has_name(entity_bits) {
|
|
190
|
+
const ret = wasm.wasmgame_has_name(this.__wbg_ptr, entity_bits);
|
|
191
|
+
return ret !== 0;
|
|
400
192
|
}
|
|
401
193
|
/**
|
|
402
194
|
* Whether wgpu rendering is active.
|
|
@@ -407,122 +199,106 @@ export class WasmGame {
|
|
|
407
199
|
return ret !== 0;
|
|
408
200
|
}
|
|
409
201
|
/**
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
* @param {string} url
|
|
413
|
-
* @returns {Promise<number>}
|
|
202
|
+
* @param {bigint} entity_bits
|
|
203
|
+
* @returns {boolean}
|
|
414
204
|
*/
|
|
415
|
-
|
|
416
|
-
const
|
|
417
|
-
|
|
418
|
-
const ret = wasm.wasmgame_load_texture(this.__wbg_ptr, ptr0, len0);
|
|
419
|
-
return ret;
|
|
205
|
+
has_transform2d(entity_bits) {
|
|
206
|
+
const ret = wasm.wasmgame_has_transform2d(this.__wbg_ptr, entity_bits);
|
|
207
|
+
return ret !== 0;
|
|
420
208
|
}
|
|
421
209
|
/**
|
|
422
|
-
* @
|
|
210
|
+
* @param {bigint} entity_bits
|
|
211
|
+
* @returns {boolean}
|
|
423
212
|
*/
|
|
424
|
-
|
|
425
|
-
const ret = wasm.
|
|
426
|
-
return ret
|
|
213
|
+
is_alive(entity_bits) {
|
|
214
|
+
const ret = wasm.wasmgame_is_alive(this.__wbg_ptr, entity_bits);
|
|
215
|
+
return ret !== 0;
|
|
427
216
|
}
|
|
428
217
|
/**
|
|
429
|
-
* @
|
|
218
|
+
* @param {number} key_code
|
|
219
|
+
* @returns {boolean}
|
|
430
220
|
*/
|
|
431
|
-
|
|
432
|
-
const ret = wasm.
|
|
433
|
-
return ret
|
|
221
|
+
is_key_just_pressed(key_code) {
|
|
222
|
+
const ret = wasm.wasmgame_is_key_just_pressed(this.__wbg_ptr, key_code);
|
|
223
|
+
return ret !== 0;
|
|
434
224
|
}
|
|
435
225
|
/**
|
|
436
226
|
* @param {number} key_code
|
|
437
227
|
* @returns {boolean}
|
|
438
228
|
*/
|
|
439
|
-
|
|
440
|
-
const ret = wasm.
|
|
229
|
+
is_key_just_released(key_code) {
|
|
230
|
+
const ret = wasm.wasmgame_is_key_just_released(this.__wbg_ptr, key_code);
|
|
441
231
|
return ret !== 0;
|
|
442
232
|
}
|
|
443
233
|
/**
|
|
444
|
-
* @param {
|
|
445
|
-
* @
|
|
446
|
-
* @param {number} py
|
|
447
|
-
* @param {number} rotation
|
|
448
|
-
* @param {number} sx
|
|
449
|
-
* @param {number} sy
|
|
450
|
-
*/
|
|
451
|
-
add_transform2d(entity_bits, px, py, rotation, sx, sy) {
|
|
452
|
-
wasm.wasmgame_add_transform2d(this.__wbg_ptr, entity_bits, px, py, rotation, sx, sy);
|
|
453
|
-
}
|
|
454
|
-
/**
|
|
455
|
-
* @param {number} handle
|
|
456
|
-
*/
|
|
457
|
-
destroy_texture(handle) {
|
|
458
|
-
wasm.wasmgame_destroy_texture(this.__wbg_ptr, handle);
|
|
459
|
-
}
|
|
460
|
-
/**
|
|
461
|
-
* @param {bigint} entity_bits
|
|
462
|
-
* @returns {WasmTransform2D | undefined}
|
|
234
|
+
* @param {number} key_code
|
|
235
|
+
* @returns {boolean}
|
|
463
236
|
*/
|
|
464
|
-
|
|
465
|
-
const ret = wasm.
|
|
466
|
-
return ret
|
|
237
|
+
is_key_pressed(key_code) {
|
|
238
|
+
const ret = wasm.wasmgame_is_key_pressed(this.__wbg_ptr, key_code);
|
|
239
|
+
return ret !== 0;
|
|
467
240
|
}
|
|
468
241
|
/**
|
|
469
|
-
* @param {
|
|
242
|
+
* @param {number} button
|
|
470
243
|
* @returns {boolean}
|
|
471
244
|
*/
|
|
472
|
-
|
|
473
|
-
const ret = wasm.
|
|
245
|
+
is_mouse_button_just_pressed(button) {
|
|
246
|
+
const ret = wasm.wasmgame_is_mouse_button_just_pressed(this.__wbg_ptr, button);
|
|
474
247
|
return ret !== 0;
|
|
475
248
|
}
|
|
476
249
|
/**
|
|
477
|
-
*
|
|
478
|
-
* @
|
|
479
|
-
* @param {number} height
|
|
250
|
+
* @param {number} button
|
|
251
|
+
* @returns {boolean}
|
|
480
252
|
*/
|
|
481
|
-
|
|
482
|
-
wasm.
|
|
253
|
+
is_mouse_button_pressed(button) {
|
|
254
|
+
const ret = wasm.wasmgame_is_mouse_button_pressed(this.__wbg_ptr, button);
|
|
255
|
+
return ret !== 0;
|
|
483
256
|
}
|
|
484
257
|
/**
|
|
485
|
-
*
|
|
486
|
-
* the
|
|
487
|
-
* @param {
|
|
488
|
-
* @
|
|
489
|
-
* @param {number} b
|
|
490
|
-
* @param {number} a
|
|
258
|
+
* Loads a texture from a URL. Returns the texture handle (1-based;
|
|
259
|
+
* 0 is reserved for the white fallback texture used by draw_quad).
|
|
260
|
+
* @param {string} url
|
|
261
|
+
* @returns {Promise<number>}
|
|
491
262
|
*/
|
|
492
|
-
|
|
493
|
-
|
|
263
|
+
load_texture(url) {
|
|
264
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
265
|
+
const len0 = WASM_VECTOR_LEN;
|
|
266
|
+
const ret = wasm.wasmgame_load_texture(this.__wbg_ptr, ptr0, len0);
|
|
267
|
+
return ret;
|
|
494
268
|
}
|
|
495
269
|
/**
|
|
496
|
-
* @
|
|
497
|
-
* @param {number} px
|
|
498
|
-
* @param {number} py
|
|
499
|
-
* @param {number} rotation
|
|
500
|
-
* @param {number} sx
|
|
501
|
-
* @param {number} sy
|
|
270
|
+
* @returns {number}
|
|
502
271
|
*/
|
|
503
|
-
|
|
504
|
-
wasm.
|
|
272
|
+
mouse_x() {
|
|
273
|
+
const ret = wasm.wasmgame_mouse_x(this.__wbg_ptr);
|
|
274
|
+
return ret;
|
|
505
275
|
}
|
|
506
276
|
/**
|
|
507
|
-
* @
|
|
508
|
-
* @param {number} dy
|
|
277
|
+
* @returns {number}
|
|
509
278
|
*/
|
|
510
|
-
|
|
511
|
-
wasm.
|
|
279
|
+
mouse_y() {
|
|
280
|
+
const ret = wasm.wasmgame_mouse_y(this.__wbg_ptr);
|
|
281
|
+
return ret;
|
|
512
282
|
}
|
|
513
283
|
/**
|
|
514
|
-
* Creates a game instance
|
|
515
|
-
* @param {HTMLCanvasElement} canvas
|
|
284
|
+
* Creates a new game instance without rendering (ECS-only mode).
|
|
516
285
|
* @param {number} width
|
|
517
286
|
* @param {number} height
|
|
518
287
|
* @param {string} title
|
|
519
|
-
* @returns {Promise<WasmGame>}
|
|
520
288
|
*/
|
|
521
|
-
|
|
289
|
+
constructor(width, height, title) {
|
|
522
290
|
const ptr0 = passStringToWasm0(title, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
523
291
|
const len0 = WASM_VECTOR_LEN;
|
|
524
|
-
const ret = wasm.
|
|
525
|
-
|
|
292
|
+
const ret = wasm.wasmgame_new(width, height, ptr0, len0);
|
|
293
|
+
this.__wbg_ptr = ret >>> 0;
|
|
294
|
+
WasmGameFinalization.register(this, this.__wbg_ptr, this);
|
|
295
|
+
return this;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* @param {number} key_code
|
|
299
|
+
*/
|
|
300
|
+
press_key(key_code) {
|
|
301
|
+
wasm.wasmgame_press_key(this.__wbg_ptr, key_code);
|
|
526
302
|
}
|
|
527
303
|
/**
|
|
528
304
|
* @param {number} button
|
|
@@ -530,6 +306,26 @@ export class WasmGame {
|
|
|
530
306
|
press_mouse_button(button) {
|
|
531
307
|
wasm.wasmgame_press_mouse_button(this.__wbg_ptr, button);
|
|
532
308
|
}
|
|
309
|
+
/**
|
|
310
|
+
* @param {number} key_code
|
|
311
|
+
*/
|
|
312
|
+
release_key(key_code) {
|
|
313
|
+
wasm.wasmgame_release_key(this.__wbg_ptr, key_code);
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* @param {number} button
|
|
317
|
+
*/
|
|
318
|
+
release_mouse_button(button) {
|
|
319
|
+
wasm.wasmgame_release_mouse_button(this.__wbg_ptr, button);
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* @param {bigint} entity_bits
|
|
323
|
+
* @returns {boolean}
|
|
324
|
+
*/
|
|
325
|
+
remove_name(entity_bits) {
|
|
326
|
+
const ret = wasm.wasmgame_remove_name(this.__wbg_ptr, entity_bits);
|
|
327
|
+
return ret !== 0;
|
|
328
|
+
}
|
|
533
329
|
/**
|
|
534
330
|
* @param {bigint} entity_bits
|
|
535
331
|
* @returns {boolean}
|
|
@@ -539,70 +335,72 @@ export class WasmGame {
|
|
|
539
335
|
return ret !== 0;
|
|
540
336
|
}
|
|
541
337
|
/**
|
|
542
|
-
* @
|
|
543
|
-
* @param {number} y
|
|
338
|
+
* @returns {number}
|
|
544
339
|
*/
|
|
545
|
-
|
|
546
|
-
wasm.
|
|
340
|
+
scroll_dx() {
|
|
341
|
+
const ret = wasm.wasmgame_scroll_dx(this.__wbg_ptr);
|
|
342
|
+
return ret;
|
|
547
343
|
}
|
|
548
344
|
/**
|
|
549
|
-
* @
|
|
550
|
-
* @returns {boolean}
|
|
345
|
+
* @returns {number}
|
|
551
346
|
*/
|
|
552
|
-
|
|
553
|
-
const ret = wasm.
|
|
554
|
-
return ret
|
|
347
|
+
scroll_dy() {
|
|
348
|
+
const ret = wasm.wasmgame_scroll_dy(this.__wbg_ptr);
|
|
349
|
+
return ret;
|
|
555
350
|
}
|
|
556
351
|
/**
|
|
557
|
-
*
|
|
558
|
-
* @
|
|
352
|
+
* Reconfigures the wgpu surface after a canvas resize.
|
|
353
|
+
* @param {number} width
|
|
354
|
+
* @param {number} height
|
|
559
355
|
*/
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
return ret !== 0;
|
|
356
|
+
set_canvas_size(width, height) {
|
|
357
|
+
wasm.wasmgame_set_canvas_size(this.__wbg_ptr, width, height);
|
|
563
358
|
}
|
|
564
359
|
/**
|
|
565
|
-
*
|
|
360
|
+
* Sets the background clear color (called before begin_frame or via
|
|
361
|
+
* the TypeScript SDK's beginFrame parameters).
|
|
362
|
+
* @param {number} r
|
|
363
|
+
* @param {number} g
|
|
364
|
+
* @param {number} b
|
|
365
|
+
* @param {number} a
|
|
566
366
|
*/
|
|
567
|
-
|
|
568
|
-
wasm.
|
|
367
|
+
set_clear_color(r, g, b, a) {
|
|
368
|
+
wasm.wasmgame_set_clear_color(this.__wbg_ptr, r, g, b, a);
|
|
569
369
|
}
|
|
570
370
|
/**
|
|
571
|
-
* @param {number}
|
|
572
|
-
* @
|
|
371
|
+
* @param {number} x
|
|
372
|
+
* @param {number} y
|
|
573
373
|
*/
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
return ret !== 0;
|
|
374
|
+
set_mouse_position(x, y) {
|
|
375
|
+
wasm.wasmgame_set_mouse_position(this.__wbg_ptr, x, y);
|
|
577
376
|
}
|
|
578
377
|
/**
|
|
579
|
-
* @param {
|
|
580
|
-
* @
|
|
378
|
+
* @param {bigint} entity_bits
|
|
379
|
+
* @param {number} px
|
|
380
|
+
* @param {number} py
|
|
381
|
+
* @param {number} rotation
|
|
382
|
+
* @param {number} sx
|
|
383
|
+
* @param {number} sy
|
|
581
384
|
*/
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
return ret !== 0;
|
|
385
|
+
set_transform2d(entity_bits, px, py, rotation, sx, sy) {
|
|
386
|
+
wasm.wasmgame_set_transform2d(this.__wbg_ptr, entity_bits, px, py, rotation, sx, sy);
|
|
585
387
|
}
|
|
586
388
|
/**
|
|
587
|
-
* @
|
|
389
|
+
* @param {number} count
|
|
390
|
+
* @returns {BigUint64Array}
|
|
588
391
|
*/
|
|
589
|
-
|
|
590
|
-
const ret = wasm.
|
|
591
|
-
|
|
392
|
+
spawn_batch(count) {
|
|
393
|
+
const ret = wasm.wasmgame_spawn_batch(this.__wbg_ptr, count);
|
|
394
|
+
var v1 = getArrayU64FromWasm0(ret[0], ret[1]).slice();
|
|
395
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 8, 8);
|
|
396
|
+
return v1;
|
|
592
397
|
}
|
|
593
398
|
/**
|
|
594
|
-
*
|
|
595
|
-
* @param {number} width
|
|
596
|
-
* @param {number} height
|
|
597
|
-
* @param {string} title
|
|
399
|
+
* @returns {bigint}
|
|
598
400
|
*/
|
|
599
|
-
|
|
600
|
-
const
|
|
601
|
-
|
|
602
|
-
const ret = wasm.wasmgame_new(width, height, ptr0, len0);
|
|
603
|
-
this.__wbg_ptr = ret >>> 0;
|
|
604
|
-
WasmGameFinalization.register(this, this.__wbg_ptr, this);
|
|
605
|
-
return this;
|
|
401
|
+
spawn_empty() {
|
|
402
|
+
const ret = wasm.wasmgame_spawn_empty(this.__wbg_ptr);
|
|
403
|
+
return BigInt.asUintN(64, ret);
|
|
606
404
|
}
|
|
607
405
|
/**
|
|
608
406
|
* @returns {string}
|
|
@@ -619,101 +417,26 @@ export class WasmGame {
|
|
|
619
417
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
620
418
|
}
|
|
621
419
|
}
|
|
622
|
-
/**
|
|
623
|
-
* @param {bigint} entity_bits
|
|
624
|
-
* @returns {boolean}
|
|
625
|
-
*/
|
|
626
|
-
despawn(entity_bits) {
|
|
627
|
-
const ret = wasm.wasmgame_despawn(this.__wbg_ptr, entity_bits);
|
|
628
|
-
return ret !== 0;
|
|
629
|
-
}
|
|
630
420
|
/**
|
|
631
421
|
* @returns {number}
|
|
632
422
|
*/
|
|
633
|
-
|
|
634
|
-
const ret = wasm.
|
|
423
|
+
get total_time() {
|
|
424
|
+
const ret = wasm.wasmgame_total_time(this.__wbg_ptr);
|
|
635
425
|
return ret;
|
|
636
426
|
}
|
|
637
427
|
/**
|
|
638
428
|
* @returns {number}
|
|
639
429
|
*/
|
|
640
|
-
|
|
641
|
-
const ret = wasm.
|
|
642
|
-
return ret;
|
|
643
|
-
}
|
|
644
|
-
/**
|
|
645
|
-
* @param {bigint} entity_bits
|
|
646
|
-
* @param {string} name
|
|
647
|
-
*/
|
|
648
|
-
add_name(entity_bits, name) {
|
|
649
|
-
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
650
|
-
const len0 = WASM_VECTOR_LEN;
|
|
651
|
-
wasm.wasmgame_add_name(this.__wbg_ptr, entity_bits, ptr0, len0);
|
|
430
|
+
get window_height() {
|
|
431
|
+
const ret = wasm.wasmgame_window_height(this.__wbg_ptr);
|
|
432
|
+
return ret >>> 0;
|
|
652
433
|
}
|
|
653
434
|
/**
|
|
654
|
-
* @
|
|
655
|
-
* @returns {string | undefined}
|
|
435
|
+
* @returns {number}
|
|
656
436
|
*/
|
|
657
|
-
|
|
658
|
-
const ret = wasm.
|
|
659
|
-
|
|
660
|
-
if (ret[0] !== 0) {
|
|
661
|
-
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
662
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
663
|
-
}
|
|
664
|
-
return v1;
|
|
665
|
-
}
|
|
666
|
-
/**
|
|
667
|
-
* @param {bigint} entity_bits
|
|
668
|
-
* @returns {boolean}
|
|
669
|
-
*/
|
|
670
|
-
has_name(entity_bits) {
|
|
671
|
-
const ret = wasm.wasmgame_has_name(this.__wbg_ptr, entity_bits);
|
|
672
|
-
return ret !== 0;
|
|
673
|
-
}
|
|
674
|
-
/**
|
|
675
|
-
* @param {bigint} entity_bits
|
|
676
|
-
* @returns {boolean}
|
|
677
|
-
*/
|
|
678
|
-
is_alive(entity_bits) {
|
|
679
|
-
const ret = wasm.wasmgame_is_alive(this.__wbg_ptr, entity_bits);
|
|
680
|
-
return ret !== 0;
|
|
681
|
-
}
|
|
682
|
-
/**
|
|
683
|
-
* @param {number} x
|
|
684
|
-
* @param {number} y
|
|
685
|
-
* @param {number} w
|
|
686
|
-
* @param {number} h
|
|
687
|
-
* @param {number} r
|
|
688
|
-
* @param {number} g
|
|
689
|
-
* @param {number} b
|
|
690
|
-
* @param {number} a
|
|
691
|
-
*/
|
|
692
|
-
draw_quad(x, y, w, h, r, g, b, a) {
|
|
693
|
-
wasm.wasmgame_draw_quad(this.__wbg_ptr, x, y, w, h, r, g, b, a);
|
|
694
|
-
}
|
|
695
|
-
end_frame() {
|
|
696
|
-
wasm.wasmgame_end_frame(this.__wbg_ptr);
|
|
697
|
-
}
|
|
698
|
-
/**
|
|
699
|
-
* @param {number} key_code
|
|
700
|
-
*/
|
|
701
|
-
press_key(key_code) {
|
|
702
|
-
wasm.wasmgame_press_key(this.__wbg_ptr, key_code);
|
|
703
|
-
}
|
|
704
|
-
/**
|
|
705
|
-
* @returns {number}
|
|
706
|
-
*/
|
|
707
|
-
scroll_dx() {
|
|
708
|
-
const ret = wasm.wasmgame_scroll_dx(this.__wbg_ptr);
|
|
709
|
-
return ret;
|
|
710
|
-
}
|
|
711
|
-
/**
|
|
712
|
-
* @returns {number}
|
|
713
|
-
*/
|
|
714
|
-
scroll_dy() {
|
|
715
|
-
const ret = wasm.wasmgame_scroll_dy(this.__wbg_ptr);
|
|
716
|
-
return ret;
|
|
437
|
+
get window_width() {
|
|
438
|
+
const ret = wasm.wasmgame_window_width(this.__wbg_ptr);
|
|
439
|
+
return ret >>> 0;
|
|
717
440
|
}
|
|
718
441
|
}
|
|
719
442
|
if (Symbol.dispose) WasmGame.prototype[Symbol.dispose] = WasmGame.prototype.free;
|
|
@@ -744,56 +467,56 @@ export class WasmTransform2D {
|
|
|
744
467
|
return ret;
|
|
745
468
|
}
|
|
746
469
|
/**
|
|
747
|
-
* @
|
|
470
|
+
* @returns {number}
|
|
748
471
|
*/
|
|
749
|
-
|
|
750
|
-
wasm.
|
|
472
|
+
get position_y() {
|
|
473
|
+
const ret = wasm.__wbg_get_wasmtransform2d_position_y(this.__wbg_ptr);
|
|
474
|
+
return ret;
|
|
751
475
|
}
|
|
752
476
|
/**
|
|
753
477
|
* @returns {number}
|
|
754
478
|
*/
|
|
755
|
-
get
|
|
756
|
-
const ret = wasm.
|
|
479
|
+
get rotation() {
|
|
480
|
+
const ret = wasm.__wbg_get_wasmtransform2d_rotation(this.__wbg_ptr);
|
|
757
481
|
return ret;
|
|
758
482
|
}
|
|
759
483
|
/**
|
|
760
|
-
* @
|
|
484
|
+
* @returns {number}
|
|
761
485
|
*/
|
|
762
|
-
|
|
763
|
-
wasm.
|
|
486
|
+
get scale_x() {
|
|
487
|
+
const ret = wasm.__wbg_get_wasmtransform2d_scale_x(this.__wbg_ptr);
|
|
488
|
+
return ret;
|
|
764
489
|
}
|
|
765
490
|
/**
|
|
766
491
|
* @returns {number}
|
|
767
492
|
*/
|
|
768
|
-
get
|
|
769
|
-
const ret = wasm.
|
|
493
|
+
get scale_y() {
|
|
494
|
+
const ret = wasm.__wbg_get_wasmtransform2d_scale_y(this.__wbg_ptr);
|
|
770
495
|
return ret;
|
|
771
496
|
}
|
|
772
497
|
/**
|
|
773
498
|
* @param {number} arg0
|
|
774
499
|
*/
|
|
775
|
-
set
|
|
776
|
-
wasm.
|
|
500
|
+
set position_x(arg0) {
|
|
501
|
+
wasm.__wbg_set_wasmtransform2d_position_x(this.__wbg_ptr, arg0);
|
|
777
502
|
}
|
|
778
503
|
/**
|
|
779
|
-
* @
|
|
504
|
+
* @param {number} arg0
|
|
780
505
|
*/
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
return ret;
|
|
506
|
+
set position_y(arg0) {
|
|
507
|
+
wasm.__wbg_set_wasmtransform2d_position_y(this.__wbg_ptr, arg0);
|
|
784
508
|
}
|
|
785
509
|
/**
|
|
786
510
|
* @param {number} arg0
|
|
787
511
|
*/
|
|
788
|
-
set
|
|
789
|
-
wasm.
|
|
512
|
+
set rotation(arg0) {
|
|
513
|
+
wasm.__wbg_set_wasmtransform2d_rotation(this.__wbg_ptr, arg0);
|
|
790
514
|
}
|
|
791
515
|
/**
|
|
792
|
-
* @
|
|
516
|
+
* @param {number} arg0
|
|
793
517
|
*/
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
return ret;
|
|
518
|
+
set scale_x(arg0) {
|
|
519
|
+
wasm.__wbg_set_wasmtransform2d_scale_x(this.__wbg_ptr, arg0);
|
|
797
520
|
}
|
|
798
521
|
/**
|
|
799
522
|
* @param {number} arg0
|
|
@@ -804,946 +527,1288 @@ export class WasmTransform2D {
|
|
|
804
527
|
}
|
|
805
528
|
if (Symbol.dispose) WasmTransform2D.prototype[Symbol.dispose] = WasmTransform2D.prototype.free;
|
|
806
529
|
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
530
|
+
function __wbg_get_imports() {
|
|
531
|
+
const import0 = {
|
|
532
|
+
__proto__: null,
|
|
533
|
+
__wbg_Window_5bb26bc95d054384: function(arg0) {
|
|
534
|
+
const ret = arg0.Window;
|
|
535
|
+
return ret;
|
|
536
|
+
},
|
|
537
|
+
__wbg_WorkerGlobalScope_866db36eb93893fe: function(arg0) {
|
|
538
|
+
const ret = arg0.WorkerGlobalScope;
|
|
539
|
+
return ret;
|
|
540
|
+
},
|
|
541
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
542
|
+
const ret = debugString(arg1);
|
|
543
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
544
|
+
const len1 = WASM_VECTOR_LEN;
|
|
545
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
546
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
547
|
+
},
|
|
548
|
+
__wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
|
|
549
|
+
const ret = typeof(arg0) === 'function';
|
|
550
|
+
return ret;
|
|
551
|
+
},
|
|
552
|
+
__wbg___wbindgen_is_null_0b605fc6b167c56f: function(arg0) {
|
|
553
|
+
const ret = arg0 === null;
|
|
554
|
+
return ret;
|
|
555
|
+
},
|
|
556
|
+
__wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
|
|
557
|
+
const ret = arg0 === undefined;
|
|
558
|
+
return ret;
|
|
559
|
+
},
|
|
560
|
+
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
561
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
562
|
+
},
|
|
563
|
+
__wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
|
|
564
|
+
arg0._wbg_cb_unref();
|
|
565
|
+
},
|
|
566
|
+
__wbg_arrayBuffer_eb8e9ca620af2a19: function() { return handleError(function (arg0) {
|
|
567
|
+
const ret = arg0.arrayBuffer();
|
|
568
|
+
return ret;
|
|
569
|
+
}, arguments); },
|
|
570
|
+
__wbg_beginRenderPass_b6be55dca13d3752: function() { return handleError(function (arg0, arg1) {
|
|
571
|
+
const ret = arg0.beginRenderPass(arg1);
|
|
572
|
+
return ret;
|
|
573
|
+
}, arguments); },
|
|
574
|
+
__wbg_buffer_60b8043cd926067d: function(arg0) {
|
|
575
|
+
const ret = arg0.buffer;
|
|
576
|
+
return ret;
|
|
577
|
+
},
|
|
578
|
+
__wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
579
|
+
const ret = arg0.call(arg1, arg2);
|
|
580
|
+
return ret;
|
|
581
|
+
}, arguments); },
|
|
582
|
+
__wbg_configure_3800e43cc1d4df6c: function() { return handleError(function (arg0, arg1) {
|
|
583
|
+
arg0.configure(arg1);
|
|
584
|
+
}, arguments); },
|
|
585
|
+
__wbg_createBindGroupLayout_38abd4e4c5dded7c: function() { return handleError(function (arg0, arg1) {
|
|
586
|
+
const ret = arg0.createBindGroupLayout(arg1);
|
|
587
|
+
return ret;
|
|
588
|
+
}, arguments); },
|
|
589
|
+
__wbg_createBindGroup_dd602247ba7de53f: function(arg0, arg1) {
|
|
590
|
+
const ret = arg0.createBindGroup(arg1);
|
|
591
|
+
return ret;
|
|
592
|
+
},
|
|
593
|
+
__wbg_createBuffer_3fce72a987f07f6a: function() { return handleError(function (arg0, arg1) {
|
|
594
|
+
const ret = arg0.createBuffer(arg1);
|
|
595
|
+
return ret;
|
|
596
|
+
}, arguments); },
|
|
597
|
+
__wbg_createCommandEncoder_9b0d0f644b01b53d: function(arg0, arg1) {
|
|
598
|
+
const ret = arg0.createCommandEncoder(arg1);
|
|
599
|
+
return ret;
|
|
600
|
+
},
|
|
601
|
+
__wbg_createPipelineLayout_10a02d78a5e801aa: function(arg0, arg1) {
|
|
602
|
+
const ret = arg0.createPipelineLayout(arg1);
|
|
603
|
+
return ret;
|
|
604
|
+
},
|
|
605
|
+
__wbg_createRenderPipeline_f33944b9347badf7: function() { return handleError(function (arg0, arg1) {
|
|
606
|
+
const ret = arg0.createRenderPipeline(arg1);
|
|
607
|
+
return ret;
|
|
608
|
+
}, arguments); },
|
|
609
|
+
__wbg_createSampler_dfafeaada8a50f77: function(arg0, arg1) {
|
|
610
|
+
const ret = arg0.createSampler(arg1);
|
|
611
|
+
return ret;
|
|
612
|
+
},
|
|
613
|
+
__wbg_createShaderModule_c951549f9d218b6a: function(arg0, arg1) {
|
|
614
|
+
const ret = arg0.createShaderModule(arg1);
|
|
615
|
+
return ret;
|
|
616
|
+
},
|
|
617
|
+
__wbg_createTexture_7de0f1ac17578a0c: function() { return handleError(function (arg0, arg1) {
|
|
618
|
+
const ret = arg0.createTexture(arg1);
|
|
619
|
+
return ret;
|
|
620
|
+
}, arguments); },
|
|
621
|
+
__wbg_createView_ad451ea74ed4172f: function() { return handleError(function (arg0, arg1) {
|
|
622
|
+
const ret = arg0.createView(arg1);
|
|
623
|
+
return ret;
|
|
624
|
+
}, arguments); },
|
|
625
|
+
__wbg_document_c0320cd4183c6d9b: function(arg0) {
|
|
626
|
+
const ret = arg0.document;
|
|
627
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
628
|
+
},
|
|
629
|
+
__wbg_drawIndexed_a9f3f3b50747fecf: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
630
|
+
arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
|
|
631
|
+
},
|
|
632
|
+
__wbg_end_39838302f918fcd7: function(arg0) {
|
|
633
|
+
arg0.end();
|
|
634
|
+
},
|
|
635
|
+
__wbg_error_8d9a8e04cd1d3588: function(arg0) {
|
|
636
|
+
console.error(arg0);
|
|
637
|
+
},
|
|
638
|
+
__wbg_fetch_e261f234f8b50660: function(arg0, arg1, arg2) {
|
|
639
|
+
const ret = arg0.fetch(getStringFromWasm0(arg1, arg2));
|
|
640
|
+
return ret;
|
|
641
|
+
},
|
|
642
|
+
__wbg_finish_1f441b2d9fcf60d0: function(arg0, arg1) {
|
|
643
|
+
const ret = arg0.finish(arg1);
|
|
644
|
+
return ret;
|
|
645
|
+
},
|
|
646
|
+
__wbg_finish_d4f7f2d108f44fc0: function(arg0) {
|
|
647
|
+
const ret = arg0.finish();
|
|
648
|
+
return ret;
|
|
649
|
+
},
|
|
650
|
+
__wbg_getContext_a9236f98f1f7fe7c: function() { return handleError(function (arg0, arg1, arg2) {
|
|
651
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
652
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
653
|
+
}, arguments); },
|
|
654
|
+
__wbg_getContext_f04bf8f22dcb2d53: function() { return handleError(function (arg0, arg1, arg2) {
|
|
655
|
+
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
656
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
657
|
+
}, arguments); },
|
|
658
|
+
__wbg_getCurrentTexture_66ae9639eac28f8b: function() { return handleError(function (arg0) {
|
|
659
|
+
const ret = arg0.getCurrentTexture();
|
|
660
|
+
return ret;
|
|
661
|
+
}, arguments); },
|
|
662
|
+
__wbg_getMappedRange_1197a8c58eb0add9: function() { return handleError(function (arg0, arg1, arg2) {
|
|
663
|
+
const ret = arg0.getMappedRange(arg1, arg2);
|
|
664
|
+
return ret;
|
|
665
|
+
}, arguments); },
|
|
666
|
+
__wbg_getPreferredCanvasFormat_2a0a2628959bb15a: function(arg0) {
|
|
667
|
+
const ret = arg0.getPreferredCanvasFormat();
|
|
668
|
+
return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 96) - 1;
|
|
669
|
+
},
|
|
670
|
+
__wbg_get_c7546417fb0bec10: function(arg0, arg1) {
|
|
671
|
+
const ret = arg0[arg1 >>> 0];
|
|
672
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
673
|
+
},
|
|
674
|
+
__wbg_gpu_0d39e2c1a52c373e: function(arg0) {
|
|
675
|
+
const ret = arg0.gpu;
|
|
676
|
+
return ret;
|
|
677
|
+
},
|
|
678
|
+
__wbg_instanceof_GpuAdapter_b2c1300e425af95c: function(arg0) {
|
|
679
|
+
let result;
|
|
812
680
|
try {
|
|
813
|
-
|
|
814
|
-
} catch (
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
818
|
-
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);
|
|
819
|
-
|
|
820
|
-
} else {
|
|
821
|
-
throw e;
|
|
822
|
-
}
|
|
681
|
+
result = arg0 instanceof GPUAdapter;
|
|
682
|
+
} catch (_) {
|
|
683
|
+
result = false;
|
|
823
684
|
}
|
|
824
|
-
|
|
685
|
+
const ret = result;
|
|
686
|
+
return ret;
|
|
687
|
+
},
|
|
688
|
+
__wbg_instanceof_GpuCanvasContext_c9b75b4b7dc7555e: function(arg0) {
|
|
689
|
+
let result;
|
|
690
|
+
try {
|
|
691
|
+
result = arg0 instanceof GPUCanvasContext;
|
|
692
|
+
} catch (_) {
|
|
693
|
+
result = false;
|
|
694
|
+
}
|
|
695
|
+
const ret = result;
|
|
696
|
+
return ret;
|
|
697
|
+
},
|
|
698
|
+
__wbg_instanceof_Response_9b4d9fd451e051b1: function(arg0) {
|
|
699
|
+
let result;
|
|
700
|
+
try {
|
|
701
|
+
result = arg0 instanceof Response;
|
|
702
|
+
} catch (_) {
|
|
703
|
+
result = false;
|
|
704
|
+
}
|
|
705
|
+
const ret = result;
|
|
706
|
+
return ret;
|
|
707
|
+
},
|
|
708
|
+
__wbg_instanceof_Window_23e677d2c6843922: function(arg0) {
|
|
709
|
+
let result;
|
|
710
|
+
try {
|
|
711
|
+
result = arg0 instanceof Window;
|
|
712
|
+
} catch (_) {
|
|
713
|
+
result = false;
|
|
714
|
+
}
|
|
715
|
+
const ret = result;
|
|
716
|
+
return ret;
|
|
717
|
+
},
|
|
718
|
+
__wbg_label_dfb771c49b8a7920: function(arg0, arg1) {
|
|
719
|
+
const ret = arg1.label;
|
|
720
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
721
|
+
const len1 = WASM_VECTOR_LEN;
|
|
722
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
723
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
724
|
+
},
|
|
725
|
+
__wbg_length_ea16607d7b61445b: function(arg0) {
|
|
726
|
+
const ret = arg0.length;
|
|
727
|
+
return ret;
|
|
728
|
+
},
|
|
729
|
+
__wbg_mapAsync_7767a9f33865861e: function(arg0, arg1, arg2, arg3) {
|
|
730
|
+
const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
|
|
731
|
+
return ret;
|
|
732
|
+
},
|
|
733
|
+
__wbg_navigator_583ffd4fc14c0f7a: function(arg0) {
|
|
734
|
+
const ret = arg0.navigator;
|
|
735
|
+
return ret;
|
|
736
|
+
},
|
|
737
|
+
__wbg_navigator_9cebf56f28aa719b: function(arg0) {
|
|
738
|
+
const ret = arg0.navigator;
|
|
739
|
+
return ret;
|
|
740
|
+
},
|
|
741
|
+
__wbg_new_5f486cdf45a04d78: function(arg0) {
|
|
742
|
+
const ret = new Uint8Array(arg0);
|
|
743
|
+
return ret;
|
|
744
|
+
},
|
|
745
|
+
__wbg_new_ab79df5bd7c26067: function() {
|
|
746
|
+
const ret = new Object();
|
|
747
|
+
return ret;
|
|
748
|
+
},
|
|
749
|
+
__wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
|
|
750
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
751
|
+
return ret;
|
|
752
|
+
},
|
|
753
|
+
__wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
|
|
754
|
+
try {
|
|
755
|
+
var state0 = {a: arg0, b: arg1};
|
|
756
|
+
var cb0 = (arg0, arg1) => {
|
|
757
|
+
const a = state0.a;
|
|
758
|
+
state0.a = 0;
|
|
759
|
+
try {
|
|
760
|
+
return wasm_bindgen__convert__closures_____invoke__h40c8324309a93f8a(a, state0.b, arg0, arg1);
|
|
761
|
+
} finally {
|
|
762
|
+
state0.a = a;
|
|
763
|
+
}
|
|
764
|
+
};
|
|
765
|
+
const ret = new Promise(cb0);
|
|
766
|
+
return ret;
|
|
767
|
+
} finally {
|
|
768
|
+
state0.a = state0.b = 0;
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
__wbg_new_typed_bccac67128ed885a: function() {
|
|
772
|
+
const ret = new Array();
|
|
773
|
+
return ret;
|
|
774
|
+
},
|
|
775
|
+
__wbg_new_with_byte_offset_and_length_b2ec5bf7b2f35743: function(arg0, arg1, arg2) {
|
|
776
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
777
|
+
return ret;
|
|
778
|
+
},
|
|
779
|
+
__wbg_ok_7ec8b94facac7704: function(arg0) {
|
|
780
|
+
const ret = arg0.ok;
|
|
781
|
+
return ret;
|
|
782
|
+
},
|
|
783
|
+
__wbg_onSubmittedWorkDone_a33e32762de21b3d: function(arg0) {
|
|
784
|
+
const ret = arg0.onSubmittedWorkDone();
|
|
785
|
+
return ret;
|
|
786
|
+
},
|
|
787
|
+
__wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
|
|
788
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
789
|
+
},
|
|
790
|
+
__wbg_push_e87b0e732085a946: function(arg0, arg1) {
|
|
791
|
+
const ret = arg0.push(arg1);
|
|
792
|
+
return ret;
|
|
793
|
+
},
|
|
794
|
+
__wbg_querySelectorAll_ccbf0696a1c6fed8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
795
|
+
const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
|
|
796
|
+
return ret;
|
|
797
|
+
}, arguments); },
|
|
798
|
+
__wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
|
|
799
|
+
const ret = arg0.queueMicrotask;
|
|
800
|
+
return ret;
|
|
801
|
+
},
|
|
802
|
+
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
803
|
+
queueMicrotask(arg0);
|
|
804
|
+
},
|
|
805
|
+
__wbg_queue_451a2aa83c786578: function(arg0) {
|
|
806
|
+
const ret = arg0.queue;
|
|
807
|
+
return ret;
|
|
808
|
+
},
|
|
809
|
+
__wbg_requestAdapter_3cddf363b0bc9baf: function(arg0, arg1) {
|
|
810
|
+
const ret = arg0.requestAdapter(arg1);
|
|
811
|
+
return ret;
|
|
812
|
+
},
|
|
813
|
+
__wbg_requestDevice_7dd355306bacbcd8: function(arg0, arg1) {
|
|
814
|
+
const ret = arg0.requestDevice(arg1);
|
|
815
|
+
return ret;
|
|
816
|
+
},
|
|
817
|
+
__wbg_resolve_ae8d83246e5bcc12: function(arg0) {
|
|
818
|
+
const ret = Promise.resolve(arg0);
|
|
819
|
+
return ret;
|
|
820
|
+
},
|
|
821
|
+
__wbg_setBindGroup_24fcfe125e006dd4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
822
|
+
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
823
|
+
}, arguments); },
|
|
824
|
+
__wbg_setBindGroup_3fecca142efa3bcf: function(arg0, arg1, arg2) {
|
|
825
|
+
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
826
|
+
},
|
|
827
|
+
__wbg_setIndexBuffer_b194910ae0ffcbf4: function(arg0, arg1, arg2, arg3, arg4) {
|
|
828
|
+
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
|
|
829
|
+
},
|
|
830
|
+
__wbg_setPipeline_fb3b65583e919c05: function(arg0, arg1) {
|
|
831
|
+
arg0.setPipeline(arg1);
|
|
832
|
+
},
|
|
833
|
+
__wbg_setVertexBuffer_9e822995adc29ff7: function(arg0, arg1, arg2, arg3, arg4) {
|
|
834
|
+
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
|
|
835
|
+
},
|
|
836
|
+
__wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
|
|
837
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
838
|
+
return ret;
|
|
839
|
+
}, arguments); },
|
|
840
|
+
__wbg_set_a_c6ed845ffb46afcc: function(arg0, arg1) {
|
|
841
|
+
arg0.a = arg1;
|
|
842
|
+
},
|
|
843
|
+
__wbg_set_access_9d39f60326d67278: function(arg0, arg1) {
|
|
844
|
+
arg0.access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
|
|
845
|
+
},
|
|
846
|
+
__wbg_set_address_mode_u_8c8aaf2ccebb3e8d: function(arg0, arg1) {
|
|
847
|
+
arg0.addressModeU = __wbindgen_enum_GpuAddressMode[arg1];
|
|
848
|
+
},
|
|
849
|
+
__wbg_set_address_mode_v_252818714ab5937f: function(arg0, arg1) {
|
|
850
|
+
arg0.addressModeV = __wbindgen_enum_GpuAddressMode[arg1];
|
|
851
|
+
},
|
|
852
|
+
__wbg_set_address_mode_w_d617929f92a5b8cc: function(arg0, arg1) {
|
|
853
|
+
arg0.addressModeW = __wbindgen_enum_GpuAddressMode[arg1];
|
|
854
|
+
},
|
|
855
|
+
__wbg_set_alpha_a3317d40d97c514e: function(arg0, arg1) {
|
|
856
|
+
arg0.alpha = arg1;
|
|
857
|
+
},
|
|
858
|
+
__wbg_set_alpha_mode_1ae7e0aa38a8eba8: function(arg0, arg1) {
|
|
859
|
+
arg0.alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
|
|
860
|
+
},
|
|
861
|
+
__wbg_set_alpha_to_coverage_enabled_0c11d91caea2b92d: function(arg0, arg1) {
|
|
862
|
+
arg0.alphaToCoverageEnabled = arg1 !== 0;
|
|
863
|
+
},
|
|
864
|
+
__wbg_set_array_layer_count_83a40d42f8858bba: function(arg0, arg1) {
|
|
865
|
+
arg0.arrayLayerCount = arg1 >>> 0;
|
|
866
|
+
},
|
|
867
|
+
__wbg_set_array_stride_34be696a5e66eb16: function(arg0, arg1) {
|
|
868
|
+
arg0.arrayStride = arg1;
|
|
869
|
+
},
|
|
870
|
+
__wbg_set_aspect_9d30d9ca40403001: function(arg0, arg1) {
|
|
871
|
+
arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
872
|
+
},
|
|
873
|
+
__wbg_set_aspect_f231ddb55e5c30eb: function(arg0, arg1) {
|
|
874
|
+
arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
875
|
+
},
|
|
876
|
+
__wbg_set_attributes_02005a0f12df5908: function(arg0, arg1) {
|
|
877
|
+
arg0.attributes = arg1;
|
|
878
|
+
},
|
|
879
|
+
__wbg_set_b_f55b6a25fa56cccd: function(arg0, arg1) {
|
|
880
|
+
arg0.b = arg1;
|
|
881
|
+
},
|
|
882
|
+
__wbg_set_base_array_layer_f8f8eb2d7bd5eb65: function(arg0, arg1) {
|
|
883
|
+
arg0.baseArrayLayer = arg1 >>> 0;
|
|
884
|
+
},
|
|
885
|
+
__wbg_set_base_mip_level_41735f9b982a26b8: function(arg0, arg1) {
|
|
886
|
+
arg0.baseMipLevel = arg1 >>> 0;
|
|
887
|
+
},
|
|
888
|
+
__wbg_set_beginning_of_pass_write_index_ff16e69caf566bee: function(arg0, arg1) {
|
|
889
|
+
arg0.beginningOfPassWriteIndex = arg1 >>> 0;
|
|
890
|
+
},
|
|
891
|
+
__wbg_set_bind_group_layouts_ddc70fed7170a2ee: function(arg0, arg1) {
|
|
892
|
+
arg0.bindGroupLayouts = arg1;
|
|
893
|
+
},
|
|
894
|
+
__wbg_set_binding_53105cd45cae6a03: function(arg0, arg1) {
|
|
895
|
+
arg0.binding = arg1 >>> 0;
|
|
896
|
+
},
|
|
897
|
+
__wbg_set_binding_d82fdc5364e5b0c5: function(arg0, arg1) {
|
|
898
|
+
arg0.binding = arg1 >>> 0;
|
|
899
|
+
},
|
|
900
|
+
__wbg_set_blend_00219e805977440c: function(arg0, arg1) {
|
|
901
|
+
arg0.blend = arg1;
|
|
902
|
+
},
|
|
903
|
+
__wbg_set_buffer_0c946e9b46823a5c: function(arg0, arg1) {
|
|
904
|
+
arg0.buffer = arg1;
|
|
905
|
+
},
|
|
906
|
+
__wbg_set_buffer_21a336fe62828e11: function(arg0, arg1) {
|
|
907
|
+
arg0.buffer = arg1;
|
|
908
|
+
},
|
|
909
|
+
__wbg_set_buffers_070770ce2c0d5522: function(arg0, arg1) {
|
|
910
|
+
arg0.buffers = arg1;
|
|
911
|
+
},
|
|
912
|
+
__wbg_set_bytes_per_row_8e39002b1f627e4d: function(arg0, arg1) {
|
|
913
|
+
arg0.bytesPerRow = arg1 >>> 0;
|
|
914
|
+
},
|
|
915
|
+
__wbg_set_clear_value_4ed990a8b197a59a: function(arg0, arg1) {
|
|
916
|
+
arg0.clearValue = arg1;
|
|
917
|
+
},
|
|
918
|
+
__wbg_set_code_7a3890c4ffd4f7d4: function(arg0, arg1, arg2) {
|
|
919
|
+
arg0.code = getStringFromWasm0(arg1, arg2);
|
|
920
|
+
},
|
|
921
|
+
__wbg_set_color_85a6e64ea881593f: function(arg0, arg1) {
|
|
922
|
+
arg0.color = arg1;
|
|
923
|
+
},
|
|
924
|
+
__wbg_set_color_attachments_88b752139b2e1a01: function(arg0, arg1) {
|
|
925
|
+
arg0.colorAttachments = arg1;
|
|
926
|
+
},
|
|
927
|
+
__wbg_set_compare_494fcab2dc5d7792: function(arg0, arg1) {
|
|
928
|
+
arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
929
|
+
},
|
|
930
|
+
__wbg_set_compare_71e8ea844225b7cb: function(arg0, arg1) {
|
|
931
|
+
arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
932
|
+
},
|
|
933
|
+
__wbg_set_count_036a202e127d1828: function(arg0, arg1) {
|
|
934
|
+
arg0.count = arg1 >>> 0;
|
|
935
|
+
},
|
|
936
|
+
__wbg_set_cull_mode_8c42221bd938897d: function(arg0, arg1) {
|
|
937
|
+
arg0.cullMode = __wbindgen_enum_GpuCullMode[arg1];
|
|
938
|
+
},
|
|
939
|
+
__wbg_set_depth_bias_8de79219aa9d3e44: function(arg0, arg1) {
|
|
940
|
+
arg0.depthBias = arg1;
|
|
941
|
+
},
|
|
942
|
+
__wbg_set_depth_bias_clamp_930cad73d46884cf: function(arg0, arg1) {
|
|
943
|
+
arg0.depthBiasClamp = arg1;
|
|
944
|
+
},
|
|
945
|
+
__wbg_set_depth_bias_slope_scale_85d4c3f48c50408b: function(arg0, arg1) {
|
|
946
|
+
arg0.depthBiasSlopeScale = arg1;
|
|
947
|
+
},
|
|
948
|
+
__wbg_set_depth_clear_value_ef40fa181859a36f: function(arg0, arg1) {
|
|
949
|
+
arg0.depthClearValue = arg1;
|
|
950
|
+
},
|
|
951
|
+
__wbg_set_depth_compare_1273836af777aaa4: function(arg0, arg1) {
|
|
952
|
+
arg0.depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
953
|
+
},
|
|
954
|
+
__wbg_set_depth_fail_op_424b14249d8983bf: function(arg0, arg1) {
|
|
955
|
+
arg0.depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
956
|
+
},
|
|
957
|
+
__wbg_set_depth_load_op_57a7381c934d435e: function(arg0, arg1) {
|
|
958
|
+
arg0.depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
959
|
+
},
|
|
960
|
+
__wbg_set_depth_or_array_layers_3601a844f36fa25f: function(arg0, arg1) {
|
|
961
|
+
arg0.depthOrArrayLayers = arg1 >>> 0;
|
|
962
|
+
},
|
|
963
|
+
__wbg_set_depth_read_only_44e6668e5d98f75f: function(arg0, arg1) {
|
|
964
|
+
arg0.depthReadOnly = arg1 !== 0;
|
|
965
|
+
},
|
|
966
|
+
__wbg_set_depth_stencil_5abb374ddd7f3268: function(arg0, arg1) {
|
|
967
|
+
arg0.depthStencil = arg1;
|
|
968
|
+
},
|
|
969
|
+
__wbg_set_depth_stencil_attachment_eb9d08fc6e7a8fda: function(arg0, arg1) {
|
|
970
|
+
arg0.depthStencilAttachment = arg1;
|
|
971
|
+
},
|
|
972
|
+
__wbg_set_depth_store_op_124f84da3afff2bd: function(arg0, arg1) {
|
|
973
|
+
arg0.depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
974
|
+
},
|
|
975
|
+
__wbg_set_depth_write_enabled_93d4e872c40ad885: function(arg0, arg1) {
|
|
976
|
+
arg0.depthWriteEnabled = arg1 !== 0;
|
|
977
|
+
},
|
|
978
|
+
__wbg_set_device_7a51a7721914c23c: function(arg0, arg1) {
|
|
979
|
+
arg0.device = arg1;
|
|
980
|
+
},
|
|
981
|
+
__wbg_set_dimension_9cfe90d02f664a7a: function(arg0, arg1) {
|
|
982
|
+
arg0.dimension = __wbindgen_enum_GpuTextureDimension[arg1];
|
|
983
|
+
},
|
|
984
|
+
__wbg_set_dimension_b61b3c48adf487c1: function(arg0, arg1) {
|
|
985
|
+
arg0.dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
986
|
+
},
|
|
987
|
+
__wbg_set_dst_factor_6cbfc3a6898cc9ce: function(arg0, arg1) {
|
|
988
|
+
arg0.dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
989
|
+
},
|
|
990
|
+
__wbg_set_e80615d7a9a43981: function(arg0, arg1, arg2) {
|
|
991
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
992
|
+
},
|
|
993
|
+
__wbg_set_end_of_pass_write_index_41d72471cce1e061: function(arg0, arg1) {
|
|
994
|
+
arg0.endOfPassWriteIndex = arg1 >>> 0;
|
|
995
|
+
},
|
|
996
|
+
__wbg_set_entries_0d3ea75764a89b83: function(arg0, arg1) {
|
|
997
|
+
arg0.entries = arg1;
|
|
998
|
+
},
|
|
999
|
+
__wbg_set_entries_922ec6089646247e: function(arg0, arg1) {
|
|
1000
|
+
arg0.entries = arg1;
|
|
1001
|
+
},
|
|
1002
|
+
__wbg_set_entry_point_087ca8094ce666fd: function(arg0, arg1, arg2) {
|
|
1003
|
+
arg0.entryPoint = getStringFromWasm0(arg1, arg2);
|
|
1004
|
+
},
|
|
1005
|
+
__wbg_set_entry_point_d7efddda482bc7fe: function(arg0, arg1, arg2) {
|
|
1006
|
+
arg0.entryPoint = getStringFromWasm0(arg1, arg2);
|
|
1007
|
+
},
|
|
1008
|
+
__wbg_set_external_texture_41cadb0b9faf1919: function(arg0, arg1) {
|
|
1009
|
+
arg0.externalTexture = arg1;
|
|
1010
|
+
},
|
|
1011
|
+
__wbg_set_fail_op_9865183abff904e0: function(arg0, arg1) {
|
|
1012
|
+
arg0.failOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1013
|
+
},
|
|
1014
|
+
__wbg_set_format_09f304cdbee40626: function(arg0, arg1) {
|
|
1015
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1016
|
+
},
|
|
1017
|
+
__wbg_set_format_90502561f5c3fe92: function(arg0, arg1) {
|
|
1018
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1019
|
+
},
|
|
1020
|
+
__wbg_set_format_98f7ca48143feacb: function(arg0, arg1) {
|
|
1021
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1022
|
+
},
|
|
1023
|
+
__wbg_set_format_b111ffed7e227fef: function(arg0, arg1) {
|
|
1024
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1025
|
+
},
|
|
1026
|
+
__wbg_set_format_b3f26219150f6fcf: function(arg0, arg1) {
|
|
1027
|
+
arg0.format = __wbindgen_enum_GpuVertexFormat[arg1];
|
|
1028
|
+
},
|
|
1029
|
+
__wbg_set_format_dbb02ef2a1b11c73: function(arg0, arg1) {
|
|
1030
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1031
|
+
},
|
|
1032
|
+
__wbg_set_format_fd82439cf1e1f024: function(arg0, arg1) {
|
|
1033
|
+
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1034
|
+
},
|
|
1035
|
+
__wbg_set_fragment_4026e84121693413: function(arg0, arg1) {
|
|
1036
|
+
arg0.fragment = arg1;
|
|
1037
|
+
},
|
|
1038
|
+
__wbg_set_front_face_abcfb70c2001a63b: function(arg0, arg1) {
|
|
1039
|
+
arg0.frontFace = __wbindgen_enum_GpuFrontFace[arg1];
|
|
1040
|
+
},
|
|
1041
|
+
__wbg_set_g_3e49035507785f14: function(arg0, arg1) {
|
|
1042
|
+
arg0.g = arg1;
|
|
1043
|
+
},
|
|
1044
|
+
__wbg_set_has_dynamic_offset_ebc87f184bf9b1b6: function(arg0, arg1) {
|
|
1045
|
+
arg0.hasDynamicOffset = arg1 !== 0;
|
|
1046
|
+
},
|
|
1047
|
+
__wbg_set_height_5dc3bf5fd05f449d: function(arg0, arg1) {
|
|
1048
|
+
arg0.height = arg1 >>> 0;
|
|
1049
|
+
},
|
|
1050
|
+
__wbg_set_height_98a1a397672657e2: function(arg0, arg1) {
|
|
1051
|
+
arg0.height = arg1 >>> 0;
|
|
1052
|
+
},
|
|
1053
|
+
__wbg_set_height_b6548a01bdcb689a: function(arg0, arg1) {
|
|
1054
|
+
arg0.height = arg1 >>> 0;
|
|
1055
|
+
},
|
|
1056
|
+
__wbg_set_label_0ca1d80bd2825a5c: function(arg0, arg1, arg2) {
|
|
1057
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1058
|
+
},
|
|
1059
|
+
__wbg_set_label_15aeeb29a6954be8: function(arg0, arg1, arg2) {
|
|
1060
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1061
|
+
},
|
|
1062
|
+
__wbg_set_label_2f91d5326490d1cc: function(arg0, arg1, arg2) {
|
|
1063
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1064
|
+
},
|
|
1065
|
+
__wbg_set_label_355fa56959229d47: function(arg0, arg1, arg2) {
|
|
1066
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1067
|
+
},
|
|
1068
|
+
__wbg_set_label_565007795fa1b28b: function(arg0, arg1, arg2) {
|
|
1069
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1070
|
+
},
|
|
1071
|
+
__wbg_set_label_6b0d6041cd54c099: function(arg0, arg1, arg2) {
|
|
1072
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1073
|
+
},
|
|
1074
|
+
__wbg_set_label_76862276b026aadb: function(arg0, arg1, arg2) {
|
|
1075
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1076
|
+
},
|
|
1077
|
+
__wbg_set_label_776849dd514350e6: function(arg0, arg1, arg2) {
|
|
1078
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1079
|
+
},
|
|
1080
|
+
__wbg_set_label_7d273105ca29a945: function(arg0, arg1, arg2) {
|
|
1081
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1082
|
+
},
|
|
1083
|
+
__wbg_set_label_889010e958e191c9: function(arg0, arg1, arg2) {
|
|
1084
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1085
|
+
},
|
|
1086
|
+
__wbg_set_label_b80919003c66c761: function(arg0, arg1, arg2) {
|
|
1087
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1088
|
+
},
|
|
1089
|
+
__wbg_set_label_cbbe51e986da3989: function(arg0, arg1, arg2) {
|
|
1090
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1091
|
+
},
|
|
1092
|
+
__wbg_set_label_ccc4850f4197dc22: function(arg0, arg1, arg2) {
|
|
1093
|
+
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1094
|
+
},
|
|
1095
|
+
__wbg_set_layout_464ae8395c01fe6e: function(arg0, arg1) {
|
|
1096
|
+
arg0.layout = arg1;
|
|
1097
|
+
},
|
|
1098
|
+
__wbg_set_layout_b990b908a7810b31: function(arg0, arg1) {
|
|
1099
|
+
arg0.layout = arg1;
|
|
1100
|
+
},
|
|
1101
|
+
__wbg_set_load_op_5d3a8abceb4a5269: function(arg0, arg1) {
|
|
1102
|
+
arg0.loadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
1103
|
+
},
|
|
1104
|
+
__wbg_set_lod_max_clamp_bf825cfbdd106655: function(arg0, arg1) {
|
|
1105
|
+
arg0.lodMaxClamp = arg1;
|
|
1106
|
+
},
|
|
1107
|
+
__wbg_set_lod_min_clamp_35ccf45d8ee31c7e: function(arg0, arg1) {
|
|
1108
|
+
arg0.lodMinClamp = arg1;
|
|
1109
|
+
},
|
|
1110
|
+
__wbg_set_mag_filter_8f8d84435d8db92a: function(arg0, arg1) {
|
|
1111
|
+
arg0.magFilter = __wbindgen_enum_GpuFilterMode[arg1];
|
|
1112
|
+
},
|
|
1113
|
+
__wbg_set_mapped_at_creation_ff06f7ed93a315dd: function(arg0, arg1) {
|
|
1114
|
+
arg0.mappedAtCreation = arg1 !== 0;
|
|
1115
|
+
},
|
|
1116
|
+
__wbg_set_mask_ad9d29606115a472: function(arg0, arg1) {
|
|
1117
|
+
arg0.mask = arg1 >>> 0;
|
|
1118
|
+
},
|
|
1119
|
+
__wbg_set_max_anisotropy_c82fc429f1b1e064: function(arg0, arg1) {
|
|
1120
|
+
arg0.maxAnisotropy = arg1;
|
|
1121
|
+
},
|
|
1122
|
+
__wbg_set_min_binding_size_746ae443396eb1f4: function(arg0, arg1) {
|
|
1123
|
+
arg0.minBindingSize = arg1;
|
|
1124
|
+
},
|
|
1125
|
+
__wbg_set_min_filter_fb0add0b126873ab: function(arg0, arg1) {
|
|
1126
|
+
arg0.minFilter = __wbindgen_enum_GpuFilterMode[arg1];
|
|
1127
|
+
},
|
|
1128
|
+
__wbg_set_mip_level_count_1d3d8f433adfb7ae: function(arg0, arg1) {
|
|
1129
|
+
arg0.mipLevelCount = arg1 >>> 0;
|
|
1130
|
+
},
|
|
1131
|
+
__wbg_set_mip_level_count_e13846330ea5c4a2: function(arg0, arg1) {
|
|
1132
|
+
arg0.mipLevelCount = arg1 >>> 0;
|
|
1133
|
+
},
|
|
1134
|
+
__wbg_set_mip_level_f4e04afe7e030b52: function(arg0, arg1) {
|
|
1135
|
+
arg0.mipLevel = arg1 >>> 0;
|
|
1136
|
+
},
|
|
1137
|
+
__wbg_set_mipmap_filter_202e81e75b49e109: function(arg0, arg1) {
|
|
1138
|
+
arg0.mipmapFilter = __wbindgen_enum_GpuMipmapFilterMode[arg1];
|
|
1139
|
+
},
|
|
1140
|
+
__wbg_set_module_6d0431faccebdcc4: function(arg0, arg1) {
|
|
1141
|
+
arg0.module = arg1;
|
|
1142
|
+
},
|
|
1143
|
+
__wbg_set_module_701adba2958bd873: function(arg0, arg1) {
|
|
1144
|
+
arg0.module = arg1;
|
|
1145
|
+
},
|
|
1146
|
+
__wbg_set_multisample_e577402263e48ad4: function(arg0, arg1) {
|
|
1147
|
+
arg0.multisample = arg1;
|
|
1148
|
+
},
|
|
1149
|
+
__wbg_set_multisampled_2180d2b5d246ae13: function(arg0, arg1) {
|
|
1150
|
+
arg0.multisampled = arg1 !== 0;
|
|
1151
|
+
},
|
|
1152
|
+
__wbg_set_offset_2d6ab375385cd2ae: function(arg0, arg1) {
|
|
1153
|
+
arg0.offset = arg1;
|
|
1154
|
+
},
|
|
1155
|
+
__wbg_set_offset_3fadbb3d3dadd4ef: function(arg0, arg1) {
|
|
1156
|
+
arg0.offset = arg1;
|
|
1157
|
+
},
|
|
1158
|
+
__wbg_set_offset_fa633343238c309f: function(arg0, arg1) {
|
|
1159
|
+
arg0.offset = arg1;
|
|
1160
|
+
},
|
|
1161
|
+
__wbg_set_operation_3a748fcc4d122201: function(arg0, arg1) {
|
|
1162
|
+
arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
|
|
1163
|
+
},
|
|
1164
|
+
__wbg_set_origin_5531aa268ce97d9d: function(arg0, arg1) {
|
|
1165
|
+
arg0.origin = arg1;
|
|
1166
|
+
},
|
|
1167
|
+
__wbg_set_pass_op_e82189d4f2d5c48d: function(arg0, arg1) {
|
|
1168
|
+
arg0.passOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1169
|
+
},
|
|
1170
|
+
__wbg_set_power_preference_f8956c3fea27c41d: function(arg0, arg1) {
|
|
1171
|
+
arg0.powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
|
|
1172
|
+
},
|
|
1173
|
+
__wbg_set_primitive_65a118359b90be29: function(arg0, arg1) {
|
|
1174
|
+
arg0.primitive = arg1;
|
|
1175
|
+
},
|
|
1176
|
+
__wbg_set_query_set_17c4bef32f23bd7e: function(arg0, arg1) {
|
|
1177
|
+
arg0.querySet = arg1;
|
|
1178
|
+
},
|
|
1179
|
+
__wbg_set_r_399b4e4373534d2d: function(arg0, arg1) {
|
|
1180
|
+
arg0.r = arg1;
|
|
1181
|
+
},
|
|
1182
|
+
__wbg_set_required_features_83604ede3c9e0352: function(arg0, arg1) {
|
|
1183
|
+
arg0.requiredFeatures = arg1;
|
|
1184
|
+
},
|
|
1185
|
+
__wbg_set_resolve_target_1a8386ab8943f477: function(arg0, arg1) {
|
|
1186
|
+
arg0.resolveTarget = arg1;
|
|
1187
|
+
},
|
|
1188
|
+
__wbg_set_resource_ec6d0e1222a3141f: function(arg0, arg1) {
|
|
1189
|
+
arg0.resource = arg1;
|
|
1190
|
+
},
|
|
1191
|
+
__wbg_set_rows_per_image_e38e907b075d42a7: function(arg0, arg1) {
|
|
1192
|
+
arg0.rowsPerImage = arg1 >>> 0;
|
|
1193
|
+
},
|
|
1194
|
+
__wbg_set_sample_count_eb36fa5f0a856200: function(arg0, arg1) {
|
|
1195
|
+
arg0.sampleCount = arg1 >>> 0;
|
|
1196
|
+
},
|
|
1197
|
+
__wbg_set_sample_type_fade9fb214ec1d74: function(arg0, arg1) {
|
|
1198
|
+
arg0.sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
|
|
1199
|
+
},
|
|
1200
|
+
__wbg_set_sampler_e11b32a88597fe6a: function(arg0, arg1) {
|
|
1201
|
+
arg0.sampler = arg1;
|
|
1202
|
+
},
|
|
1203
|
+
__wbg_set_shader_location_87fe60eb5cf2ef69: function(arg0, arg1) {
|
|
1204
|
+
arg0.shaderLocation = arg1 >>> 0;
|
|
1205
|
+
},
|
|
1206
|
+
__wbg_set_size_724b776b74138f07: function(arg0, arg1) {
|
|
1207
|
+
arg0.size = arg1;
|
|
1208
|
+
},
|
|
1209
|
+
__wbg_set_size_a15931d6b21f35f9: function(arg0, arg1) {
|
|
1210
|
+
arg0.size = arg1;
|
|
1211
|
+
},
|
|
1212
|
+
__wbg_set_size_e76794a3069a90d7: function(arg0, arg1) {
|
|
1213
|
+
arg0.size = arg1;
|
|
1214
|
+
},
|
|
1215
|
+
__wbg_set_src_factor_00c2d54742fd17a4: function(arg0, arg1) {
|
|
1216
|
+
arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
1217
|
+
},
|
|
1218
|
+
__wbg_set_stencil_back_9ee211b35e39be71: function(arg0, arg1) {
|
|
1219
|
+
arg0.stencilBack = arg1;
|
|
1220
|
+
},
|
|
1221
|
+
__wbg_set_stencil_clear_value_884e0e38f410ec12: function(arg0, arg1) {
|
|
1222
|
+
arg0.stencilClearValue = arg1 >>> 0;
|
|
1223
|
+
},
|
|
1224
|
+
__wbg_set_stencil_front_4fc7b9162e3cc71f: function(arg0, arg1) {
|
|
1225
|
+
arg0.stencilFront = arg1;
|
|
1226
|
+
},
|
|
1227
|
+
__wbg_set_stencil_load_op_eeb37a3ee387626f: function(arg0, arg1) {
|
|
1228
|
+
arg0.stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
1229
|
+
},
|
|
1230
|
+
__wbg_set_stencil_read_mask_52264a1876326ce1: function(arg0, arg1) {
|
|
1231
|
+
arg0.stencilReadMask = arg1 >>> 0;
|
|
1232
|
+
},
|
|
1233
|
+
__wbg_set_stencil_read_only_192e9b65a6822039: function(arg0, arg1) {
|
|
1234
|
+
arg0.stencilReadOnly = arg1 !== 0;
|
|
1235
|
+
},
|
|
1236
|
+
__wbg_set_stencil_store_op_c110d1172a277982: function(arg0, arg1) {
|
|
1237
|
+
arg0.stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
1238
|
+
},
|
|
1239
|
+
__wbg_set_stencil_write_mask_5e49d555c45a16fa: function(arg0, arg1) {
|
|
1240
|
+
arg0.stencilWriteMask = arg1 >>> 0;
|
|
1241
|
+
},
|
|
1242
|
+
__wbg_set_step_mode_80a80308a6783be4: function(arg0, arg1) {
|
|
1243
|
+
arg0.stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
|
|
1244
|
+
},
|
|
1245
|
+
__wbg_set_storage_texture_dab6c69662cecb15: function(arg0, arg1) {
|
|
1246
|
+
arg0.storageTexture = arg1;
|
|
1247
|
+
},
|
|
1248
|
+
__wbg_set_store_op_2bf481ef4a30f927: function(arg0, arg1) {
|
|
1249
|
+
arg0.storeOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
1250
|
+
},
|
|
1251
|
+
__wbg_set_strip_index_format_ab81420028504e38: function(arg0, arg1) {
|
|
1252
|
+
arg0.stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
|
|
1253
|
+
},
|
|
1254
|
+
__wbg_set_targets_f00488491d26619c: function(arg0, arg1) {
|
|
1255
|
+
arg0.targets = arg1;
|
|
1256
|
+
},
|
|
1257
|
+
__wbg_set_texture_8732ea1b0f00cc28: function(arg0, arg1) {
|
|
1258
|
+
arg0.texture = arg1;
|
|
1259
|
+
},
|
|
1260
|
+
__wbg_set_texture_e3dad6e696ee0d00: function(arg0, arg1) {
|
|
1261
|
+
arg0.texture = arg1;
|
|
1262
|
+
},
|
|
1263
|
+
__wbg_set_timestamp_writes_0e233b1252b29a60: function(arg0, arg1) {
|
|
1264
|
+
arg0.timestampWrites = arg1;
|
|
1265
|
+
},
|
|
1266
|
+
__wbg_set_topology_774e967bf9bd3600: function(arg0, arg1) {
|
|
1267
|
+
arg0.topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
|
|
1268
|
+
},
|
|
1269
|
+
__wbg_set_type_3e89072317fa3a02: function(arg0, arg1) {
|
|
1270
|
+
arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
|
|
1271
|
+
},
|
|
1272
|
+
__wbg_set_type_fc5fb8ab00ac41ab: function(arg0, arg1) {
|
|
1273
|
+
arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
|
|
1274
|
+
},
|
|
1275
|
+
__wbg_set_unclipped_depth_bbe4b97da619705e: function(arg0, arg1) {
|
|
1276
|
+
arg0.unclippedDepth = arg1 !== 0;
|
|
1277
|
+
},
|
|
1278
|
+
__wbg_set_usage_215da50f99ff465b: function(arg0, arg1) {
|
|
1279
|
+
arg0.usage = arg1 >>> 0;
|
|
1280
|
+
},
|
|
1281
|
+
__wbg_set_usage_5fcdce4860170c24: function(arg0, arg1) {
|
|
1282
|
+
arg0.usage = arg1 >>> 0;
|
|
1283
|
+
},
|
|
1284
|
+
__wbg_set_usage_e78977f1ef3c2dc4: function(arg0, arg1) {
|
|
1285
|
+
arg0.usage = arg1 >>> 0;
|
|
1286
|
+
},
|
|
1287
|
+
__wbg_set_usage_ece80ba45b896722: function(arg0, arg1) {
|
|
1288
|
+
arg0.usage = arg1 >>> 0;
|
|
1289
|
+
},
|
|
1290
|
+
__wbg_set_vertex_879729b1ef5390a2: function(arg0, arg1) {
|
|
1291
|
+
arg0.vertex = arg1;
|
|
1292
|
+
},
|
|
1293
|
+
__wbg_set_view_9850fe7aa8b4eae3: function(arg0, arg1) {
|
|
1294
|
+
arg0.view = arg1;
|
|
1295
|
+
},
|
|
1296
|
+
__wbg_set_view_b8a1c6698b913d81: function(arg0, arg1) {
|
|
1297
|
+
arg0.view = arg1;
|
|
1298
|
+
},
|
|
1299
|
+
__wbg_set_view_dimension_5c6c0dc0d28476c3: function(arg0, arg1) {
|
|
1300
|
+
arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1301
|
+
},
|
|
1302
|
+
__wbg_set_view_dimension_67ac13d87840ccb1: function(arg0, arg1) {
|
|
1303
|
+
arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1304
|
+
},
|
|
1305
|
+
__wbg_set_view_formats_2b4e75efe5453ad6: function(arg0, arg1) {
|
|
1306
|
+
arg0.viewFormats = arg1;
|
|
1307
|
+
},
|
|
1308
|
+
__wbg_set_view_formats_6c5369e801fa17b7: function(arg0, arg1) {
|
|
1309
|
+
arg0.viewFormats = arg1;
|
|
1310
|
+
},
|
|
1311
|
+
__wbg_set_visibility_22877d2819bea70b: function(arg0, arg1) {
|
|
1312
|
+
arg0.visibility = arg1 >>> 0;
|
|
1313
|
+
},
|
|
1314
|
+
__wbg_set_width_576343a4a7f2cf28: function(arg0, arg1) {
|
|
1315
|
+
arg0.width = arg1 >>> 0;
|
|
1316
|
+
},
|
|
1317
|
+
__wbg_set_width_a6d5409d7980ccca: function(arg0, arg1) {
|
|
1318
|
+
arg0.width = arg1 >>> 0;
|
|
1319
|
+
},
|
|
1320
|
+
__wbg_set_width_c0fcaa2da53cd540: function(arg0, arg1) {
|
|
1321
|
+
arg0.width = arg1 >>> 0;
|
|
1322
|
+
},
|
|
1323
|
+
__wbg_set_write_mask_dceb6456d5310b39: function(arg0, arg1) {
|
|
1324
|
+
arg0.writeMask = arg1 >>> 0;
|
|
1325
|
+
},
|
|
1326
|
+
__wbg_set_x_40188fe21190a1a8: function(arg0, arg1) {
|
|
1327
|
+
arg0.x = arg1 >>> 0;
|
|
1328
|
+
},
|
|
1329
|
+
__wbg_set_y_8caca94aad6cb4e8: function(arg0, arg1) {
|
|
1330
|
+
arg0.y = arg1 >>> 0;
|
|
1331
|
+
},
|
|
1332
|
+
__wbg_set_z_bb89b8ff0b9f8f74: function(arg0, arg1) {
|
|
1333
|
+
arg0.z = arg1 >>> 0;
|
|
1334
|
+
},
|
|
1335
|
+
__wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
|
|
1336
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1337
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1338
|
+
},
|
|
1339
|
+
__wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
|
|
1340
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1341
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1342
|
+
},
|
|
1343
|
+
__wbg_static_accessor_SELF_f207c857566db248: function() {
|
|
1344
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1345
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1346
|
+
},
|
|
1347
|
+
__wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
|
|
1348
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1349
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1350
|
+
},
|
|
1351
|
+
__wbg_status_318629ab93a22955: function(arg0) {
|
|
1352
|
+
const ret = arg0.status;
|
|
1353
|
+
return ret;
|
|
1354
|
+
},
|
|
1355
|
+
__wbg_submit_19b0e21319bc36d7: function(arg0, arg1) {
|
|
1356
|
+
arg0.submit(arg1);
|
|
1357
|
+
},
|
|
1358
|
+
__wbg_then_098abe61755d12f6: function(arg0, arg1) {
|
|
1359
|
+
const ret = arg0.then(arg1);
|
|
1360
|
+
return ret;
|
|
1361
|
+
},
|
|
1362
|
+
__wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
|
|
1363
|
+
const ret = arg0.then(arg1, arg2);
|
|
1364
|
+
return ret;
|
|
1365
|
+
},
|
|
1366
|
+
__wbg_then_bc59d1943397ca4e: function(arg0, arg1, arg2) {
|
|
1367
|
+
const ret = arg0.then(arg1, arg2);
|
|
1368
|
+
return ret;
|
|
1369
|
+
},
|
|
1370
|
+
__wbg_unmap_c2954ef341a2b85d: function(arg0) {
|
|
1371
|
+
arg0.unmap();
|
|
1372
|
+
},
|
|
1373
|
+
__wbg_wasmgame_new: function(arg0) {
|
|
1374
|
+
const ret = WasmGame.__wrap(arg0);
|
|
1375
|
+
return ret;
|
|
1376
|
+
},
|
|
1377
|
+
__wbg_writeBuffer_1fa3becf9f9f970e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1378
|
+
arg0.writeBuffer(arg1, arg2, arg3, arg4, arg5);
|
|
1379
|
+
}, arguments); },
|
|
1380
|
+
__wbg_writeTexture_16d44079bcc6b839: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1381
|
+
arg0.writeTexture(arg1, arg2, arg3, arg4);
|
|
1382
|
+
}, arguments); },
|
|
1383
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1384
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 72, function: Function { arguments: [Externref], shim_idx: 73, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1385
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h34b32f47e9536ad7, wasm_bindgen__convert__closures_____invoke__h8b43903f8a91b24f);
|
|
1386
|
+
return ret;
|
|
1387
|
+
},
|
|
1388
|
+
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1389
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 777, function: Function { arguments: [Externref], shim_idx: 778, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1390
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb7ee5c5d3fd608d4, wasm_bindgen__convert__closures_____invoke__h6c9ef6970fdda1f4);
|
|
1391
|
+
return ret;
|
|
1392
|
+
},
|
|
1393
|
+
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
1394
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1395
|
+
const ret = arg0;
|
|
1396
|
+
return ret;
|
|
1397
|
+
},
|
|
1398
|
+
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1399
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1400
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1401
|
+
return ret;
|
|
1402
|
+
},
|
|
1403
|
+
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1404
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1405
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1406
|
+
return ret;
|
|
1407
|
+
},
|
|
1408
|
+
__wbindgen_init_externref_table: function() {
|
|
1409
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1410
|
+
const offset = table.grow(4);
|
|
1411
|
+
table.set(0, undefined);
|
|
1412
|
+
table.set(offset + 0, undefined);
|
|
1413
|
+
table.set(offset + 1, null);
|
|
1414
|
+
table.set(offset + 2, true);
|
|
1415
|
+
table.set(offset + 3, false);
|
|
1416
|
+
},
|
|
1417
|
+
};
|
|
1418
|
+
return {
|
|
1419
|
+
__proto__: null,
|
|
1420
|
+
"./goud_engine_bg.js": import0,
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
825
1423
|
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
const instance = await WebAssembly.instantiate(module, imports);
|
|
1424
|
+
function wasm_bindgen__convert__closures_____invoke__h8b43903f8a91b24f(arg0, arg1, arg2) {
|
|
1425
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h8b43903f8a91b24f(arg0, arg1, arg2);
|
|
1426
|
+
}
|
|
830
1427
|
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
}
|
|
1428
|
+
function wasm_bindgen__convert__closures_____invoke__h6c9ef6970fdda1f4(arg0, arg1, arg2) {
|
|
1429
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h6c9ef6970fdda1f4(arg0, arg1, arg2);
|
|
1430
|
+
if (ret[1]) {
|
|
1431
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
836
1432
|
}
|
|
837
1433
|
}
|
|
838
1434
|
|
|
839
|
-
function
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
},
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
const
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
const
|
|
1056
|
-
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
};
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
} finally {
|
|
1081
|
-
state0.a = state0.b = 0;
|
|
1082
|
-
}
|
|
1083
|
-
};
|
|
1084
|
-
imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
|
|
1085
|
-
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1086
|
-
return ret;
|
|
1087
|
-
};
|
|
1088
|
-
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
1089
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1090
|
-
return ret;
|
|
1091
|
-
};
|
|
1092
|
-
imports.wbg.__wbg_new_with_byte_offset_and_length_d85c3da1fd8df149 = function(arg0, arg1, arg2) {
|
|
1093
|
-
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1094
|
-
return ret;
|
|
1095
|
-
};
|
|
1096
|
-
imports.wbg.__wbg_ok_dd98ecb60d721e20 = function(arg0) {
|
|
1097
|
-
const ret = arg0.ok;
|
|
1098
|
-
return ret;
|
|
1099
|
-
};
|
|
1100
|
-
imports.wbg.__wbg_onSubmittedWorkDone_babe5ab237e856ff = function(arg0) {
|
|
1101
|
-
const ret = arg0.onSubmittedWorkDone();
|
|
1102
|
-
return ret;
|
|
1103
|
-
};
|
|
1104
|
-
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
1105
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1106
|
-
};
|
|
1107
|
-
imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
|
|
1108
|
-
const ret = arg0.push(arg1);
|
|
1109
|
-
return ret;
|
|
1110
|
-
};
|
|
1111
|
-
imports.wbg.__wbg_querySelectorAll_aa1048eae18f6f1a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1112
|
-
const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
|
|
1113
|
-
return ret;
|
|
1114
|
-
}, arguments) };
|
|
1115
|
-
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
1116
|
-
const ret = arg0.queueMicrotask;
|
|
1117
|
-
return ret;
|
|
1118
|
-
};
|
|
1119
|
-
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
1120
|
-
queueMicrotask(arg0);
|
|
1121
|
-
};
|
|
1122
|
-
imports.wbg.__wbg_queue_13a5c48e3c54a28c = function(arg0) {
|
|
1123
|
-
const ret = arg0.queue;
|
|
1124
|
-
return ret;
|
|
1125
|
-
};
|
|
1126
|
-
imports.wbg.__wbg_requestAdapter_cc9a9924f72519ab = function(arg0, arg1) {
|
|
1127
|
-
const ret = arg0.requestAdapter(arg1);
|
|
1128
|
-
return ret;
|
|
1129
|
-
};
|
|
1130
|
-
imports.wbg.__wbg_requestDevice_295504649d1da14c = function(arg0, arg1) {
|
|
1131
|
-
const ret = arg0.requestDevice(arg1);
|
|
1132
|
-
return ret;
|
|
1133
|
-
};
|
|
1134
|
-
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
1135
|
-
const ret = Promise.resolve(arg0);
|
|
1136
|
-
return ret;
|
|
1137
|
-
};
|
|
1138
|
-
imports.wbg.__wbg_setBindGroup_bf7233e51ee0fd56 = function(arg0, arg1, arg2) {
|
|
1139
|
-
arg0.setBindGroup(arg1 >>> 0, arg2);
|
|
1140
|
-
};
|
|
1141
|
-
imports.wbg.__wbg_setBindGroup_c532d9e80c3b863a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1142
|
-
arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
1143
|
-
}, arguments) };
|
|
1144
|
-
imports.wbg.__wbg_setIndexBuffer_d6851b016152211a = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1145
|
-
arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
|
|
1146
|
-
};
|
|
1147
|
-
imports.wbg.__wbg_setPipeline_b632e313f54b1cb1 = function(arg0, arg1) {
|
|
1148
|
-
arg0.setPipeline(arg1);
|
|
1149
|
-
};
|
|
1150
|
-
imports.wbg.__wbg_setVertexBuffer_c8234139ead62a61 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1151
|
-
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
|
|
1152
|
-
};
|
|
1153
|
-
imports.wbg.__wbg_set_781438a03c0c3c81 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1154
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1155
|
-
return ret;
|
|
1156
|
-
}, arguments) };
|
|
1157
|
-
imports.wbg.__wbg_set_a_e87a2053d5fccb4c = function(arg0, arg1) {
|
|
1158
|
-
arg0.a = arg1;
|
|
1159
|
-
};
|
|
1160
|
-
imports.wbg.__wbg_set_access_69d91e9d4e4ceac2 = function(arg0, arg1) {
|
|
1161
|
-
arg0.access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
|
|
1162
|
-
};
|
|
1163
|
-
imports.wbg.__wbg_set_address_mode_u_17e91ba6701d7cdf = function(arg0, arg1) {
|
|
1164
|
-
arg0.addressModeU = __wbindgen_enum_GpuAddressMode[arg1];
|
|
1165
|
-
};
|
|
1166
|
-
imports.wbg.__wbg_set_address_mode_v_83cff33885b49fd0 = function(arg0, arg1) {
|
|
1167
|
-
arg0.addressModeV = __wbindgen_enum_GpuAddressMode[arg1];
|
|
1168
|
-
};
|
|
1169
|
-
imports.wbg.__wbg_set_address_mode_w_2445963d0feae757 = function(arg0, arg1) {
|
|
1170
|
-
arg0.addressModeW = __wbindgen_enum_GpuAddressMode[arg1];
|
|
1171
|
-
};
|
|
1172
|
-
imports.wbg.__wbg_set_alpha_a7a68e5ec04efe77 = function(arg0, arg1) {
|
|
1173
|
-
arg0.alpha = arg1;
|
|
1174
|
-
};
|
|
1175
|
-
imports.wbg.__wbg_set_alpha_mode_60f87267fa3d95d0 = function(arg0, arg1) {
|
|
1176
|
-
arg0.alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
|
|
1177
|
-
};
|
|
1178
|
-
imports.wbg.__wbg_set_alpha_to_coverage_enabled_67782b8fff854d06 = function(arg0, arg1) {
|
|
1179
|
-
arg0.alphaToCoverageEnabled = arg1 !== 0;
|
|
1180
|
-
};
|
|
1181
|
-
imports.wbg.__wbg_set_array_layer_count_2bd74e56899b603a = function(arg0, arg1) {
|
|
1182
|
-
arg0.arrayLayerCount = arg1 >>> 0;
|
|
1183
|
-
};
|
|
1184
|
-
imports.wbg.__wbg_set_array_stride_acb85bd3848529a6 = function(arg0, arg1) {
|
|
1185
|
-
arg0.arrayStride = arg1;
|
|
1186
|
-
};
|
|
1187
|
-
imports.wbg.__wbg_set_aspect_82ca9caa27a4c533 = function(arg0, arg1) {
|
|
1188
|
-
arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
1189
|
-
};
|
|
1190
|
-
imports.wbg.__wbg_set_aspect_b78bd0b34ebfe19b = function(arg0, arg1) {
|
|
1191
|
-
arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
|
|
1192
|
-
};
|
|
1193
|
-
imports.wbg.__wbg_set_attributes_4d5de6c80e3a7e73 = function(arg0, arg1) {
|
|
1194
|
-
arg0.attributes = arg1;
|
|
1195
|
-
};
|
|
1196
|
-
imports.wbg.__wbg_set_b_87725d82ac69a631 = function(arg0, arg1) {
|
|
1197
|
-
arg0.b = arg1;
|
|
1198
|
-
};
|
|
1199
|
-
imports.wbg.__wbg_set_base_array_layer_064977086530f2e7 = function(arg0, arg1) {
|
|
1200
|
-
arg0.baseArrayLayer = arg1 >>> 0;
|
|
1201
|
-
};
|
|
1202
|
-
imports.wbg.__wbg_set_base_mip_level_845abe28a57bd901 = function(arg0, arg1) {
|
|
1203
|
-
arg0.baseMipLevel = arg1 >>> 0;
|
|
1204
|
-
};
|
|
1205
|
-
imports.wbg.__wbg_set_bc3a432bdcd60886 = function(arg0, arg1, arg2) {
|
|
1206
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
1207
|
-
};
|
|
1208
|
-
imports.wbg.__wbg_set_beginning_of_pass_write_index_18bb7ab9fb16de02 = function(arg0, arg1) {
|
|
1209
|
-
arg0.beginningOfPassWriteIndex = arg1 >>> 0;
|
|
1210
|
-
};
|
|
1211
|
-
imports.wbg.__wbg_set_bind_group_layouts_db65f9787380e242 = function(arg0, arg1) {
|
|
1212
|
-
arg0.bindGroupLayouts = arg1;
|
|
1213
|
-
};
|
|
1214
|
-
imports.wbg.__wbg_set_binding_35fa28beda49ff83 = function(arg0, arg1) {
|
|
1215
|
-
arg0.binding = arg1 >>> 0;
|
|
1216
|
-
};
|
|
1217
|
-
imports.wbg.__wbg_set_binding_3b4abee15b11f6ec = function(arg0, arg1) {
|
|
1218
|
-
arg0.binding = arg1 >>> 0;
|
|
1219
|
-
};
|
|
1220
|
-
imports.wbg.__wbg_set_blend_21337ec514ad2280 = function(arg0, arg1) {
|
|
1221
|
-
arg0.blend = arg1;
|
|
1222
|
-
};
|
|
1223
|
-
imports.wbg.__wbg_set_buffer_a9223dfcc0e34853 = function(arg0, arg1) {
|
|
1224
|
-
arg0.buffer = arg1;
|
|
1225
|
-
};
|
|
1226
|
-
imports.wbg.__wbg_set_buffer_d49e95bb5349d827 = function(arg0, arg1) {
|
|
1227
|
-
arg0.buffer = arg1;
|
|
1228
|
-
};
|
|
1229
|
-
imports.wbg.__wbg_set_buffers_68609a5d48c31b27 = function(arg0, arg1) {
|
|
1230
|
-
arg0.buffers = arg1;
|
|
1231
|
-
};
|
|
1232
|
-
imports.wbg.__wbg_set_bytes_per_row_4a52bbf4cdbfe78b = function(arg0, arg1) {
|
|
1233
|
-
arg0.bytesPerRow = arg1 >>> 0;
|
|
1234
|
-
};
|
|
1235
|
-
imports.wbg.__wbg_set_clear_value_8fc3623594df71b2 = function(arg0, arg1) {
|
|
1236
|
-
arg0.clearValue = arg1;
|
|
1237
|
-
};
|
|
1238
|
-
imports.wbg.__wbg_set_code_20093e29960281f8 = function(arg0, arg1, arg2) {
|
|
1239
|
-
arg0.code = getStringFromWasm0(arg1, arg2);
|
|
1240
|
-
};
|
|
1241
|
-
imports.wbg.__wbg_set_color_64a633bf7b4cf6fe = function(arg0, arg1) {
|
|
1242
|
-
arg0.color = arg1;
|
|
1243
|
-
};
|
|
1244
|
-
imports.wbg.__wbg_set_color_attachments_4d4c71d7eeba8e2f = function(arg0, arg1) {
|
|
1245
|
-
arg0.colorAttachments = arg1;
|
|
1246
|
-
};
|
|
1247
|
-
imports.wbg.__wbg_set_compare_0376672b0c0bbfd8 = function(arg0, arg1) {
|
|
1248
|
-
arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
1249
|
-
};
|
|
1250
|
-
imports.wbg.__wbg_set_compare_f3fb77a9bf3f0f7e = function(arg0, arg1) {
|
|
1251
|
-
arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
1252
|
-
};
|
|
1253
|
-
imports.wbg.__wbg_set_count_8cf9a3dd1ffc7b7d = function(arg0, arg1) {
|
|
1254
|
-
arg0.count = arg1 >>> 0;
|
|
1255
|
-
};
|
|
1256
|
-
imports.wbg.__wbg_set_cull_mode_41c12526410d3e05 = function(arg0, arg1) {
|
|
1257
|
-
arg0.cullMode = __wbindgen_enum_GpuCullMode[arg1];
|
|
1258
|
-
};
|
|
1259
|
-
imports.wbg.__wbg_set_depth_bias_31554aeaaa675954 = function(arg0, arg1) {
|
|
1260
|
-
arg0.depthBias = arg1;
|
|
1261
|
-
};
|
|
1262
|
-
imports.wbg.__wbg_set_depth_bias_clamp_8cf5f4f0d80e8cba = function(arg0, arg1) {
|
|
1263
|
-
arg0.depthBiasClamp = arg1;
|
|
1264
|
-
};
|
|
1265
|
-
imports.wbg.__wbg_set_depth_bias_slope_scale_310ae406f2d3a055 = function(arg0, arg1) {
|
|
1266
|
-
arg0.depthBiasSlopeScale = arg1;
|
|
1267
|
-
};
|
|
1268
|
-
imports.wbg.__wbg_set_depth_clear_value_8760aafb583d5312 = function(arg0, arg1) {
|
|
1269
|
-
arg0.depthClearValue = arg1;
|
|
1270
|
-
};
|
|
1271
|
-
imports.wbg.__wbg_set_depth_compare_8831904ce3173063 = function(arg0, arg1) {
|
|
1272
|
-
arg0.depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
|
|
1273
|
-
};
|
|
1274
|
-
imports.wbg.__wbg_set_depth_fail_op_62ec602580477afc = function(arg0, arg1) {
|
|
1275
|
-
arg0.depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1276
|
-
};
|
|
1277
|
-
imports.wbg.__wbg_set_depth_load_op_102d57f3ddf95461 = function(arg0, arg1) {
|
|
1278
|
-
arg0.depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
1279
|
-
};
|
|
1280
|
-
imports.wbg.__wbg_set_depth_or_array_layers_d7b93db07c5da69d = function(arg0, arg1) {
|
|
1281
|
-
arg0.depthOrArrayLayers = arg1 >>> 0;
|
|
1282
|
-
};
|
|
1283
|
-
imports.wbg.__wbg_set_depth_read_only_aebc24a542debafd = function(arg0, arg1) {
|
|
1284
|
-
arg0.depthReadOnly = arg1 !== 0;
|
|
1285
|
-
};
|
|
1286
|
-
imports.wbg.__wbg_set_depth_stencil_5627e73aaf33912c = function(arg0, arg1) {
|
|
1287
|
-
arg0.depthStencil = arg1;
|
|
1288
|
-
};
|
|
1289
|
-
imports.wbg.__wbg_set_depth_stencil_attachment_04b936535778e362 = function(arg0, arg1) {
|
|
1290
|
-
arg0.depthStencilAttachment = arg1;
|
|
1291
|
-
};
|
|
1292
|
-
imports.wbg.__wbg_set_depth_store_op_610b0a50dbb00eb8 = function(arg0, arg1) {
|
|
1293
|
-
arg0.depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
1294
|
-
};
|
|
1295
|
-
imports.wbg.__wbg_set_depth_write_enabled_f94217df9ff2d60c = function(arg0, arg1) {
|
|
1296
|
-
arg0.depthWriteEnabled = arg1 !== 0;
|
|
1297
|
-
};
|
|
1298
|
-
imports.wbg.__wbg_set_device_dab18ead7bfc077b = function(arg0, arg1) {
|
|
1299
|
-
arg0.device = arg1;
|
|
1300
|
-
};
|
|
1301
|
-
imports.wbg.__wbg_set_dimension_2a75a794a0bfcc94 = function(arg0, arg1) {
|
|
1302
|
-
arg0.dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1303
|
-
};
|
|
1304
|
-
imports.wbg.__wbg_set_dimension_a3c50fb6d43f6cec = function(arg0, arg1) {
|
|
1305
|
-
arg0.dimension = __wbindgen_enum_GpuTextureDimension[arg1];
|
|
1306
|
-
};
|
|
1307
|
-
imports.wbg.__wbg_set_dst_factor_cf872fec841747ac = function(arg0, arg1) {
|
|
1308
|
-
arg0.dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
1309
|
-
};
|
|
1310
|
-
imports.wbg.__wbg_set_end_of_pass_write_index_02ee5189026c1d3a = function(arg0, arg1) {
|
|
1311
|
-
arg0.endOfPassWriteIndex = arg1 >>> 0;
|
|
1312
|
-
};
|
|
1313
|
-
imports.wbg.__wbg_set_entries_1472deaee7053fb7 = function(arg0, arg1) {
|
|
1314
|
-
arg0.entries = arg1;
|
|
1315
|
-
};
|
|
1316
|
-
imports.wbg.__wbg_set_entries_b2258b5ef29810b0 = function(arg0, arg1) {
|
|
1317
|
-
arg0.entries = arg1;
|
|
1318
|
-
};
|
|
1319
|
-
imports.wbg.__wbg_set_entry_point_11f912102ade99b1 = function(arg0, arg1, arg2) {
|
|
1320
|
-
arg0.entryPoint = getStringFromWasm0(arg1, arg2);
|
|
1321
|
-
};
|
|
1322
|
-
imports.wbg.__wbg_set_entry_point_f9224cdb29cbe5df = function(arg0, arg1, arg2) {
|
|
1323
|
-
arg0.entryPoint = getStringFromWasm0(arg1, arg2);
|
|
1324
|
-
};
|
|
1325
|
-
imports.wbg.__wbg_set_external_texture_613e4434100d63ee = function(arg0, arg1) {
|
|
1326
|
-
arg0.externalTexture = arg1;
|
|
1327
|
-
};
|
|
1328
|
-
imports.wbg.__wbg_set_fail_op_73a4e194f4bc914a = function(arg0, arg1) {
|
|
1329
|
-
arg0.failOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1330
|
-
};
|
|
1331
|
-
imports.wbg.__wbg_set_format_1670e760e18ac001 = function(arg0, arg1) {
|
|
1332
|
-
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1333
|
-
};
|
|
1334
|
-
imports.wbg.__wbg_set_format_2141a8a1fd36fb9c = function(arg0, arg1) {
|
|
1335
|
-
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1336
|
-
};
|
|
1337
|
-
imports.wbg.__wbg_set_format_25e4aacc74949e38 = function(arg0, arg1) {
|
|
1338
|
-
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1339
|
-
};
|
|
1340
|
-
imports.wbg.__wbg_set_format_3f7008e9e568f0fc = function(arg0, arg1) {
|
|
1341
|
-
arg0.format = __wbindgen_enum_GpuVertexFormat[arg1];
|
|
1342
|
-
};
|
|
1343
|
-
imports.wbg.__wbg_set_format_4a4fccdfc45bc409 = function(arg0, arg1) {
|
|
1344
|
-
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1345
|
-
};
|
|
1346
|
-
imports.wbg.__wbg_set_format_7696f8290da8a36b = function(arg0, arg1) {
|
|
1347
|
-
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1348
|
-
};
|
|
1349
|
-
imports.wbg.__wbg_set_format_974a01725f579c5d = function(arg0, arg1) {
|
|
1350
|
-
arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
|
|
1351
|
-
};
|
|
1352
|
-
imports.wbg.__wbg_set_fragment_f7ce64feaf1cd7dc = function(arg0, arg1) {
|
|
1353
|
-
arg0.fragment = arg1;
|
|
1354
|
-
};
|
|
1355
|
-
imports.wbg.__wbg_set_front_face_09e32557f8852301 = function(arg0, arg1) {
|
|
1356
|
-
arg0.frontFace = __wbindgen_enum_GpuFrontFace[arg1];
|
|
1357
|
-
};
|
|
1358
|
-
imports.wbg.__wbg_set_g_c31c959457596456 = function(arg0, arg1) {
|
|
1359
|
-
arg0.g = arg1;
|
|
1360
|
-
};
|
|
1361
|
-
imports.wbg.__wbg_set_has_dynamic_offset_fbc1bb343939ed0b = function(arg0, arg1) {
|
|
1362
|
-
arg0.hasDynamicOffset = arg1 !== 0;
|
|
1363
|
-
};
|
|
1364
|
-
imports.wbg.__wbg_set_height_6f8f8ef4cb40e496 = function(arg0, arg1) {
|
|
1365
|
-
arg0.height = arg1 >>> 0;
|
|
1366
|
-
};
|
|
1367
|
-
imports.wbg.__wbg_set_height_710b87344b3d6748 = function(arg0, arg1) {
|
|
1368
|
-
arg0.height = arg1 >>> 0;
|
|
1369
|
-
};
|
|
1370
|
-
imports.wbg.__wbg_set_height_afe09c24165867f7 = function(arg0, arg1) {
|
|
1371
|
-
arg0.height = arg1 >>> 0;
|
|
1372
|
-
};
|
|
1373
|
-
imports.wbg.__wbg_set_label_0ec13ba975f77124 = function(arg0, arg1, arg2) {
|
|
1374
|
-
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1375
|
-
};
|
|
1376
|
-
imports.wbg.__wbg_set_label_3b658d9ce970552c = function(arg0, arg1, arg2) {
|
|
1377
|
-
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1378
|
-
};
|
|
1379
|
-
imports.wbg.__wbg_set_label_48883f5f49e4ec47 = function(arg0, arg1, arg2) {
|
|
1380
|
-
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1381
|
-
};
|
|
1382
|
-
imports.wbg.__wbg_set_label_4bbbc289ddddebd7 = function(arg0, arg1, arg2) {
|
|
1383
|
-
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1384
|
-
};
|
|
1385
|
-
imports.wbg.__wbg_set_label_4d609666f09cfdfb = function(arg0, arg1, arg2) {
|
|
1386
|
-
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1387
|
-
};
|
|
1388
|
-
imports.wbg.__wbg_set_label_4f4264b0041180e2 = function(arg0, arg1, arg2) {
|
|
1389
|
-
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1390
|
-
};
|
|
1391
|
-
imports.wbg.__wbg_set_label_5b46e419b9e88c5e = function(arg0, arg1, arg2) {
|
|
1392
|
-
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1393
|
-
};
|
|
1394
|
-
imports.wbg.__wbg_set_label_95423cd2e1f4b5dd = function(arg0, arg1, arg2) {
|
|
1395
|
-
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1396
|
-
};
|
|
1397
|
-
imports.wbg.__wbg_set_label_c3fc0a66f4ecc82b = function(arg0, arg1, arg2) {
|
|
1398
|
-
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1399
|
-
};
|
|
1400
|
-
imports.wbg.__wbg_set_label_c857f45a8485236a = function(arg0, arg1, arg2) {
|
|
1401
|
-
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1402
|
-
};
|
|
1403
|
-
imports.wbg.__wbg_set_label_dc8df9969898889c = function(arg0, arg1, arg2) {
|
|
1404
|
-
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1405
|
-
};
|
|
1406
|
-
imports.wbg.__wbg_set_label_e3709fe3e82429b5 = function(arg0, arg1, arg2) {
|
|
1407
|
-
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1408
|
-
};
|
|
1409
|
-
imports.wbg.__wbg_set_label_fb5d28b3ba7af11f = function(arg0, arg1, arg2) {
|
|
1410
|
-
arg0.label = getStringFromWasm0(arg1, arg2);
|
|
1411
|
-
};
|
|
1412
|
-
imports.wbg.__wbg_set_layout_7f76289be3294b4a = function(arg0, arg1) {
|
|
1413
|
-
arg0.layout = arg1;
|
|
1414
|
-
};
|
|
1415
|
-
imports.wbg.__wbg_set_layout_c20d48b352b24c1b = function(arg0, arg1) {
|
|
1416
|
-
arg0.layout = arg1;
|
|
1417
|
-
};
|
|
1418
|
-
imports.wbg.__wbg_set_load_op_c71d200e998908b0 = function(arg0, arg1) {
|
|
1419
|
-
arg0.loadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
1420
|
-
};
|
|
1421
|
-
imports.wbg.__wbg_set_lod_max_clamp_aaac5daaecca96d4 = function(arg0, arg1) {
|
|
1422
|
-
arg0.lodMaxClamp = arg1;
|
|
1423
|
-
};
|
|
1424
|
-
imports.wbg.__wbg_set_lod_min_clamp_ed2162d4b198abba = function(arg0, arg1) {
|
|
1425
|
-
arg0.lodMinClamp = arg1;
|
|
1426
|
-
};
|
|
1427
|
-
imports.wbg.__wbg_set_mag_filter_c8a8c1218cd38da6 = function(arg0, arg1) {
|
|
1428
|
-
arg0.magFilter = __wbindgen_enum_GpuFilterMode[arg1];
|
|
1429
|
-
};
|
|
1430
|
-
imports.wbg.__wbg_set_mapped_at_creation_2d003ce549611385 = function(arg0, arg1) {
|
|
1431
|
-
arg0.mappedAtCreation = arg1 !== 0;
|
|
1432
|
-
};
|
|
1433
|
-
imports.wbg.__wbg_set_mask_a933ba2e61c7610a = function(arg0, arg1) {
|
|
1434
|
-
arg0.mask = arg1 >>> 0;
|
|
1435
|
-
};
|
|
1436
|
-
imports.wbg.__wbg_set_max_anisotropy_fb4bae64cb5acf57 = function(arg0, arg1) {
|
|
1437
|
-
arg0.maxAnisotropy = arg1;
|
|
1438
|
-
};
|
|
1439
|
-
imports.wbg.__wbg_set_min_binding_size_308360802ae7a9ba = function(arg0, arg1) {
|
|
1440
|
-
arg0.minBindingSize = arg1;
|
|
1441
|
-
};
|
|
1442
|
-
imports.wbg.__wbg_set_min_filter_2dafbdeb188fd817 = function(arg0, arg1) {
|
|
1443
|
-
arg0.minFilter = __wbindgen_enum_GpuFilterMode[arg1];
|
|
1444
|
-
};
|
|
1445
|
-
imports.wbg.__wbg_set_mip_level_babe1ff64201f0ea = function(arg0, arg1) {
|
|
1446
|
-
arg0.mipLevel = arg1 >>> 0;
|
|
1447
|
-
};
|
|
1448
|
-
imports.wbg.__wbg_set_mip_level_count_cd3197411f4f2432 = function(arg0, arg1) {
|
|
1449
|
-
arg0.mipLevelCount = arg1 >>> 0;
|
|
1450
|
-
};
|
|
1451
|
-
imports.wbg.__wbg_set_mip_level_count_fdc72450a94244ef = function(arg0, arg1) {
|
|
1452
|
-
arg0.mipLevelCount = arg1 >>> 0;
|
|
1453
|
-
};
|
|
1454
|
-
imports.wbg.__wbg_set_mipmap_filter_79f552c459e63aa6 = function(arg0, arg1) {
|
|
1455
|
-
arg0.mipmapFilter = __wbindgen_enum_GpuMipmapFilterMode[arg1];
|
|
1456
|
-
};
|
|
1457
|
-
imports.wbg.__wbg_set_module_18d541838665d831 = function(arg0, arg1) {
|
|
1458
|
-
arg0.module = arg1;
|
|
1459
|
-
};
|
|
1460
|
-
imports.wbg.__wbg_set_module_20641353ebb28712 = function(arg0, arg1) {
|
|
1461
|
-
arg0.module = arg1;
|
|
1462
|
-
};
|
|
1463
|
-
imports.wbg.__wbg_set_multisample_e0f310ea9e40c2d9 = function(arg0, arg1) {
|
|
1464
|
-
arg0.multisample = arg1;
|
|
1465
|
-
};
|
|
1466
|
-
imports.wbg.__wbg_set_multisampled_cd50d8f6709cea1a = function(arg0, arg1) {
|
|
1467
|
-
arg0.multisampled = arg1 !== 0;
|
|
1468
|
-
};
|
|
1469
|
-
imports.wbg.__wbg_set_offset_2e78915f5d65d704 = function(arg0, arg1) {
|
|
1470
|
-
arg0.offset = arg1;
|
|
1471
|
-
};
|
|
1472
|
-
imports.wbg.__wbg_set_offset_405017033a936d89 = function(arg0, arg1) {
|
|
1473
|
-
arg0.offset = arg1;
|
|
1474
|
-
};
|
|
1475
|
-
imports.wbg.__wbg_set_offset_e7ce8b8eaaf46b95 = function(arg0, arg1) {
|
|
1476
|
-
arg0.offset = arg1;
|
|
1477
|
-
};
|
|
1478
|
-
imports.wbg.__wbg_set_operation_b96fabca3716aaa3 = function(arg0, arg1) {
|
|
1479
|
-
arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
|
|
1480
|
-
};
|
|
1481
|
-
imports.wbg.__wbg_set_origin_c5f017d3f09ad7ff = function(arg0, arg1) {
|
|
1482
|
-
arg0.origin = arg1;
|
|
1483
|
-
};
|
|
1484
|
-
imports.wbg.__wbg_set_pass_op_765be90bb2f27220 = function(arg0, arg1) {
|
|
1485
|
-
arg0.passOp = __wbindgen_enum_GpuStencilOperation[arg1];
|
|
1486
|
-
};
|
|
1487
|
-
imports.wbg.__wbg_set_power_preference_39b347bf0d236ce6 = function(arg0, arg1) {
|
|
1488
|
-
arg0.powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
|
|
1489
|
-
};
|
|
1490
|
-
imports.wbg.__wbg_set_primitive_d6456d7efe6b4fe5 = function(arg0, arg1) {
|
|
1491
|
-
arg0.primitive = arg1;
|
|
1492
|
-
};
|
|
1493
|
-
imports.wbg.__wbg_set_query_set_20ecd7f9a16f3ec6 = function(arg0, arg1) {
|
|
1494
|
-
arg0.querySet = arg1;
|
|
1495
|
-
};
|
|
1496
|
-
imports.wbg.__wbg_set_r_07bd987697069496 = function(arg0, arg1) {
|
|
1497
|
-
arg0.r = arg1;
|
|
1498
|
-
};
|
|
1499
|
-
imports.wbg.__wbg_set_required_features_650c9e5dafbaa395 = function(arg0, arg1) {
|
|
1500
|
-
arg0.requiredFeatures = arg1;
|
|
1501
|
-
};
|
|
1502
|
-
imports.wbg.__wbg_set_resolve_target_c18cd4048765732a = function(arg0, arg1) {
|
|
1503
|
-
arg0.resolveTarget = arg1;
|
|
1504
|
-
};
|
|
1505
|
-
imports.wbg.__wbg_set_resource_8cea0fe2c8745c3e = function(arg0, arg1) {
|
|
1506
|
-
arg0.resource = arg1;
|
|
1507
|
-
};
|
|
1508
|
-
imports.wbg.__wbg_set_rows_per_image_2f7969031c71f0d8 = function(arg0, arg1) {
|
|
1509
|
-
arg0.rowsPerImage = arg1 >>> 0;
|
|
1510
|
-
};
|
|
1511
|
-
imports.wbg.__wbg_set_sample_count_07aedd28692aeae8 = function(arg0, arg1) {
|
|
1512
|
-
arg0.sampleCount = arg1 >>> 0;
|
|
1513
|
-
};
|
|
1514
|
-
imports.wbg.__wbg_set_sample_type_601a744a4bd6ea07 = function(arg0, arg1) {
|
|
1515
|
-
arg0.sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
|
|
1516
|
-
};
|
|
1517
|
-
imports.wbg.__wbg_set_sampler_1a2729c0aa194081 = function(arg0, arg1) {
|
|
1518
|
-
arg0.sampler = arg1;
|
|
1519
|
-
};
|
|
1520
|
-
imports.wbg.__wbg_set_shader_location_bdcfdc1009d351b1 = function(arg0, arg1) {
|
|
1521
|
-
arg0.shaderLocation = arg1 >>> 0;
|
|
1522
|
-
};
|
|
1523
|
-
imports.wbg.__wbg_set_size_7a392ee585f87da8 = function(arg0, arg1) {
|
|
1524
|
-
arg0.size = arg1;
|
|
1525
|
-
};
|
|
1526
|
-
imports.wbg.__wbg_set_size_c6bf409f70f4420f = function(arg0, arg1) {
|
|
1527
|
-
arg0.size = arg1;
|
|
1528
|
-
};
|
|
1529
|
-
imports.wbg.__wbg_set_size_f902b266d636bf6e = function(arg0, arg1) {
|
|
1530
|
-
arg0.size = arg1;
|
|
1531
|
-
};
|
|
1532
|
-
imports.wbg.__wbg_set_src_factor_50cef27aa8aece91 = function(arg0, arg1) {
|
|
1533
|
-
arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
|
|
1534
|
-
};
|
|
1535
|
-
imports.wbg.__wbg_set_stencil_back_e740415a5c0b637a = function(arg0, arg1) {
|
|
1536
|
-
arg0.stencilBack = arg1;
|
|
1537
|
-
};
|
|
1538
|
-
imports.wbg.__wbg_set_stencil_clear_value_6be76b512040398d = function(arg0, arg1) {
|
|
1539
|
-
arg0.stencilClearValue = arg1 >>> 0;
|
|
1540
|
-
};
|
|
1541
|
-
imports.wbg.__wbg_set_stencil_front_03185e1c3bafa411 = function(arg0, arg1) {
|
|
1542
|
-
arg0.stencilFront = arg1;
|
|
1543
|
-
};
|
|
1544
|
-
imports.wbg.__wbg_set_stencil_load_op_084f44352b978b3d = function(arg0, arg1) {
|
|
1545
|
-
arg0.stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
|
|
1546
|
-
};
|
|
1547
|
-
imports.wbg.__wbg_set_stencil_read_mask_e2736fc4af9399e4 = function(arg0, arg1) {
|
|
1548
|
-
arg0.stencilReadMask = arg1 >>> 0;
|
|
1549
|
-
};
|
|
1550
|
-
imports.wbg.__wbg_set_stencil_read_only_31f3d99299373c12 = function(arg0, arg1) {
|
|
1551
|
-
arg0.stencilReadOnly = arg1 !== 0;
|
|
1552
|
-
};
|
|
1553
|
-
imports.wbg.__wbg_set_stencil_store_op_428fb4955e4899d6 = function(arg0, arg1) {
|
|
1554
|
-
arg0.stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
1555
|
-
};
|
|
1556
|
-
imports.wbg.__wbg_set_stencil_write_mask_b1d3e1655305a187 = function(arg0, arg1) {
|
|
1557
|
-
arg0.stencilWriteMask = arg1 >>> 0;
|
|
1558
|
-
};
|
|
1559
|
-
imports.wbg.__wbg_set_step_mode_98e49f7877daf1c5 = function(arg0, arg1) {
|
|
1560
|
-
arg0.stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
|
|
1561
|
-
};
|
|
1562
|
-
imports.wbg.__wbg_set_storage_texture_6ee0cbeb50698110 = function(arg0, arg1) {
|
|
1563
|
-
arg0.storageTexture = arg1;
|
|
1564
|
-
};
|
|
1565
|
-
imports.wbg.__wbg_set_store_op_e761080d541a10cc = function(arg0, arg1) {
|
|
1566
|
-
arg0.storeOp = __wbindgen_enum_GpuStoreOp[arg1];
|
|
1567
|
-
};
|
|
1568
|
-
imports.wbg.__wbg_set_strip_index_format_16df9e33c7aa97e6 = function(arg0, arg1) {
|
|
1569
|
-
arg0.stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
|
|
1570
|
-
};
|
|
1571
|
-
imports.wbg.__wbg_set_targets_9fd1ec0b8edc895c = function(arg0, arg1) {
|
|
1572
|
-
arg0.targets = arg1;
|
|
1573
|
-
};
|
|
1574
|
-
imports.wbg.__wbg_set_texture_f03807916f70dcc6 = function(arg0, arg1) {
|
|
1575
|
-
arg0.texture = arg1;
|
|
1576
|
-
};
|
|
1577
|
-
imports.wbg.__wbg_set_texture_f8ae0bb4bb159354 = function(arg0, arg1) {
|
|
1578
|
-
arg0.texture = arg1;
|
|
1579
|
-
};
|
|
1580
|
-
imports.wbg.__wbg_set_timestamp_writes_3998dbfa21e48dbe = function(arg0, arg1) {
|
|
1581
|
-
arg0.timestampWrites = arg1;
|
|
1582
|
-
};
|
|
1583
|
-
imports.wbg.__wbg_set_topology_036632318a24227d = function(arg0, arg1) {
|
|
1584
|
-
arg0.topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
|
|
1585
|
-
};
|
|
1586
|
-
imports.wbg.__wbg_set_type_0cb4cdb5eff87f31 = function(arg0, arg1) {
|
|
1587
|
-
arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
|
|
1588
|
-
};
|
|
1589
|
-
imports.wbg.__wbg_set_type_d05fa8415ad0761f = function(arg0, arg1) {
|
|
1590
|
-
arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
|
|
1591
|
-
};
|
|
1592
|
-
imports.wbg.__wbg_set_unclipped_depth_17a5ab83d4e7cadc = function(arg0, arg1) {
|
|
1593
|
-
arg0.unclippedDepth = arg1 !== 0;
|
|
1594
|
-
};
|
|
1595
|
-
imports.wbg.__wbg_set_usage_3d569e7b02227032 = function(arg0, arg1) {
|
|
1596
|
-
arg0.usage = arg1 >>> 0;
|
|
1597
|
-
};
|
|
1598
|
-
imports.wbg.__wbg_set_usage_ac222ece73f994b7 = function(arg0, arg1) {
|
|
1599
|
-
arg0.usage = arg1 >>> 0;
|
|
1600
|
-
};
|
|
1601
|
-
imports.wbg.__wbg_set_usage_ca00520767c8a475 = function(arg0, arg1) {
|
|
1602
|
-
arg0.usage = arg1 >>> 0;
|
|
1603
|
-
};
|
|
1604
|
-
imports.wbg.__wbg_set_usage_fe13088353b65bee = function(arg0, arg1) {
|
|
1605
|
-
arg0.usage = arg1 >>> 0;
|
|
1606
|
-
};
|
|
1607
|
-
imports.wbg.__wbg_set_vertex_76b7ac4bdfbb06f4 = function(arg0, arg1) {
|
|
1608
|
-
arg0.vertex = arg1;
|
|
1609
|
-
};
|
|
1610
|
-
imports.wbg.__wbg_set_view_1ef41eeb26eaf718 = function(arg0, arg1) {
|
|
1611
|
-
arg0.view = arg1;
|
|
1612
|
-
};
|
|
1613
|
-
imports.wbg.__wbg_set_view_46b654a12649c6f6 = function(arg0, arg1) {
|
|
1614
|
-
arg0.view = arg1;
|
|
1615
|
-
};
|
|
1616
|
-
imports.wbg.__wbg_set_view_dimension_12c332494a2697dc = function(arg0, arg1) {
|
|
1617
|
-
arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1618
|
-
};
|
|
1619
|
-
imports.wbg.__wbg_set_view_dimension_31b9fd7126132e82 = function(arg0, arg1) {
|
|
1620
|
-
arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
|
|
1621
|
-
};
|
|
1622
|
-
imports.wbg.__wbg_set_view_formats_152cb995add2ee4e = function(arg0, arg1) {
|
|
1623
|
-
arg0.viewFormats = arg1;
|
|
1624
|
-
};
|
|
1625
|
-
imports.wbg.__wbg_set_view_formats_cc77650da6c3b25b = function(arg0, arg1) {
|
|
1626
|
-
arg0.viewFormats = arg1;
|
|
1627
|
-
};
|
|
1628
|
-
imports.wbg.__wbg_set_visibility_6d1fc94552f22ac3 = function(arg0, arg1) {
|
|
1629
|
-
arg0.visibility = arg1 >>> 0;
|
|
1630
|
-
};
|
|
1631
|
-
imports.wbg.__wbg_set_width_0a22c810f06a5152 = function(arg0, arg1) {
|
|
1632
|
-
arg0.width = arg1 >>> 0;
|
|
1633
|
-
};
|
|
1634
|
-
imports.wbg.__wbg_set_width_5ee1e2d4a0fd929b = function(arg0, arg1) {
|
|
1635
|
-
arg0.width = arg1 >>> 0;
|
|
1636
|
-
};
|
|
1637
|
-
imports.wbg.__wbg_set_width_7ff7a22c6e9f423e = function(arg0, arg1) {
|
|
1638
|
-
arg0.width = arg1 >>> 0;
|
|
1639
|
-
};
|
|
1640
|
-
imports.wbg.__wbg_set_write_mask_c92743022356850e = function(arg0, arg1) {
|
|
1641
|
-
arg0.writeMask = arg1 >>> 0;
|
|
1642
|
-
};
|
|
1643
|
-
imports.wbg.__wbg_set_x_0771b0f86d56cdf9 = function(arg0, arg1) {
|
|
1644
|
-
arg0.x = arg1 >>> 0;
|
|
1645
|
-
};
|
|
1646
|
-
imports.wbg.__wbg_set_y_668d1578881576dd = function(arg0, arg1) {
|
|
1647
|
-
arg0.y = arg1 >>> 0;
|
|
1648
|
-
};
|
|
1649
|
-
imports.wbg.__wbg_set_z_3e24a918a76c816d = function(arg0, arg1) {
|
|
1650
|
-
arg0.z = arg1 >>> 0;
|
|
1651
|
-
};
|
|
1652
|
-
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
1653
|
-
const ret = typeof global === 'undefined' ? null : global;
|
|
1654
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1655
|
-
};
|
|
1656
|
-
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
1657
|
-
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1658
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1659
|
-
};
|
|
1660
|
-
imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
1661
|
-
const ret = typeof self === 'undefined' ? null : self;
|
|
1662
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1663
|
-
};
|
|
1664
|
-
imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
1665
|
-
const ret = typeof window === 'undefined' ? null : window;
|
|
1666
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1667
|
-
};
|
|
1668
|
-
imports.wbg.__wbg_status_9bfc680efca4bdfd = function(arg0) {
|
|
1669
|
-
const ret = arg0.status;
|
|
1670
|
-
return ret;
|
|
1671
|
-
};
|
|
1672
|
-
imports.wbg.__wbg_submit_a1850a1cb6baf64a = function(arg0, arg1) {
|
|
1673
|
-
arg0.submit(arg1);
|
|
1674
|
-
};
|
|
1675
|
-
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
1676
|
-
const ret = arg0.then(arg1, arg2);
|
|
1677
|
-
return ret;
|
|
1678
|
-
};
|
|
1679
|
-
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
1680
|
-
const ret = arg0.then(arg1);
|
|
1681
|
-
return ret;
|
|
1682
|
-
};
|
|
1683
|
-
imports.wbg.__wbg_unmap_ab94ab04cfb14bee = function(arg0) {
|
|
1684
|
-
arg0.unmap();
|
|
1685
|
-
};
|
|
1686
|
-
imports.wbg.__wbg_wasmgame_new = function(arg0) {
|
|
1687
|
-
const ret = WasmGame.__wrap(arg0);
|
|
1688
|
-
return ret;
|
|
1689
|
-
};
|
|
1690
|
-
imports.wbg.__wbg_writeBuffer_b203cf79b98d6dd8 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1691
|
-
arg0.writeBuffer(arg1, arg2, arg3, arg4, arg5);
|
|
1692
|
-
}, arguments) };
|
|
1693
|
-
imports.wbg.__wbg_writeTexture_0466bf7d7d35e04e = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1694
|
-
arg0.writeTexture(arg1, arg2, arg3, arg4);
|
|
1695
|
-
}, arguments) };
|
|
1696
|
-
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1697
|
-
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1698
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
1699
|
-
return ret;
|
|
1700
|
-
};
|
|
1701
|
-
imports.wbg.__wbindgen_cast_882eece33d9122b0 = function(arg0, arg1) {
|
|
1702
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 633, function: Function { arguments: [Externref], shim_idx: 634, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1703
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h918525bae50cf890, wasm_bindgen__convert__closures_____invoke__hea5223c55c1708a8);
|
|
1704
|
-
return ret;
|
|
1705
|
-
};
|
|
1706
|
-
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
1707
|
-
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1708
|
-
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1709
|
-
return ret;
|
|
1710
|
-
};
|
|
1711
|
-
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
1712
|
-
// Cast intrinsic for `F64 -> Externref`.
|
|
1713
|
-
const ret = arg0;
|
|
1714
|
-
return ret;
|
|
1435
|
+
function wasm_bindgen__convert__closures_____invoke__h40c8324309a93f8a(arg0, arg1, arg2, arg3) {
|
|
1436
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h40c8324309a93f8a(arg0, arg1, arg2, arg3);
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
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"];
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
const __wbindgen_enum_GpuBlendOperation = ["add", "subtract", "reverse-subtract", "min", "max"];
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
|
|
1450
|
+
|
|
1451
|
+
|
|
1452
|
+
const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
|
|
1459
|
+
|
|
1460
|
+
|
|
1461
|
+
const __wbindgen_enum_GpuFilterMode = ["nearest", "linear"];
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+
const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
|
|
1471
|
+
|
|
1472
|
+
|
|
1473
|
+
const __wbindgen_enum_GpuMipmapFilterMode = ["nearest", "linear"];
|
|
1474
|
+
|
|
1475
|
+
|
|
1476
|
+
const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
|
|
1477
|
+
|
|
1478
|
+
|
|
1479
|
+
const __wbindgen_enum_GpuPrimitiveTopology = ["point-list", "line-list", "line-strip", "triangle-list", "triangle-strip"];
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
const __wbindgen_enum_GpuStencilOperation = ["keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap"];
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
const __wbindgen_enum_GpuStoreOp = ["store", "discard"];
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
|
|
1498
|
+
|
|
1499
|
+
|
|
1500
|
+
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"];
|
|
1501
|
+
|
|
1502
|
+
|
|
1503
|
+
const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
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"];
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
const __wbindgen_enum_GpuVertexStepMode = ["vertex", "instance"];
|
|
1513
|
+
const WasmGameFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1514
|
+
? { register: () => {}, unregister: () => {} }
|
|
1515
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmgame_free(ptr >>> 0, 1));
|
|
1516
|
+
const WasmTransform2DFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1517
|
+
? { register: () => {}, unregister: () => {} }
|
|
1518
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtransform2d_free(ptr >>> 0, 1));
|
|
1519
|
+
|
|
1520
|
+
function addToExternrefTable0(obj) {
|
|
1521
|
+
const idx = wasm.__externref_table_alloc();
|
|
1522
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
1523
|
+
return idx;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1527
|
+
? { register: () => {}, unregister: () => {} }
|
|
1528
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
1529
|
+
|
|
1530
|
+
function debugString(val) {
|
|
1531
|
+
// primitive types
|
|
1532
|
+
const type = typeof val;
|
|
1533
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
1534
|
+
return `${val}`;
|
|
1535
|
+
}
|
|
1536
|
+
if (type == 'string') {
|
|
1537
|
+
return `"${val}"`;
|
|
1538
|
+
}
|
|
1539
|
+
if (type == 'symbol') {
|
|
1540
|
+
const description = val.description;
|
|
1541
|
+
if (description == null) {
|
|
1542
|
+
return 'Symbol';
|
|
1543
|
+
} else {
|
|
1544
|
+
return `Symbol(${description})`;
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
if (type == 'function') {
|
|
1548
|
+
const name = val.name;
|
|
1549
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
1550
|
+
return `Function(${name})`;
|
|
1551
|
+
} else {
|
|
1552
|
+
return 'Function';
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
// objects
|
|
1556
|
+
if (Array.isArray(val)) {
|
|
1557
|
+
const length = val.length;
|
|
1558
|
+
let debug = '[';
|
|
1559
|
+
if (length > 0) {
|
|
1560
|
+
debug += debugString(val[0]);
|
|
1561
|
+
}
|
|
1562
|
+
for(let i = 1; i < length; i++) {
|
|
1563
|
+
debug += ', ' + debugString(val[i]);
|
|
1564
|
+
}
|
|
1565
|
+
debug += ']';
|
|
1566
|
+
return debug;
|
|
1567
|
+
}
|
|
1568
|
+
// Test for built-in
|
|
1569
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
1570
|
+
let className;
|
|
1571
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
1572
|
+
className = builtInMatches[1];
|
|
1573
|
+
} else {
|
|
1574
|
+
// Failed to match the standard '[object ClassName]'
|
|
1575
|
+
return toString.call(val);
|
|
1576
|
+
}
|
|
1577
|
+
if (className == 'Object') {
|
|
1578
|
+
// we're a user defined class or Object
|
|
1579
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1580
|
+
// easier than looping through ownProperties of `val`.
|
|
1581
|
+
try {
|
|
1582
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1583
|
+
} catch (_) {
|
|
1584
|
+
return 'Object';
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
// errors
|
|
1588
|
+
if (val instanceof Error) {
|
|
1589
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1590
|
+
}
|
|
1591
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1592
|
+
return className;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
1596
|
+
ptr = ptr >>> 0;
|
|
1597
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
function getArrayU64FromWasm0(ptr, len) {
|
|
1601
|
+
ptr = ptr >>> 0;
|
|
1602
|
+
return getBigUint64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
1606
|
+
ptr = ptr >>> 0;
|
|
1607
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
let cachedBigUint64ArrayMemory0 = null;
|
|
1611
|
+
function getBigUint64ArrayMemory0() {
|
|
1612
|
+
if (cachedBigUint64ArrayMemory0 === null || cachedBigUint64ArrayMemory0.byteLength === 0) {
|
|
1613
|
+
cachedBigUint64ArrayMemory0 = new BigUint64Array(wasm.memory.buffer);
|
|
1614
|
+
}
|
|
1615
|
+
return cachedBigUint64ArrayMemory0;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
let cachedDataViewMemory0 = null;
|
|
1619
|
+
function getDataViewMemory0() {
|
|
1620
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
1621
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
1622
|
+
}
|
|
1623
|
+
return cachedDataViewMemory0;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
function getStringFromWasm0(ptr, len) {
|
|
1627
|
+
ptr = ptr >>> 0;
|
|
1628
|
+
return decodeText(ptr, len);
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
let cachedUint32ArrayMemory0 = null;
|
|
1632
|
+
function getUint32ArrayMemory0() {
|
|
1633
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
1634
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
1635
|
+
}
|
|
1636
|
+
return cachedUint32ArrayMemory0;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
let cachedUint8ArrayMemory0 = null;
|
|
1640
|
+
function getUint8ArrayMemory0() {
|
|
1641
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
1642
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
1643
|
+
}
|
|
1644
|
+
return cachedUint8ArrayMemory0;
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
function handleError(f, args) {
|
|
1648
|
+
try {
|
|
1649
|
+
return f.apply(this, args);
|
|
1650
|
+
} catch (e) {
|
|
1651
|
+
const idx = addToExternrefTable0(e);
|
|
1652
|
+
wasm.__wbindgen_exn_store(idx);
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
function isLikeNone(x) {
|
|
1657
|
+
return x === undefined || x === null;
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
1661
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
1662
|
+
const real = (...args) => {
|
|
1663
|
+
|
|
1664
|
+
// First up with a closure we increment the internal reference
|
|
1665
|
+
// count. This ensures that the Rust closure environment won't
|
|
1666
|
+
// be deallocated while we're invoking it.
|
|
1667
|
+
state.cnt++;
|
|
1668
|
+
const a = state.a;
|
|
1669
|
+
state.a = 0;
|
|
1670
|
+
try {
|
|
1671
|
+
return f(a, state.b, ...args);
|
|
1672
|
+
} finally {
|
|
1673
|
+
state.a = a;
|
|
1674
|
+
real._wbg_cb_unref();
|
|
1675
|
+
}
|
|
1715
1676
|
};
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
table.set(offset + 2, true);
|
|
1723
|
-
table.set(offset + 3, false);
|
|
1677
|
+
real._wbg_cb_unref = () => {
|
|
1678
|
+
if (--state.cnt === 0) {
|
|
1679
|
+
state.dtor(state.a, state.b);
|
|
1680
|
+
state.a = 0;
|
|
1681
|
+
CLOSURE_DTORS.unregister(state);
|
|
1682
|
+
}
|
|
1724
1683
|
};
|
|
1684
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
1685
|
+
return real;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
1689
|
+
if (realloc === undefined) {
|
|
1690
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1691
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
1692
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
1693
|
+
WASM_VECTOR_LEN = buf.length;
|
|
1694
|
+
return ptr;
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
let len = arg.length;
|
|
1698
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1699
|
+
|
|
1700
|
+
const mem = getUint8ArrayMemory0();
|
|
1701
|
+
|
|
1702
|
+
let offset = 0;
|
|
1703
|
+
|
|
1704
|
+
for (; offset < len; offset++) {
|
|
1705
|
+
const code = arg.charCodeAt(offset);
|
|
1706
|
+
if (code > 0x7F) break;
|
|
1707
|
+
mem[ptr + offset] = code;
|
|
1708
|
+
}
|
|
1709
|
+
if (offset !== len) {
|
|
1710
|
+
if (offset !== 0) {
|
|
1711
|
+
arg = arg.slice(offset);
|
|
1712
|
+
}
|
|
1713
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1714
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1715
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1716
|
+
|
|
1717
|
+
offset += ret.written;
|
|
1718
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1719
|
+
}
|
|
1725
1720
|
|
|
1726
|
-
|
|
1721
|
+
WASM_VECTOR_LEN = offset;
|
|
1722
|
+
return ptr;
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
function takeFromExternrefTable0(idx) {
|
|
1726
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1727
|
+
wasm.__externref_table_dealloc(idx);
|
|
1728
|
+
return value;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1732
|
+
cachedTextDecoder.decode();
|
|
1733
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1734
|
+
let numBytesDecoded = 0;
|
|
1735
|
+
function decodeText(ptr, len) {
|
|
1736
|
+
numBytesDecoded += len;
|
|
1737
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1738
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1739
|
+
cachedTextDecoder.decode();
|
|
1740
|
+
numBytesDecoded = len;
|
|
1741
|
+
}
|
|
1742
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1746
|
+
|
|
1747
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
1748
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
1749
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1750
|
+
view.set(buf);
|
|
1751
|
+
return {
|
|
1752
|
+
read: arg.length,
|
|
1753
|
+
written: buf.length
|
|
1754
|
+
};
|
|
1755
|
+
};
|
|
1727
1756
|
}
|
|
1728
1757
|
|
|
1758
|
+
let WASM_VECTOR_LEN = 0;
|
|
1759
|
+
|
|
1760
|
+
let wasmModule, wasm;
|
|
1729
1761
|
function __wbg_finalize_init(instance, module) {
|
|
1730
1762
|
wasm = instance.exports;
|
|
1731
|
-
|
|
1763
|
+
wasmModule = module;
|
|
1732
1764
|
cachedBigUint64ArrayMemory0 = null;
|
|
1733
1765
|
cachedDataViewMemory0 = null;
|
|
1734
1766
|
cachedUint32ArrayMemory0 = null;
|
|
1735
1767
|
cachedUint8ArrayMemory0 = null;
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
1768
|
wasm.__wbindgen_start();
|
|
1739
1769
|
return wasm;
|
|
1740
1770
|
}
|
|
1741
1771
|
|
|
1772
|
+
async function __wbg_load(module, imports) {
|
|
1773
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
1774
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1775
|
+
try {
|
|
1776
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1777
|
+
} catch (e) {
|
|
1778
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
1779
|
+
|
|
1780
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1781
|
+
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);
|
|
1782
|
+
|
|
1783
|
+
} else { throw e; }
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
const bytes = await module.arrayBuffer();
|
|
1788
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
1789
|
+
} else {
|
|
1790
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
1791
|
+
|
|
1792
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
1793
|
+
return { instance, module };
|
|
1794
|
+
} else {
|
|
1795
|
+
return instance;
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
function expectedResponseType(type) {
|
|
1800
|
+
switch (type) {
|
|
1801
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
1802
|
+
}
|
|
1803
|
+
return false;
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1742
1807
|
function initSync(module) {
|
|
1743
1808
|
if (wasm !== undefined) return wasm;
|
|
1744
1809
|
|
|
1745
1810
|
|
|
1746
|
-
if (
|
|
1811
|
+
if (module !== undefined) {
|
|
1747
1812
|
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1748
1813
|
({module} = module)
|
|
1749
1814
|
} else {
|
|
@@ -1763,7 +1828,7 @@ async function __wbg_init(module_or_path) {
|
|
|
1763
1828
|
if (wasm !== undefined) return wasm;
|
|
1764
1829
|
|
|
1765
1830
|
|
|
1766
|
-
if (
|
|
1831
|
+
if (module_or_path !== undefined) {
|
|
1767
1832
|
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1768
1833
|
({module_or_path} = module_or_path)
|
|
1769
1834
|
} else {
|
|
@@ -1771,7 +1836,7 @@ async function __wbg_init(module_or_path) {
|
|
|
1771
1836
|
}
|
|
1772
1837
|
}
|
|
1773
1838
|
|
|
1774
|
-
if (
|
|
1839
|
+
if (module_or_path === undefined) {
|
|
1775
1840
|
module_or_path = new URL('goud_engine_bg.wasm', import.meta.url);
|
|
1776
1841
|
}
|
|
1777
1842
|
const imports = __wbg_get_imports();
|
|
@@ -1785,5 +1850,4 @@ async function __wbg_init(module_or_path) {
|
|
|
1785
1850
|
return __wbg_finalize_init(instance, module);
|
|
1786
1851
|
}
|
|
1787
1852
|
|
|
1788
|
-
export { initSync };
|
|
1789
|
-
export default __wbg_init;
|
|
1853
|
+
export { initSync, __wbg_init as default };
|