@mediapipe/tasks-vision 0.1.0-alpha-4 → 0.1.0-alpha-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -23
- package/package.json +1 -1
- package/vision.d.ts +339 -8
- package/vision_bundle.js +1 -1
- package/wasm/vision_wasm_internal.js +450 -309
- package/wasm/vision_wasm_internal.wasm +0 -0
- package/wasm/vision_wasm_nosimd_internal.js +439 -308
- package/wasm/vision_wasm_nosimd_internal.wasm +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Build
|
|
1
|
+
// Build 519727428
|
|
2
2
|
|
|
3
3
|
var ModuleFactory = (() => {
|
|
4
4
|
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
|
|
@@ -466,10 +466,10 @@ function createWasm() {
|
|
|
466
466
|
function receiveInstance(instance, module) {
|
|
467
467
|
var exports = instance.exports;
|
|
468
468
|
Module["asm"] = exports;
|
|
469
|
-
wasmMemory = Module["asm"]["
|
|
469
|
+
wasmMemory = Module["asm"]["hd"];
|
|
470
470
|
updateGlobalBufferAndViews(wasmMemory.buffer);
|
|
471
|
-
wasmTable = Module["asm"]["
|
|
472
|
-
addOnInit(Module["asm"]["
|
|
471
|
+
wasmTable = Module["asm"]["jd"];
|
|
472
|
+
addOnInit(Module["asm"]["id"]);
|
|
473
473
|
removeRunDependency("wasm-instantiate");
|
|
474
474
|
}
|
|
475
475
|
addRunDependency("wasm-instantiate");
|
|
@@ -520,12 +520,15 @@ var tempDouble;
|
|
|
520
520
|
var tempI64;
|
|
521
521
|
|
|
522
522
|
var ASM_CONSTS = {
|
|
523
|
-
|
|
523
|
+
1170076: $0 => {
|
|
524
524
|
const canvas = Emval.toValue($0);
|
|
525
525
|
const context = canvas.getContext("webgpu");
|
|
526
526
|
return JsValStore.add(context.getCurrentTexture());
|
|
527
527
|
},
|
|
528
|
-
|
|
528
|
+
1170211: () => {
|
|
529
|
+
return typeof HTMLCanvasElement !== "undefined";
|
|
530
|
+
},
|
|
531
|
+
1170266: ($0, $1, $2, $3, $4) => {
|
|
529
532
|
const drawable = Emval.toValue($0);
|
|
530
533
|
const device = JsValStore.get($1);
|
|
531
534
|
const texture = JsValStore.get($2);
|
|
@@ -537,7 +540,7 @@ var ASM_CONSTS = {
|
|
|
537
540
|
texture: texture
|
|
538
541
|
}, [ width, height ]);
|
|
539
542
|
},
|
|
540
|
-
|
|
543
|
+
1170517: ($0, $1, $2, $3) => {
|
|
541
544
|
const sourceExtTex = Emval.toValue($0);
|
|
542
545
|
const device = JsValStore.get($1);
|
|
543
546
|
const sampler = JsValStore.get($2);
|
|
@@ -554,30 +557,30 @@ var ASM_CONSTS = {
|
|
|
554
557
|
});
|
|
555
558
|
return JsValStore.add(bindGroup);
|
|
556
559
|
},
|
|
557
|
-
|
|
560
|
+
1170865: ($0, $1) => {
|
|
558
561
|
const inputArray = Emval.toValue($0);
|
|
559
562
|
const output = Emval.toValue($1);
|
|
560
563
|
const ctx = output.getContext("2d");
|
|
561
564
|
const image_data = new ImageData(inputArray, output.width, output.height);
|
|
562
565
|
ctx.putImageData(image_data, 0, 0);
|
|
563
566
|
},
|
|
564
|
-
|
|
567
|
+
1171089: ($0, $1) => {
|
|
565
568
|
const input = Emval.toValue($0);
|
|
566
569
|
const outputArray = Emval.toValue($1);
|
|
567
570
|
const ctx = input.getContext("2d");
|
|
568
571
|
const data = ctx.getImageData(0, 0, input.width, input.height);
|
|
569
572
|
outputArray.set(data.data);
|
|
570
573
|
},
|
|
571
|
-
|
|
574
|
+
1171293: ($0, $1) => {
|
|
572
575
|
const input = Emval.toValue($0);
|
|
573
576
|
const output = Emval.toValue($1);
|
|
574
577
|
const ctx = output.getContext("2d");
|
|
575
578
|
ctx.drawImage(input, 0, 0);
|
|
576
579
|
},
|
|
577
|
-
|
|
580
|
+
1171429: () => {
|
|
578
581
|
return !!Module["preinitializedWebGPUDevice"];
|
|
579
582
|
},
|
|
580
|
-
|
|
583
|
+
1171480: () => {
|
|
581
584
|
let init_once = true;
|
|
582
585
|
if (init_once) {
|
|
583
586
|
const cachedFindCanvasEventTarget = findCanvasEventTarget;
|
|
@@ -603,15 +606,15 @@ var ASM_CONSTS = {
|
|
|
603
606
|
init_once = false;
|
|
604
607
|
}
|
|
605
608
|
},
|
|
606
|
-
|
|
609
|
+
1172265: () => {
|
|
607
610
|
return typeof wasmOffsetConverter !== "undefined";
|
|
608
611
|
}
|
|
609
612
|
};
|
|
610
613
|
|
|
611
614
|
function JsWrapImageConverter() {
|
|
612
615
|
if (!Module._imageConverter) {
|
|
613
|
-
Module._imageConverter = (binaryPtr, binarySize, width, height, makeDeepCopy, outputType) => {
|
|
614
|
-
const imageData = new outputType(makeDeepCopy ? Module.HEAPU8.slice(binaryPtr, binaryPtr + binarySize).buffer : Module.HEAPU8.buffer, binaryPtr, width * height);
|
|
616
|
+
Module._imageConverter = (binaryPtr, binarySize, width, height, numChannels, makeDeepCopy, outputType) => {
|
|
617
|
+
const imageData = new outputType(makeDeepCopy ? Module.HEAPU8.slice(binaryPtr, binaryPtr + binarySize).buffer : Module.HEAPU8.buffer, binaryPtr, width * height * numChannels);
|
|
615
618
|
return {
|
|
616
619
|
data: imageData,
|
|
617
620
|
width: width,
|
|
@@ -621,73 +624,93 @@ function JsWrapImageConverter() {
|
|
|
621
624
|
}
|
|
622
625
|
}
|
|
623
626
|
|
|
624
|
-
function
|
|
625
|
-
const image = Module._imageConverter(binary_ptr, binary_size, width, height, make_deep_copy,
|
|
627
|
+
function JsOnUint8ClampedArrayImageListener(output_stream_name, binary_ptr, binary_size, width, height, num_channels, make_deep_copy, timestamp_ms) {
|
|
628
|
+
const image = Module._imageConverter(binary_ptr, binary_size, width, height, num_channels, make_deep_copy, Uint8ClampedArray);
|
|
626
629
|
Module._wrapSimpleListenerOutput(output_stream_name, image, timestamp_ms);
|
|
627
630
|
}
|
|
628
631
|
|
|
629
|
-
function
|
|
630
|
-
const image = Module._imageConverter(binary_ptr, binary_size, width, height, make_deep_copy, Float32Array);
|
|
632
|
+
function JsOnFloat32ArrayImageListener(output_stream_name, binary_ptr, binary_size, width, height, num_channels, make_deep_copy, timestamp_ms) {
|
|
633
|
+
const image = Module._imageConverter(binary_ptr, binary_size, width, height, num_channels, make_deep_copy, Float32Array);
|
|
631
634
|
Module._wrapSimpleListenerOutput(output_stream_name, image, timestamp_ms);
|
|
632
635
|
}
|
|
633
636
|
|
|
634
|
-
function
|
|
635
|
-
|
|
636
|
-
Module.
|
|
637
|
+
function JsOnWebGLTextureListener(output_stream_name, name, width, height, timestamp_ms) {
|
|
638
|
+
Module._wrapSimpleListenerOutput(output_stream_name, {
|
|
639
|
+
data: Module.GL.textures[name],
|
|
640
|
+
width: width,
|
|
641
|
+
height: height
|
|
642
|
+
}, timestamp_ms);
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
function JsOnUint8ClampedArrayImageVectorListener(output_stream_name, binary_ptr, binary_size, width, height, num_channels, make_deep_copy, timestamp_ms) {
|
|
646
|
+
const image = Module._imageConverter(binary_ptr, binary_size, width, height, num_channels, make_deep_copy, Uint8ClampedArray);
|
|
647
|
+
Module._wrapSimpleListenerOutput(output_stream_name, image, false, timestamp_ms);
|
|
637
648
|
}
|
|
638
649
|
|
|
639
|
-
function
|
|
640
|
-
const image = Module._imageConverter(binary_ptr, binary_size, width, height, make_deep_copy, Float32Array);
|
|
641
|
-
Module._wrapSimpleListenerOutput(output_stream_name, image,
|
|
650
|
+
function JsOnFloat32ArrayImageVectorListener(output_stream_name, binary_ptr, binary_size, width, height, num_channels, make_deep_copy, timestamp_ms) {
|
|
651
|
+
const image = Module._imageConverter(binary_ptr, binary_size, width, height, num_channels, make_deep_copy, Float32Array);
|
|
652
|
+
Module._wrapSimpleListenerOutput(output_stream_name, image, false, timestamp_ms);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
function JsOnWebGLTextureVectorListener(output_stream_name, name, width, height, timestamp_ms) {
|
|
656
|
+
Module._wrapSimpleListenerOutput(output_stream_name, {
|
|
657
|
+
data: Module.GL.textures[name],
|
|
658
|
+
width: width,
|
|
659
|
+
height: height
|
|
660
|
+
}, false, timestamp_ms);
|
|
642
661
|
}
|
|
643
662
|
|
|
644
663
|
function JsOnEmptyPacketListener(output_stream_name, timestamp) {
|
|
645
664
|
Module._wrapEmptyPacketListenerOutput(output_stream_name, timestamp);
|
|
646
665
|
}
|
|
647
666
|
|
|
667
|
+
function JsOnVectorFinishedListener(output_stream_name, timestamp) {
|
|
668
|
+
Module._wrapSimpleListenerOutput(output_stream_name, undefined, true, timestamp);
|
|
669
|
+
}
|
|
670
|
+
|
|
648
671
|
function JsOnSimpleListenerBool(output_stream_name, out_data, timestamp) {
|
|
649
672
|
Module._wrapSimpleListenerOutput(output_stream_name, out_data, timestamp);
|
|
650
673
|
}
|
|
651
674
|
|
|
652
|
-
function JsOnVectorListenerBool(output_stream_name, out_data,
|
|
653
|
-
Module._wrapSimpleListenerOutput(output_stream_name, out_data,
|
|
675
|
+
function JsOnVectorListenerBool(output_stream_name, out_data, timestamp) {
|
|
676
|
+
Module._wrapSimpleListenerOutput(output_stream_name, out_data, false, timestamp);
|
|
654
677
|
}
|
|
655
678
|
|
|
656
679
|
function JsOnSimpleListenerInt(output_stream_name, out_data, timestamp) {
|
|
657
680
|
Module._wrapSimpleListenerOutput(output_stream_name, out_data, timestamp);
|
|
658
681
|
}
|
|
659
682
|
|
|
660
|
-
function JsOnVectorListenerInt(output_stream_name, out_data,
|
|
661
|
-
Module._wrapSimpleListenerOutput(output_stream_name, out_data,
|
|
683
|
+
function JsOnVectorListenerInt(output_stream_name, out_data, timestamp) {
|
|
684
|
+
Module._wrapSimpleListenerOutput(output_stream_name, out_data, false, timestamp);
|
|
662
685
|
}
|
|
663
686
|
|
|
664
687
|
function JsOnSimpleListenerDouble(output_stream_name, out_data, timestamp) {
|
|
665
688
|
Module._wrapSimpleListenerOutput(output_stream_name, out_data, timestamp);
|
|
666
689
|
}
|
|
667
690
|
|
|
668
|
-
function JsOnVectorListenerDouble(output_stream_name, out_data,
|
|
669
|
-
Module._wrapSimpleListenerOutput(output_stream_name, out_data,
|
|
691
|
+
function JsOnVectorListenerDouble(output_stream_name, out_data, timestamp) {
|
|
692
|
+
Module._wrapSimpleListenerOutput(output_stream_name, out_data, false, timestamp);
|
|
670
693
|
}
|
|
671
694
|
|
|
672
695
|
function JsOnSimpleListenerFloat(output_stream_name, out_data, timestamp) {
|
|
673
696
|
Module._wrapSimpleListenerOutput(output_stream_name, out_data, timestamp);
|
|
674
697
|
}
|
|
675
698
|
|
|
676
|
-
function JsOnVectorListenerFloat(output_stream_name, out_data,
|
|
677
|
-
Module._wrapSimpleListenerOutput(output_stream_name, out_data,
|
|
699
|
+
function JsOnVectorListenerFloat(output_stream_name, out_data, timestamp) {
|
|
700
|
+
Module._wrapSimpleListenerOutput(output_stream_name, out_data, false, timestamp);
|
|
678
701
|
}
|
|
679
702
|
|
|
680
703
|
function JsOnSimpleListenerString(output_stream_name, out_data, timestamp) {
|
|
681
704
|
Module._wrapSimpleListenerOutput(output_stream_name, UTF8ToString(out_data), timestamp);
|
|
682
705
|
}
|
|
683
706
|
|
|
684
|
-
function JsOnVectorListenerString(output_stream_name, out_data,
|
|
685
|
-
Module._wrapSimpleListenerOutput(output_stream_name, UTF8ToString(out_data),
|
|
707
|
+
function JsOnVectorListenerString(output_stream_name, out_data, timestamp) {
|
|
708
|
+
Module._wrapSimpleListenerOutput(output_stream_name, UTF8ToString(out_data), false, timestamp);
|
|
686
709
|
}
|
|
687
710
|
|
|
688
|
-
function JsOnVectorListenerProto(output_stream_name, proto_ptr, proto_size, make_deep_copy,
|
|
711
|
+
function JsOnVectorListenerProto(output_stream_name, proto_ptr, proto_size, make_deep_copy, timestamp) {
|
|
689
712
|
const newProtoArray = make_deep_copy ? Module.HEAPU8.slice(proto_ptr, proto_ptr + proto_size) : new Uint8Array(Module.HEAPU8.buffer, proto_ptr, proto_size);
|
|
690
|
-
Module._wrapSimpleListenerOutput(output_stream_name, newProtoArray,
|
|
713
|
+
Module._wrapSimpleListenerOutput(output_stream_name, newProtoArray, false, timestamp);
|
|
691
714
|
}
|
|
692
715
|
|
|
693
716
|
function JsWrapSimpleListeners() {
|
|
@@ -728,10 +751,15 @@ function mediapipe_import_external_texture(device_handle, source_handle) {
|
|
|
728
751
|
}
|
|
729
752
|
|
|
730
753
|
function mediapipe_create_utility_canvas2d() {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
754
|
+
let canvas;
|
|
755
|
+
if (typeof OffscreenCanvas !== "undefined") {
|
|
756
|
+
canvas = new OffscreenCanvas(0, 0);
|
|
757
|
+
} else {
|
|
758
|
+
canvas = document.createElement("canvas");
|
|
759
|
+
canvas.style.display = "none";
|
|
760
|
+
canvas.id = "canvas_2d";
|
|
761
|
+
document.body.appendChild(canvas);
|
|
762
|
+
}
|
|
735
763
|
return Emval.toHandle(canvas);
|
|
736
764
|
}
|
|
737
765
|
|
|
@@ -5650,6 +5678,10 @@ var WebGPU = {
|
|
|
5650
5678
|
}
|
|
5651
5679
|
return constants;
|
|
5652
5680
|
},
|
|
5681
|
+
makePipelineLayout: function(layoutPtr) {
|
|
5682
|
+
if (!layoutPtr) return "auto";
|
|
5683
|
+
return WebGPU.mgrPipelineLayout.get(layoutPtr);
|
|
5684
|
+
},
|
|
5653
5685
|
makeProgrammableStageDescriptor: function(ptr) {
|
|
5654
5686
|
if (!ptr) return undefined;
|
|
5655
5687
|
return {
|
|
@@ -5977,6 +6009,10 @@ function _glBufferData(target, size, data, usage) {
|
|
|
5977
6009
|
}
|
|
5978
6010
|
}
|
|
5979
6011
|
|
|
6012
|
+
function _glClear(x0) {
|
|
6013
|
+
GLctx["clear"](x0);
|
|
6014
|
+
}
|
|
6015
|
+
|
|
5980
6016
|
function convertI32PairToI53(lo, hi) {
|
|
5981
6017
|
return (lo >>> 0) + hi * 4294967296;
|
|
5982
6018
|
}
|
|
@@ -6132,6 +6168,10 @@ function _glFinish() {
|
|
|
6132
6168
|
GLctx["finish"]();
|
|
6133
6169
|
}
|
|
6134
6170
|
|
|
6171
|
+
function _glFlush() {
|
|
6172
|
+
GLctx["flush"]();
|
|
6173
|
+
}
|
|
6174
|
+
|
|
6135
6175
|
function _glFramebufferTexture2D(target, attachment, textarget, texture, level) {
|
|
6136
6176
|
GLctx.framebufferTexture2D(target, attachment, textarget, GL.textures[texture], level);
|
|
6137
6177
|
}
|
|
@@ -6335,6 +6375,72 @@ function _glGetIntegerv(name_, p) {
|
|
|
6335
6375
|
emscriptenWebGLGet(name_, p, 0);
|
|
6336
6376
|
}
|
|
6337
6377
|
|
|
6378
|
+
function _glGetProgramiv(program, pname, p) {
|
|
6379
|
+
if (!p) {
|
|
6380
|
+
GL.recordError(1281);
|
|
6381
|
+
return;
|
|
6382
|
+
}
|
|
6383
|
+
if (program >= GL.counter) {
|
|
6384
|
+
GL.recordError(1281);
|
|
6385
|
+
return;
|
|
6386
|
+
}
|
|
6387
|
+
program = GL.programs[program];
|
|
6388
|
+
if (pname == 35716) {
|
|
6389
|
+
var log = GLctx.getProgramInfoLog(program);
|
|
6390
|
+
if (log === null) log = "(unknown error)";
|
|
6391
|
+
HEAP32[p >> 2] = log.length + 1;
|
|
6392
|
+
} else if (pname == 35719) {
|
|
6393
|
+
if (!program.maxUniformLength) {
|
|
6394
|
+
for (var i = 0; i < GLctx.getProgramParameter(program, 35718); ++i) {
|
|
6395
|
+
program.maxUniformLength = Math.max(program.maxUniformLength, GLctx.getActiveUniform(program, i).name.length + 1);
|
|
6396
|
+
}
|
|
6397
|
+
}
|
|
6398
|
+
HEAP32[p >> 2] = program.maxUniformLength;
|
|
6399
|
+
} else if (pname == 35722) {
|
|
6400
|
+
if (!program.maxAttributeLength) {
|
|
6401
|
+
for (var i = 0; i < GLctx.getProgramParameter(program, 35721); ++i) {
|
|
6402
|
+
program.maxAttributeLength = Math.max(program.maxAttributeLength, GLctx.getActiveAttrib(program, i).name.length + 1);
|
|
6403
|
+
}
|
|
6404
|
+
}
|
|
6405
|
+
HEAP32[p >> 2] = program.maxAttributeLength;
|
|
6406
|
+
} else if (pname == 35381) {
|
|
6407
|
+
if (!program.maxUniformBlockNameLength) {
|
|
6408
|
+
for (var i = 0; i < GLctx.getProgramParameter(program, 35382); ++i) {
|
|
6409
|
+
program.maxUniformBlockNameLength = Math.max(program.maxUniformBlockNameLength, GLctx.getActiveUniformBlockName(program, i).length + 1);
|
|
6410
|
+
}
|
|
6411
|
+
}
|
|
6412
|
+
HEAP32[p >> 2] = program.maxUniformBlockNameLength;
|
|
6413
|
+
} else {
|
|
6414
|
+
HEAP32[p >> 2] = GLctx.getProgramParameter(program, pname);
|
|
6415
|
+
}
|
|
6416
|
+
}
|
|
6417
|
+
|
|
6418
|
+
function _glGetShaderInfoLog(shader, maxLength, length, infoLog) {
|
|
6419
|
+
var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
|
|
6420
|
+
if (log === null) log = "(unknown error)";
|
|
6421
|
+
var numBytesWrittenExclNull = maxLength > 0 && infoLog ? stringToUTF8(log, infoLog, maxLength) : 0;
|
|
6422
|
+
if (length) HEAP32[length >> 2] = numBytesWrittenExclNull;
|
|
6423
|
+
}
|
|
6424
|
+
|
|
6425
|
+
function _glGetShaderiv(shader, pname, p) {
|
|
6426
|
+
if (!p) {
|
|
6427
|
+
GL.recordError(1281);
|
|
6428
|
+
return;
|
|
6429
|
+
}
|
|
6430
|
+
if (pname == 35716) {
|
|
6431
|
+
var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
|
|
6432
|
+
if (log === null) log = "(unknown error)";
|
|
6433
|
+
var logLength = log ? log.length + 1 : 0;
|
|
6434
|
+
HEAP32[p >> 2] = logLength;
|
|
6435
|
+
} else if (pname == 35720) {
|
|
6436
|
+
var source = GLctx.getShaderSource(GL.shaders[shader]);
|
|
6437
|
+
var sourceLength = source ? source.length + 1 : 0;
|
|
6438
|
+
HEAP32[p >> 2] = sourceLength;
|
|
6439
|
+
} else {
|
|
6440
|
+
HEAP32[p >> 2] = GLctx.getShaderParameter(GL.shaders[shader], pname);
|
|
6441
|
+
}
|
|
6442
|
+
}
|
|
6443
|
+
|
|
6338
6444
|
function stringToNewUTF8(jsString) {
|
|
6339
6445
|
var length = lengthBytesUTF8(jsString) + 1;
|
|
6340
6446
|
var cString = _malloc(length);
|
|
@@ -6551,6 +6657,10 @@ function _glTexImage2D(target, level, internalFormat, width, height, border, for
|
|
|
6551
6657
|
GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixels ? emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat) : null);
|
|
6552
6658
|
}
|
|
6553
6659
|
|
|
6660
|
+
function _glTexParameterf(x0, x1, x2) {
|
|
6661
|
+
GLctx["texParameterf"](x0, x1, x2);
|
|
6662
|
+
}
|
|
6663
|
+
|
|
6554
6664
|
function _glTexParameterfv(target, pname, params) {
|
|
6555
6665
|
var param = HEAPF32[params >> 2];
|
|
6556
6666
|
GLctx.texParameterf(target, pname, param);
|
|
@@ -6617,6 +6727,10 @@ function _glUniform1i(location, v0) {
|
|
|
6617
6727
|
GLctx.uniform1i(webglGetUniformLocation(location), v0);
|
|
6618
6728
|
}
|
|
6619
6729
|
|
|
6730
|
+
function _glUniform2f(location, v0, v1) {
|
|
6731
|
+
GLctx.uniform2f(webglGetUniformLocation(location), v0, v1);
|
|
6732
|
+
}
|
|
6733
|
+
|
|
6620
6734
|
var miniTempWebGLFloatBuffers = [];
|
|
6621
6735
|
|
|
6622
6736
|
function _glUniform2fv(location, count, value) {
|
|
@@ -6636,6 +6750,10 @@ function _glUniform2fv(location, count, value) {
|
|
|
6636
6750
|
GLctx.uniform2fv(webglGetUniformLocation(location), view);
|
|
6637
6751
|
}
|
|
6638
6752
|
|
|
6753
|
+
function _glUniform3f(location, v0, v1, v2) {
|
|
6754
|
+
GLctx.uniform3f(webglGetUniformLocation(location), v0, v1, v2);
|
|
6755
|
+
}
|
|
6756
|
+
|
|
6639
6757
|
function _glUniform4fv(location, count, value) {
|
|
6640
6758
|
if (GL.currentContext.version >= 2) {
|
|
6641
6759
|
count && GLctx.uniform4fv(webglGetUniformLocation(location), HEAPF32, value >> 2, count * 4);
|
|
@@ -6747,7 +6865,11 @@ function _glViewport(x0, x1, x2, x3) {
|
|
|
6747
6865
|
}
|
|
6748
6866
|
|
|
6749
6867
|
function _mediapipe_find_canvas_event_target(canvasSelector) {
|
|
6750
|
-
|
|
6868
|
+
let target = findCanvasEventTarget(canvasSelector);
|
|
6869
|
+
if (Module && !target) {
|
|
6870
|
+
target = Module.canvas_webgpu;
|
|
6871
|
+
}
|
|
6872
|
+
return Emval.toHandle(target);
|
|
6751
6873
|
}
|
|
6752
6874
|
|
|
6753
6875
|
function _mediapipe_webgl_tex_image_drawable(drawableHandle) {
|
|
@@ -7350,7 +7472,7 @@ function _wgpuDeviceCreateCommandEncoder(deviceId, descriptor) {
|
|
|
7350
7472
|
function _wgpuDeviceCreateComputePipeline(deviceId, descriptor) {
|
|
7351
7473
|
var desc = {
|
|
7352
7474
|
"label": undefined,
|
|
7353
|
-
"layout": WebGPU.
|
|
7475
|
+
"layout": WebGPU.makePipelineLayout(HEAPU32[descriptor + 8 >> 2]),
|
|
7354
7476
|
"compute": WebGPU.makeProgrammableStageDescriptor(descriptor + 12)
|
|
7355
7477
|
};
|
|
7356
7478
|
var labelPtr = HEAPU32[descriptor + 4 >> 2];
|
|
@@ -7481,7 +7603,7 @@ function _wgpuDeviceCreateRenderPipeline(deviceId, descriptor) {
|
|
|
7481
7603
|
}
|
|
7482
7604
|
var desc = {
|
|
7483
7605
|
"label": undefined,
|
|
7484
|
-
"layout": WebGPU.
|
|
7606
|
+
"layout": WebGPU.makePipelineLayout(HEAPU32[descriptor + 8 >> 2]),
|
|
7485
7607
|
"vertex": makeVertexState(descriptor + 12),
|
|
7486
7608
|
"primitive": makePrimitiveState(descriptor + 40),
|
|
7487
7609
|
"depthStencil": makeDepthStencilState(HEAPU32[descriptor + 60 >> 2]),
|
|
@@ -7884,437 +8006,456 @@ for (var i = 0; i < 288; ++i) {
|
|
|
7884
8006
|
}
|
|
7885
8007
|
|
|
7886
8008
|
var asmLibraryArg = {
|
|
7887
|
-
"
|
|
7888
|
-
"
|
|
7889
|
-
"
|
|
7890
|
-
"
|
|
7891
|
-
"
|
|
7892
|
-
"
|
|
7893
|
-
"
|
|
7894
|
-
"
|
|
7895
|
-
"
|
|
7896
|
-
"
|
|
7897
|
-
"
|
|
7898
|
-
"
|
|
7899
|
-
"
|
|
7900
|
-
"
|
|
7901
|
-
"
|
|
7902
|
-
"
|
|
7903
|
-
"
|
|
7904
|
-
"
|
|
7905
|
-
"
|
|
7906
|
-
"
|
|
7907
|
-
"
|
|
7908
|
-
"
|
|
7909
|
-
"
|
|
7910
|
-
"
|
|
7911
|
-
"
|
|
7912
|
-
"
|
|
7913
|
-
"
|
|
7914
|
-
"
|
|
7915
|
-
"
|
|
7916
|
-
"
|
|
7917
|
-
"
|
|
7918
|
-
"
|
|
7919
|
-
"
|
|
7920
|
-
"
|
|
7921
|
-
"
|
|
7922
|
-
"
|
|
7923
|
-
"
|
|
7924
|
-
"
|
|
7925
|
-
"
|
|
7926
|
-
"
|
|
7927
|
-
"
|
|
7928
|
-
"
|
|
7929
|
-
"
|
|
7930
|
-
"
|
|
7931
|
-
"
|
|
7932
|
-
"
|
|
7933
|
-
"
|
|
7934
|
-
"
|
|
7935
|
-
"
|
|
7936
|
-
"
|
|
7937
|
-
"
|
|
7938
|
-
"
|
|
7939
|
-
"
|
|
7940
|
-
"
|
|
7941
|
-
"
|
|
7942
|
-
"
|
|
7943
|
-
"
|
|
7944
|
-
"
|
|
7945
|
-
"
|
|
7946
|
-
"
|
|
8009
|
+
"gd": HaveOffsetConverter,
|
|
8010
|
+
"fd": JsOnEmptyPacketListener,
|
|
8011
|
+
"ed": JsOnFloat32ArrayImageListener,
|
|
8012
|
+
"dd": JsOnFloat32ArrayImageVectorListener,
|
|
8013
|
+
"Ka": JsOnSimpleListenerBinaryArray,
|
|
8014
|
+
"cd": JsOnSimpleListenerBool,
|
|
8015
|
+
"bd": JsOnSimpleListenerDouble,
|
|
8016
|
+
"ad": JsOnSimpleListenerFloat,
|
|
8017
|
+
"$c": JsOnSimpleListenerInt,
|
|
8018
|
+
"_c": JsOnSimpleListenerString,
|
|
8019
|
+
"Zc": JsOnUint8ClampedArrayImageListener,
|
|
8020
|
+
"Yc": JsOnUint8ClampedArrayImageVectorListener,
|
|
8021
|
+
"J": JsOnVectorFinishedListener,
|
|
8022
|
+
"Xc": JsOnVectorListenerBool,
|
|
8023
|
+
"Wc": JsOnVectorListenerDouble,
|
|
8024
|
+
"Vc": JsOnVectorListenerFloat,
|
|
8025
|
+
"Uc": JsOnVectorListenerInt,
|
|
8026
|
+
"Tc": JsOnVectorListenerProto,
|
|
8027
|
+
"Sc": JsOnVectorListenerString,
|
|
8028
|
+
"Rc": JsOnWebGLTextureListener,
|
|
8029
|
+
"Qc": JsOnWebGLTextureVectorListener,
|
|
8030
|
+
"F": JsWrapErrorListener,
|
|
8031
|
+
"Ja": JsWrapImageConverter,
|
|
8032
|
+
"r": JsWrapSimpleListeners,
|
|
8033
|
+
"h": ___cxa_allocate_exception,
|
|
8034
|
+
"g": ___cxa_throw,
|
|
8035
|
+
"Ia": ___syscall_fcntl64,
|
|
8036
|
+
"Pc": ___syscall_fstat64,
|
|
8037
|
+
"Oc": ___syscall_ioctl,
|
|
8038
|
+
"Nc": ___syscall_lstat64,
|
|
8039
|
+
"Mc": ___syscall_newfstatat,
|
|
8040
|
+
"Ha": ___syscall_openat,
|
|
8041
|
+
"Lc": ___syscall_stat64,
|
|
8042
|
+
"Hc": __dlinit,
|
|
8043
|
+
"Gc": __dlopen_js,
|
|
8044
|
+
"Fc": __dlsym_js,
|
|
8045
|
+
"Qb": __embind_register_bigint,
|
|
8046
|
+
"Ec": __embind_register_bool,
|
|
8047
|
+
"Dc": __embind_register_emval,
|
|
8048
|
+
"Fa": __embind_register_float,
|
|
8049
|
+
"D": __embind_register_integer,
|
|
8050
|
+
"o": __embind_register_memory_view,
|
|
8051
|
+
"Ea": __embind_register_std_string,
|
|
8052
|
+
"ia": __embind_register_std_wstring,
|
|
8053
|
+
"Cc": __embind_register_void,
|
|
8054
|
+
"Bc": __emscripten_get_now_is_monotonic,
|
|
8055
|
+
"ha": __emval_as,
|
|
8056
|
+
"k": __emval_decref,
|
|
8057
|
+
"ga": __emval_get_global,
|
|
8058
|
+
"Da": __emval_get_property,
|
|
8059
|
+
"Ca": __emval_incref,
|
|
8060
|
+
"fa": __emval_instanceof,
|
|
8061
|
+
"ba": __emval_new_cstring,
|
|
8062
|
+
"ea": __emval_run_destructors,
|
|
8063
|
+
"Ba": __emval_set_property,
|
|
8064
|
+
"aa": __emval_take_value,
|
|
8065
|
+
"Ac": __emval_typeof,
|
|
8066
|
+
"zc": __gmtime_js,
|
|
8067
|
+
"yc": __localtime_js,
|
|
8068
|
+
"xc": __mktime_js,
|
|
8069
|
+
"wc": __mmap_js,
|
|
8070
|
+
"vc": __munmap_js,
|
|
8071
|
+
"uc": __tzset_js,
|
|
7947
8072
|
"a": _abort,
|
|
7948
|
-
"
|
|
7949
|
-
"
|
|
7950
|
-
"
|
|
7951
|
-
"
|
|
7952
|
-
"
|
|
7953
|
-
"
|
|
7954
|
-
"
|
|
7955
|
-
"
|
|
7956
|
-
"
|
|
7957
|
-
"
|
|
7958
|
-
"
|
|
7959
|
-
"
|
|
7960
|
-
"
|
|
7961
|
-
"
|
|
7962
|
-
"
|
|
7963
|
-
"
|
|
7964
|
-
"
|
|
7965
|
-
"
|
|
7966
|
-
"
|
|
7967
|
-
"
|
|
7968
|
-
"
|
|
7969
|
-
"
|
|
7970
|
-
"
|
|
7971
|
-
"
|
|
7972
|
-
"
|
|
7973
|
-
"
|
|
7974
|
-
"
|
|
7975
|
-
"
|
|
7976
|
-
"
|
|
7977
|
-
"
|
|
7978
|
-
"
|
|
7979
|
-
"
|
|
7980
|
-
"
|
|
7981
|
-
"
|
|
7982
|
-
"
|
|
7983
|
-
"
|
|
7984
|
-
"
|
|
8073
|
+
"C": _emscripten_asm_const_int,
|
|
8074
|
+
"tc": _emscripten_date_now,
|
|
8075
|
+
"sc": _emscripten_get_heap_max,
|
|
8076
|
+
"E": _emscripten_get_now,
|
|
8077
|
+
"rc": _emscripten_memcpy_big,
|
|
8078
|
+
"qc": _emscripten_pc_get_function,
|
|
8079
|
+
"pc": _emscripten_resize_heap,
|
|
8080
|
+
"oc": _emscripten_stack_snapshot,
|
|
8081
|
+
"nc": _emscripten_stack_unwind_buffer,
|
|
8082
|
+
"mc": _emscripten_webgl_create_context,
|
|
8083
|
+
"lc": _emscripten_webgl_destroy_context,
|
|
8084
|
+
"kc": _emscripten_webgl_get_context_attributes,
|
|
8085
|
+
"Aa": _emscripten_webgl_get_current_context,
|
|
8086
|
+
"jc": _emscripten_webgl_init_context_attributes,
|
|
8087
|
+
"ic": _emscripten_webgl_make_context_current,
|
|
8088
|
+
"hc": _emscripten_webgpu_export_bind_group_layout,
|
|
8089
|
+
"za": _emscripten_webgpu_export_device,
|
|
8090
|
+
"gc": _emscripten_webgpu_export_sampler,
|
|
8091
|
+
"fc": _emscripten_webgpu_export_texture,
|
|
8092
|
+
"I": _emscripten_webgpu_get_device,
|
|
8093
|
+
"ec": _emscripten_webgpu_import_bind_group,
|
|
8094
|
+
"dc": _emscripten_webgpu_import_texture,
|
|
8095
|
+
"U": _emscripten_webgpu_release_js_handle,
|
|
8096
|
+
"Kc": _environ_get,
|
|
8097
|
+
"Jc": _environ_sizes_get,
|
|
8098
|
+
"ya": _exit,
|
|
8099
|
+
"ka": _fd_close,
|
|
8100
|
+
"Ga": _fd_read,
|
|
8101
|
+
"Rb": _fd_seek,
|
|
8102
|
+
"ja": _fd_write,
|
|
8103
|
+
"cc": _getentropy,
|
|
8104
|
+
"d": _glActiveTexture,
|
|
8105
|
+
"$": _glAttachShader,
|
|
8106
|
+
"bc": _glBindAttribLocation,
|
|
8107
|
+
"f": _glBindBuffer,
|
|
8108
|
+
"ac": _glBindBufferBase,
|
|
8109
|
+
"v": _glBindFramebuffer,
|
|
7985
8110
|
"b": _glBindTexture,
|
|
7986
|
-
"
|
|
7987
|
-
"
|
|
7988
|
-
"
|
|
7989
|
-
"
|
|
7990
|
-
"
|
|
7991
|
-
"
|
|
7992
|
-
"
|
|
7993
|
-
"
|
|
7994
|
-
"P":
|
|
7995
|
-
"
|
|
7996
|
-
"
|
|
7997
|
-
"
|
|
7998
|
-
"
|
|
7999
|
-
"
|
|
8000
|
-
"
|
|
8001
|
-
"
|
|
8002
|
-
"
|
|
8003
|
-
"
|
|
8004
|
-
"
|
|
8005
|
-
"
|
|
8006
|
-
"
|
|
8007
|
-
"
|
|
8008
|
-
"
|
|
8009
|
-
"
|
|
8010
|
-
"
|
|
8011
|
-
"
|
|
8012
|
-
"
|
|
8013
|
-
"
|
|
8014
|
-
"
|
|
8015
|
-
"
|
|
8016
|
-
"
|
|
8017
|
-
"
|
|
8018
|
-
"
|
|
8019
|
-
"
|
|
8020
|
-
"
|
|
8021
|
-
"
|
|
8022
|
-
"
|
|
8023
|
-
"
|
|
8111
|
+
"u": _glBindVertexArray,
|
|
8112
|
+
"n": _glBufferData,
|
|
8113
|
+
"T": _glClear,
|
|
8114
|
+
"Pb": _glClientWaitSync,
|
|
8115
|
+
"xa": _glCompileShader,
|
|
8116
|
+
"wa": _glCreateProgram,
|
|
8117
|
+
"va": _glCreateShader,
|
|
8118
|
+
"B": _glDeleteBuffers,
|
|
8119
|
+
"P": _glDeleteFramebuffers,
|
|
8120
|
+
"p": _glDeleteProgram,
|
|
8121
|
+
"S": _glDeleteShader,
|
|
8122
|
+
"R": _glDeleteSync,
|
|
8123
|
+
"x": _glDeleteTextures,
|
|
8124
|
+
"O": _glDeleteVertexArrays,
|
|
8125
|
+
"N": _glDisable,
|
|
8126
|
+
"t": _glDisableVertexAttribArray,
|
|
8127
|
+
"s": _glDrawArrays,
|
|
8128
|
+
"ua": _glDrawBuffers,
|
|
8129
|
+
"m": _glEnableVertexAttribArray,
|
|
8130
|
+
"ta": _glFenceSync,
|
|
8131
|
+
"_": _glFinish,
|
|
8132
|
+
"H": _glFlush,
|
|
8133
|
+
"A": _glFramebufferTexture2D,
|
|
8134
|
+
"sa": _glFramebufferTextureLayer,
|
|
8135
|
+
"w": _glGenBuffers,
|
|
8136
|
+
"M": _glGenFramebuffers,
|
|
8137
|
+
"z": _glGenTextures,
|
|
8138
|
+
"L": _glGenVertexArrays,
|
|
8139
|
+
"ra": _glGetAttribLocation,
|
|
8140
|
+
"Z": _glGetError,
|
|
8141
|
+
"q": _glGetIntegerv,
|
|
8142
|
+
"$b": _glGetProgramiv,
|
|
8143
|
+
"_b": _glGetShaderInfoLog,
|
|
8144
|
+
"Zb": _glGetShaderiv,
|
|
8145
|
+
"G": _glGetString,
|
|
8146
|
+
"Yb": _glGetUniformBlockIndex,
|
|
8147
|
+
"e": _glGetUniformLocation,
|
|
8148
|
+
"qa": _glLinkProgram,
|
|
8149
|
+
"Y": _glPixelStorei,
|
|
8150
|
+
"da": _glReadPixels,
|
|
8151
|
+
"pa": _glShaderSource,
|
|
8152
|
+
"y": _glTexImage2D,
|
|
8153
|
+
"X": _glTexParameterf,
|
|
8154
|
+
"oa": _glTexParameterfv,
|
|
8024
8155
|
"c": _glTexParameteri,
|
|
8025
|
-
"
|
|
8026
|
-
"
|
|
8027
|
-
"
|
|
8028
|
-
"
|
|
8029
|
-
"
|
|
8030
|
-
"
|
|
8031
|
-
"
|
|
8032
|
-
"
|
|
8033
|
-
"
|
|
8034
|
-
"
|
|
8035
|
-
"
|
|
8036
|
-
"
|
|
8037
|
-
"
|
|
8038
|
-
"
|
|
8039
|
-
"
|
|
8040
|
-
"
|
|
8041
|
-
"
|
|
8042
|
-
"
|
|
8043
|
-
"
|
|
8044
|
-
"
|
|
8045
|
-
"
|
|
8046
|
-
"
|
|
8047
|
-
"
|
|
8048
|
-
"
|
|
8049
|
-
"
|
|
8050
|
-
"
|
|
8051
|
-
"
|
|
8052
|
-
"
|
|
8053
|
-
"
|
|
8054
|
-
"
|
|
8055
|
-
"
|
|
8056
|
-
"
|
|
8057
|
-
"
|
|
8058
|
-
"
|
|
8059
|
-
"
|
|
8060
|
-
"
|
|
8061
|
-
"
|
|
8062
|
-
"
|
|
8063
|
-
"
|
|
8064
|
-
"
|
|
8065
|
-
"
|
|
8066
|
-
"
|
|
8067
|
-
"
|
|
8068
|
-
"
|
|
8069
|
-
"
|
|
8070
|
-
"
|
|
8071
|
-
"
|
|
8072
|
-
"
|
|
8073
|
-
"
|
|
8074
|
-
"
|
|
8075
|
-
"
|
|
8076
|
-
"
|
|
8077
|
-
"
|
|
8078
|
-
"
|
|
8079
|
-
"
|
|
8080
|
-
"
|
|
8081
|
-
"
|
|
8082
|
-
"
|
|
8083
|
-
"
|
|
8084
|
-
"
|
|
8085
|
-
"
|
|
8086
|
-
"
|
|
8087
|
-
"
|
|
8088
|
-
"
|
|
8089
|
-
"
|
|
8090
|
-
"
|
|
8091
|
-
"
|
|
8092
|
-
"
|
|
8093
|
-
"
|
|
8094
|
-
"
|
|
8095
|
-
"
|
|
8096
|
-
"
|
|
8097
|
-
"
|
|
8098
|
-
"
|
|
8156
|
+
"ca": _glTexStorage2D,
|
|
8157
|
+
"Xb": _glTexStorage3D,
|
|
8158
|
+
"Q": _glTexSubImage2D,
|
|
8159
|
+
"Wb": _glTexSubImage3D,
|
|
8160
|
+
"W": _glUniform1f,
|
|
8161
|
+
"i": _glUniform1i,
|
|
8162
|
+
"Vb": _glUniform2f,
|
|
8163
|
+
"Ub": _glUniform2fv,
|
|
8164
|
+
"na": _glUniform3f,
|
|
8165
|
+
"ma": _glUniform4fv,
|
|
8166
|
+
"Tb": _glUniform4iv,
|
|
8167
|
+
"Sb": _glUniformBlockBinding,
|
|
8168
|
+
"la": _glUniformMatrix4fv,
|
|
8169
|
+
"j": _glUseProgram,
|
|
8170
|
+
"l": _glVertexAttribPointer,
|
|
8171
|
+
"K": _glViewport,
|
|
8172
|
+
"Nb": mediapipe_create_utility_canvas2d,
|
|
8173
|
+
"Mb": _mediapipe_find_canvas_event_target,
|
|
8174
|
+
"Lb": mediapipe_import_external_texture,
|
|
8175
|
+
"Kb": _mediapipe_webgl_tex_image_drawable,
|
|
8176
|
+
"Ic": _proc_exit,
|
|
8177
|
+
"V": _strftime,
|
|
8178
|
+
"Jb": _strftime_l,
|
|
8179
|
+
"Ib": _wgpuBindGroupLayoutRelease,
|
|
8180
|
+
"Hb": _wgpuBindGroupRelease,
|
|
8181
|
+
"Gb": _wgpuBufferGetMappedRange,
|
|
8182
|
+
"Fb": _wgpuBufferReference,
|
|
8183
|
+
"Eb": _wgpuBufferRelease,
|
|
8184
|
+
"Db": _wgpuBufferUnmap,
|
|
8185
|
+
"Cb": _wgpuCommandBufferRelease,
|
|
8186
|
+
"Bb": _wgpuCommandEncoderBeginComputePass,
|
|
8187
|
+
"Ab": _wgpuCommandEncoderBeginRenderPass,
|
|
8188
|
+
"zb": _wgpuCommandEncoderCopyBufferToTexture,
|
|
8189
|
+
"yb": _wgpuCommandEncoderCopyTextureToTexture,
|
|
8190
|
+
"xb": _wgpuCommandEncoderFinish,
|
|
8191
|
+
"wb": _wgpuCommandEncoderRelease,
|
|
8192
|
+
"vb": _wgpuComputePassEncoderDispatchWorkgroups,
|
|
8193
|
+
"ub": _wgpuComputePassEncoderEnd,
|
|
8194
|
+
"tb": _wgpuComputePassEncoderRelease,
|
|
8195
|
+
"sb": _wgpuComputePassEncoderSetBindGroup,
|
|
8196
|
+
"rb": _wgpuComputePassEncoderSetPipeline,
|
|
8197
|
+
"qb": _wgpuComputePipelineGetBindGroupLayout,
|
|
8198
|
+
"pb": _wgpuComputePipelineRelease,
|
|
8199
|
+
"ob": _wgpuDeviceCreateBindGroup,
|
|
8200
|
+
"nb": _wgpuDeviceCreateBuffer,
|
|
8201
|
+
"mb": _wgpuDeviceCreateCommandEncoder,
|
|
8202
|
+
"lb": _wgpuDeviceCreateComputePipeline,
|
|
8203
|
+
"kb": _wgpuDeviceCreateRenderPipeline,
|
|
8204
|
+
"jb": _wgpuDeviceCreateSampler,
|
|
8205
|
+
"ib": _wgpuDeviceCreateShaderModule,
|
|
8206
|
+
"hb": _wgpuDeviceCreateTexture,
|
|
8207
|
+
"gb": _wgpuDeviceGetQueue,
|
|
8208
|
+
"fb": _wgpuDeviceReference,
|
|
8209
|
+
"eb": _wgpuDeviceRelease,
|
|
8210
|
+
"db": _wgpuPipelineLayoutRelease,
|
|
8211
|
+
"cb": _wgpuQuerySetRelease,
|
|
8212
|
+
"bb": _wgpuQueueRelease,
|
|
8213
|
+
"ab": _wgpuQueueSubmit,
|
|
8214
|
+
"Ob": _wgpuQueueWriteBuffer,
|
|
8215
|
+
"$a": _wgpuRenderPassEncoderDraw,
|
|
8216
|
+
"_a": _wgpuRenderPassEncoderEnd,
|
|
8217
|
+
"Za": _wgpuRenderPassEncoderRelease,
|
|
8218
|
+
"Ya": _wgpuRenderPassEncoderSetBindGroup,
|
|
8219
|
+
"Xa": _wgpuRenderPassEncoderSetPipeline,
|
|
8220
|
+
"Wa": _wgpuRenderPipelineGetBindGroupLayout,
|
|
8221
|
+
"Va": _wgpuRenderPipelineRelease,
|
|
8222
|
+
"Ua": _wgpuSamplerReference,
|
|
8223
|
+
"Ta": _wgpuSamplerRelease,
|
|
8224
|
+
"Sa": _wgpuShaderModuleReference,
|
|
8225
|
+
"Ra": _wgpuShaderModuleRelease,
|
|
8226
|
+
"Qa": _wgpuTextureCreateView,
|
|
8227
|
+
"Pa": _wgpuTextureDestroy,
|
|
8228
|
+
"Oa": _wgpuTextureReference,
|
|
8229
|
+
"Na": _wgpuTextureRelease,
|
|
8230
|
+
"Ma": _wgpuTextureViewReference,
|
|
8231
|
+
"La": _wgpuTextureViewRelease
|
|
8099
8232
|
};
|
|
8100
8233
|
|
|
8101
8234
|
var asm = createWasm();
|
|
8102
8235
|
|
|
8103
8236
|
var ___wasm_call_ctors = Module["___wasm_call_ctors"] = function() {
|
|
8104
|
-
return (___wasm_call_ctors = Module["___wasm_call_ctors"] = Module["asm"]["
|
|
8237
|
+
return (___wasm_call_ctors = Module["___wasm_call_ctors"] = Module["asm"]["id"]).apply(null, arguments);
|
|
8105
8238
|
};
|
|
8106
8239
|
|
|
8107
8240
|
var _free = Module["_free"] = function() {
|
|
8108
|
-
return (_free = Module["_free"] = Module["asm"]["
|
|
8241
|
+
return (_free = Module["_free"] = Module["asm"]["kd"]).apply(null, arguments);
|
|
8109
8242
|
};
|
|
8110
8243
|
|
|
8111
8244
|
var _malloc = Module["_malloc"] = function() {
|
|
8112
|
-
return (_malloc = Module["_malloc"] = Module["asm"]["
|
|
8245
|
+
return (_malloc = Module["_malloc"] = Module["asm"]["ld"]).apply(null, arguments);
|
|
8113
8246
|
};
|
|
8114
8247
|
|
|
8115
8248
|
var _addBoundTextureAsImageToStream = Module["_addBoundTextureAsImageToStream"] = function() {
|
|
8116
|
-
return (_addBoundTextureAsImageToStream = Module["_addBoundTextureAsImageToStream"] = Module["asm"]["
|
|
8249
|
+
return (_addBoundTextureAsImageToStream = Module["_addBoundTextureAsImageToStream"] = Module["asm"]["md"]).apply(null, arguments);
|
|
8117
8250
|
};
|
|
8118
8251
|
|
|
8119
8252
|
var _attachImageListener = Module["_attachImageListener"] = function() {
|
|
8120
|
-
return (_attachImageListener = Module["_attachImageListener"] = Module["asm"]["
|
|
8253
|
+
return (_attachImageListener = Module["_attachImageListener"] = Module["asm"]["nd"]).apply(null, arguments);
|
|
8121
8254
|
};
|
|
8122
8255
|
|
|
8123
8256
|
var _attachImageVectorListener = Module["_attachImageVectorListener"] = function() {
|
|
8124
|
-
return (_attachImageVectorListener = Module["_attachImageVectorListener"] = Module["asm"]["
|
|
8257
|
+
return (_attachImageVectorListener = Module["_attachImageVectorListener"] = Module["asm"]["od"]).apply(null, arguments);
|
|
8125
8258
|
};
|
|
8126
8259
|
|
|
8127
8260
|
var _registerModelResourcesGraphService = Module["_registerModelResourcesGraphService"] = function() {
|
|
8128
|
-
return (_registerModelResourcesGraphService = Module["_registerModelResourcesGraphService"] = Module["asm"]["
|
|
8261
|
+
return (_registerModelResourcesGraphService = Module["_registerModelResourcesGraphService"] = Module["asm"]["pd"]).apply(null, arguments);
|
|
8262
|
+
};
|
|
8263
|
+
|
|
8264
|
+
var ___errno_location = Module["___errno_location"] = function() {
|
|
8265
|
+
return (___errno_location = Module["___errno_location"] = Module["asm"]["qd"]).apply(null, arguments);
|
|
8129
8266
|
};
|
|
8130
8267
|
|
|
8131
8268
|
var _bindTextureToStream = Module["_bindTextureToStream"] = function() {
|
|
8132
|
-
return (_bindTextureToStream = Module["_bindTextureToStream"] = Module["asm"]["
|
|
8269
|
+
return (_bindTextureToStream = Module["_bindTextureToStream"] = Module["asm"]["rd"]).apply(null, arguments);
|
|
8133
8270
|
};
|
|
8134
8271
|
|
|
8135
8272
|
var _addBoundTextureToStream = Module["_addBoundTextureToStream"] = function() {
|
|
8136
|
-
return (_addBoundTextureToStream = Module["_addBoundTextureToStream"] = Module["asm"]["
|
|
8273
|
+
return (_addBoundTextureToStream = Module["_addBoundTextureToStream"] = Module["asm"]["sd"]).apply(null, arguments);
|
|
8137
8274
|
};
|
|
8138
8275
|
|
|
8139
8276
|
var _addDoubleToInputStream = Module["_addDoubleToInputStream"] = function() {
|
|
8140
|
-
return (_addDoubleToInputStream = Module["_addDoubleToInputStream"] = Module["asm"]["
|
|
8277
|
+
return (_addDoubleToInputStream = Module["_addDoubleToInputStream"] = Module["asm"]["td"]).apply(null, arguments);
|
|
8141
8278
|
};
|
|
8142
8279
|
|
|
8143
8280
|
var _addFloatToInputStream = Module["_addFloatToInputStream"] = function() {
|
|
8144
|
-
return (_addFloatToInputStream = Module["_addFloatToInputStream"] = Module["asm"]["
|
|
8281
|
+
return (_addFloatToInputStream = Module["_addFloatToInputStream"] = Module["asm"]["ud"]).apply(null, arguments);
|
|
8145
8282
|
};
|
|
8146
8283
|
|
|
8147
8284
|
var _addBoolToInputStream = Module["_addBoolToInputStream"] = function() {
|
|
8148
|
-
return (_addBoolToInputStream = Module["_addBoolToInputStream"] = Module["asm"]["
|
|
8285
|
+
return (_addBoolToInputStream = Module["_addBoolToInputStream"] = Module["asm"]["vd"]).apply(null, arguments);
|
|
8149
8286
|
};
|
|
8150
8287
|
|
|
8151
8288
|
var _addIntToInputStream = Module["_addIntToInputStream"] = function() {
|
|
8152
|
-
return (_addIntToInputStream = Module["_addIntToInputStream"] = Module["asm"]["
|
|
8289
|
+
return (_addIntToInputStream = Module["_addIntToInputStream"] = Module["asm"]["wd"]).apply(null, arguments);
|
|
8153
8290
|
};
|
|
8154
8291
|
|
|
8155
8292
|
var _addStringToInputStream = Module["_addStringToInputStream"] = function() {
|
|
8156
|
-
return (_addStringToInputStream = Module["_addStringToInputStream"] = Module["asm"]["
|
|
8293
|
+
return (_addStringToInputStream = Module["_addStringToInputStream"] = Module["asm"]["xd"]).apply(null, arguments);
|
|
8157
8294
|
};
|
|
8158
8295
|
|
|
8159
8296
|
var _addFlatHashMapToInputStream = Module["_addFlatHashMapToInputStream"] = function() {
|
|
8160
|
-
return (_addFlatHashMapToInputStream = Module["_addFlatHashMapToInputStream"] = Module["asm"]["
|
|
8297
|
+
return (_addFlatHashMapToInputStream = Module["_addFlatHashMapToInputStream"] = Module["asm"]["yd"]).apply(null, arguments);
|
|
8161
8298
|
};
|
|
8162
8299
|
|
|
8163
8300
|
var _addProtoToInputStream = Module["_addProtoToInputStream"] = function() {
|
|
8164
|
-
return (_addProtoToInputStream = Module["_addProtoToInputStream"] = Module["asm"]["
|
|
8301
|
+
return (_addProtoToInputStream = Module["_addProtoToInputStream"] = Module["asm"]["zd"]).apply(null, arguments);
|
|
8302
|
+
};
|
|
8303
|
+
|
|
8304
|
+
var _addEmptyPacketToInputStream = Module["_addEmptyPacketToInputStream"] = function() {
|
|
8305
|
+
return (_addEmptyPacketToInputStream = Module["_addEmptyPacketToInputStream"] = Module["asm"]["Ad"]).apply(null, arguments);
|
|
8165
8306
|
};
|
|
8166
8307
|
|
|
8167
8308
|
var _addBoolToInputSidePacket = Module["_addBoolToInputSidePacket"] = function() {
|
|
8168
|
-
return (_addBoolToInputSidePacket = Module["_addBoolToInputSidePacket"] = Module["asm"]["
|
|
8309
|
+
return (_addBoolToInputSidePacket = Module["_addBoolToInputSidePacket"] = Module["asm"]["Bd"]).apply(null, arguments);
|
|
8169
8310
|
};
|
|
8170
8311
|
|
|
8171
8312
|
var _addDoubleToInputSidePacket = Module["_addDoubleToInputSidePacket"] = function() {
|
|
8172
|
-
return (_addDoubleToInputSidePacket = Module["_addDoubleToInputSidePacket"] = Module["asm"]["
|
|
8313
|
+
return (_addDoubleToInputSidePacket = Module["_addDoubleToInputSidePacket"] = Module["asm"]["Cd"]).apply(null, arguments);
|
|
8173
8314
|
};
|
|
8174
8315
|
|
|
8175
8316
|
var _addFloatToInputSidePacket = Module["_addFloatToInputSidePacket"] = function() {
|
|
8176
|
-
return (_addFloatToInputSidePacket = Module["_addFloatToInputSidePacket"] = Module["asm"]["
|
|
8317
|
+
return (_addFloatToInputSidePacket = Module["_addFloatToInputSidePacket"] = Module["asm"]["Dd"]).apply(null, arguments);
|
|
8177
8318
|
};
|
|
8178
8319
|
|
|
8179
8320
|
var _addIntToInputSidePacket = Module["_addIntToInputSidePacket"] = function() {
|
|
8180
|
-
return (_addIntToInputSidePacket = Module["_addIntToInputSidePacket"] = Module["asm"]["
|
|
8321
|
+
return (_addIntToInputSidePacket = Module["_addIntToInputSidePacket"] = Module["asm"]["Ed"]).apply(null, arguments);
|
|
8181
8322
|
};
|
|
8182
8323
|
|
|
8183
8324
|
var _addStringToInputSidePacket = Module["_addStringToInputSidePacket"] = function() {
|
|
8184
|
-
return (_addStringToInputSidePacket = Module["_addStringToInputSidePacket"] = Module["asm"]["
|
|
8325
|
+
return (_addStringToInputSidePacket = Module["_addStringToInputSidePacket"] = Module["asm"]["Fd"]).apply(null, arguments);
|
|
8185
8326
|
};
|
|
8186
8327
|
|
|
8187
8328
|
var _addProtoToInputSidePacket = Module["_addProtoToInputSidePacket"] = function() {
|
|
8188
|
-
return (_addProtoToInputSidePacket = Module["_addProtoToInputSidePacket"] = Module["asm"]["
|
|
8329
|
+
return (_addProtoToInputSidePacket = Module["_addProtoToInputSidePacket"] = Module["asm"]["Gd"]).apply(null, arguments);
|
|
8189
8330
|
};
|
|
8190
8331
|
|
|
8191
8332
|
var _attachBoolListener = Module["_attachBoolListener"] = function() {
|
|
8192
|
-
return (_attachBoolListener = Module["_attachBoolListener"] = Module["asm"]["
|
|
8333
|
+
return (_attachBoolListener = Module["_attachBoolListener"] = Module["asm"]["Hd"]).apply(null, arguments);
|
|
8193
8334
|
};
|
|
8194
8335
|
|
|
8195
8336
|
var _attachBoolVectorListener = Module["_attachBoolVectorListener"] = function() {
|
|
8196
|
-
return (_attachBoolVectorListener = Module["_attachBoolVectorListener"] = Module["asm"]["
|
|
8337
|
+
return (_attachBoolVectorListener = Module["_attachBoolVectorListener"] = Module["asm"]["Id"]).apply(null, arguments);
|
|
8197
8338
|
};
|
|
8198
8339
|
|
|
8199
8340
|
var _attachDoubleListener = Module["_attachDoubleListener"] = function() {
|
|
8200
|
-
return (_attachDoubleListener = Module["_attachDoubleListener"] = Module["asm"]["
|
|
8341
|
+
return (_attachDoubleListener = Module["_attachDoubleListener"] = Module["asm"]["Jd"]).apply(null, arguments);
|
|
8201
8342
|
};
|
|
8202
8343
|
|
|
8203
8344
|
var _attachDoubleVectorListener = Module["_attachDoubleVectorListener"] = function() {
|
|
8204
|
-
return (_attachDoubleVectorListener = Module["_attachDoubleVectorListener"] = Module["asm"]["
|
|
8345
|
+
return (_attachDoubleVectorListener = Module["_attachDoubleVectorListener"] = Module["asm"]["Kd"]).apply(null, arguments);
|
|
8205
8346
|
};
|
|
8206
8347
|
|
|
8207
8348
|
var _attachFloatListener = Module["_attachFloatListener"] = function() {
|
|
8208
|
-
return (_attachFloatListener = Module["_attachFloatListener"] = Module["asm"]["
|
|
8349
|
+
return (_attachFloatListener = Module["_attachFloatListener"] = Module["asm"]["Ld"]).apply(null, arguments);
|
|
8209
8350
|
};
|
|
8210
8351
|
|
|
8211
8352
|
var _attachFloatVectorListener = Module["_attachFloatVectorListener"] = function() {
|
|
8212
|
-
return (_attachFloatVectorListener = Module["_attachFloatVectorListener"] = Module["asm"]["
|
|
8353
|
+
return (_attachFloatVectorListener = Module["_attachFloatVectorListener"] = Module["asm"]["Md"]).apply(null, arguments);
|
|
8213
8354
|
};
|
|
8214
8355
|
|
|
8215
8356
|
var _attachIntListener = Module["_attachIntListener"] = function() {
|
|
8216
|
-
return (_attachIntListener = Module["_attachIntListener"] = Module["asm"]["
|
|
8357
|
+
return (_attachIntListener = Module["_attachIntListener"] = Module["asm"]["Nd"]).apply(null, arguments);
|
|
8217
8358
|
};
|
|
8218
8359
|
|
|
8219
8360
|
var _attachIntVectorListener = Module["_attachIntVectorListener"] = function() {
|
|
8220
|
-
return (_attachIntVectorListener = Module["_attachIntVectorListener"] = Module["asm"]["
|
|
8361
|
+
return (_attachIntVectorListener = Module["_attachIntVectorListener"] = Module["asm"]["Od"]).apply(null, arguments);
|
|
8221
8362
|
};
|
|
8222
8363
|
|
|
8223
8364
|
var _attachStringListener = Module["_attachStringListener"] = function() {
|
|
8224
|
-
return (_attachStringListener = Module["_attachStringListener"] = Module["asm"]["
|
|
8365
|
+
return (_attachStringListener = Module["_attachStringListener"] = Module["asm"]["Pd"]).apply(null, arguments);
|
|
8225
8366
|
};
|
|
8226
8367
|
|
|
8227
8368
|
var _attachStringVectorListener = Module["_attachStringVectorListener"] = function() {
|
|
8228
|
-
return (_attachStringVectorListener = Module["_attachStringVectorListener"] = Module["asm"]["
|
|
8369
|
+
return (_attachStringVectorListener = Module["_attachStringVectorListener"] = Module["asm"]["Qd"]).apply(null, arguments);
|
|
8229
8370
|
};
|
|
8230
8371
|
|
|
8231
8372
|
var _attachProtoListener = Module["_attachProtoListener"] = function() {
|
|
8232
|
-
return (_attachProtoListener = Module["_attachProtoListener"] = Module["asm"]["
|
|
8373
|
+
return (_attachProtoListener = Module["_attachProtoListener"] = Module["asm"]["Rd"]).apply(null, arguments);
|
|
8233
8374
|
};
|
|
8234
8375
|
|
|
8235
8376
|
var _attachProtoVectorListener = Module["_attachProtoVectorListener"] = function() {
|
|
8236
|
-
return (_attachProtoVectorListener = Module["_attachProtoVectorListener"] = Module["asm"]["
|
|
8377
|
+
return (_attachProtoVectorListener = Module["_attachProtoVectorListener"] = Module["asm"]["Sd"]).apply(null, arguments);
|
|
8237
8378
|
};
|
|
8238
8379
|
|
|
8239
|
-
var
|
|
8240
|
-
return (
|
|
8380
|
+
var _getGraphConfig = Module["_getGraphConfig"] = function() {
|
|
8381
|
+
return (_getGraphConfig = Module["_getGraphConfig"] = Module["asm"]["Td"]).apply(null, arguments);
|
|
8241
8382
|
};
|
|
8242
8383
|
|
|
8243
8384
|
var _clearSubgraphs = Module["_clearSubgraphs"] = function() {
|
|
8244
|
-
return (_clearSubgraphs = Module["_clearSubgraphs"] = Module["asm"]["
|
|
8385
|
+
return (_clearSubgraphs = Module["_clearSubgraphs"] = Module["asm"]["Ud"]).apply(null, arguments);
|
|
8245
8386
|
};
|
|
8246
8387
|
|
|
8247
8388
|
var _pushBinarySubgraph = Module["_pushBinarySubgraph"] = function() {
|
|
8248
|
-
return (_pushBinarySubgraph = Module["_pushBinarySubgraph"] = Module["asm"]["
|
|
8389
|
+
return (_pushBinarySubgraph = Module["_pushBinarySubgraph"] = Module["asm"]["Vd"]).apply(null, arguments);
|
|
8249
8390
|
};
|
|
8250
8391
|
|
|
8251
8392
|
var _pushTextSubgraph = Module["_pushTextSubgraph"] = function() {
|
|
8252
|
-
return (_pushTextSubgraph = Module["_pushTextSubgraph"] = Module["asm"]["
|
|
8393
|
+
return (_pushTextSubgraph = Module["_pushTextSubgraph"] = Module["asm"]["Wd"]).apply(null, arguments);
|
|
8253
8394
|
};
|
|
8254
8395
|
|
|
8255
8396
|
var _changeBinaryGraph = Module["_changeBinaryGraph"] = function() {
|
|
8256
|
-
return (_changeBinaryGraph = Module["_changeBinaryGraph"] = Module["asm"]["
|
|
8397
|
+
return (_changeBinaryGraph = Module["_changeBinaryGraph"] = Module["asm"]["Xd"]).apply(null, arguments);
|
|
8257
8398
|
};
|
|
8258
8399
|
|
|
8259
8400
|
var _changeTextGraph = Module["_changeTextGraph"] = function() {
|
|
8260
|
-
return (_changeTextGraph = Module["_changeTextGraph"] = Module["asm"]["
|
|
8401
|
+
return (_changeTextGraph = Module["_changeTextGraph"] = Module["asm"]["Yd"]).apply(null, arguments);
|
|
8261
8402
|
};
|
|
8262
8403
|
|
|
8263
8404
|
var _processGl = Module["_processGl"] = function() {
|
|
8264
|
-
return (_processGl = Module["_processGl"] = Module["asm"]["
|
|
8405
|
+
return (_processGl = Module["_processGl"] = Module["asm"]["Zd"]).apply(null, arguments);
|
|
8265
8406
|
};
|
|
8266
8407
|
|
|
8267
8408
|
var _process = Module["_process"] = function() {
|
|
8268
|
-
return (_process = Module["_process"] = Module["asm"]["
|
|
8409
|
+
return (_process = Module["_process"] = Module["asm"]["_d"]).apply(null, arguments);
|
|
8269
8410
|
};
|
|
8270
8411
|
|
|
8271
8412
|
var _bindTextureToCanvas = Module["_bindTextureToCanvas"] = function() {
|
|
8272
|
-
return (_bindTextureToCanvas = Module["_bindTextureToCanvas"] = Module["asm"]["
|
|
8413
|
+
return (_bindTextureToCanvas = Module["_bindTextureToCanvas"] = Module["asm"]["$d"]).apply(null, arguments);
|
|
8273
8414
|
};
|
|
8274
8415
|
|
|
8275
8416
|
var _requestShaderRefreshOnGraphChange = Module["_requestShaderRefreshOnGraphChange"] = function() {
|
|
8276
|
-
return (_requestShaderRefreshOnGraphChange = Module["_requestShaderRefreshOnGraphChange"] = Module["asm"]["
|
|
8417
|
+
return (_requestShaderRefreshOnGraphChange = Module["_requestShaderRefreshOnGraphChange"] = Module["asm"]["ae"]).apply(null, arguments);
|
|
8277
8418
|
};
|
|
8278
8419
|
|
|
8279
8420
|
var _waitUntilIdle = Module["_waitUntilIdle"] = function() {
|
|
8280
|
-
return (_waitUntilIdle = Module["_waitUntilIdle"] = Module["asm"]["
|
|
8421
|
+
return (_waitUntilIdle = Module["_waitUntilIdle"] = Module["asm"]["be"]).apply(null, arguments);
|
|
8281
8422
|
};
|
|
8282
8423
|
|
|
8283
8424
|
var _setAutoRenderToScreen = Module["_setAutoRenderToScreen"] = function() {
|
|
8284
|
-
return (_setAutoRenderToScreen = Module["_setAutoRenderToScreen"] = Module["asm"]["
|
|
8425
|
+
return (_setAutoRenderToScreen = Module["_setAutoRenderToScreen"] = Module["asm"]["ce"]).apply(null, arguments);
|
|
8285
8426
|
};
|
|
8286
8427
|
|
|
8287
8428
|
var ___getTypeName = Module["___getTypeName"] = function() {
|
|
8288
|
-
return (___getTypeName = Module["___getTypeName"] = Module["asm"]["
|
|
8429
|
+
return (___getTypeName = Module["___getTypeName"] = Module["asm"]["de"]).apply(null, arguments);
|
|
8289
8430
|
};
|
|
8290
8431
|
|
|
8291
8432
|
var __embind_initialize_bindings = Module["__embind_initialize_bindings"] = function() {
|
|
8292
|
-
return (__embind_initialize_bindings = Module["__embind_initialize_bindings"] = Module["asm"]["
|
|
8433
|
+
return (__embind_initialize_bindings = Module["__embind_initialize_bindings"] = Module["asm"]["ee"]).apply(null, arguments);
|
|
8293
8434
|
};
|
|
8294
8435
|
|
|
8295
8436
|
var _emscripten_builtin_memalign = Module["_emscripten_builtin_memalign"] = function() {
|
|
8296
|
-
return (_emscripten_builtin_memalign = Module["_emscripten_builtin_memalign"] = Module["asm"]["
|
|
8437
|
+
return (_emscripten_builtin_memalign = Module["_emscripten_builtin_memalign"] = Module["asm"]["fe"]).apply(null, arguments);
|
|
8297
8438
|
};
|
|
8298
8439
|
|
|
8299
8440
|
var stackSave = Module["stackSave"] = function() {
|
|
8300
|
-
return (stackSave = Module["stackSave"] = Module["asm"]["
|
|
8441
|
+
return (stackSave = Module["stackSave"] = Module["asm"]["ge"]).apply(null, arguments);
|
|
8301
8442
|
};
|
|
8302
8443
|
|
|
8303
8444
|
var stackRestore = Module["stackRestore"] = function() {
|
|
8304
|
-
return (stackRestore = Module["stackRestore"] = Module["asm"]["
|
|
8445
|
+
return (stackRestore = Module["stackRestore"] = Module["asm"]["he"]).apply(null, arguments);
|
|
8305
8446
|
};
|
|
8306
8447
|
|
|
8307
8448
|
var stackAlloc = Module["stackAlloc"] = function() {
|
|
8308
|
-
return (stackAlloc = Module["stackAlloc"] = Module["asm"]["
|
|
8449
|
+
return (stackAlloc = Module["stackAlloc"] = Module["asm"]["ie"]).apply(null, arguments);
|
|
8309
8450
|
};
|
|
8310
8451
|
|
|
8311
8452
|
var ___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = function() {
|
|
8312
|
-
return (___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = Module["asm"]["
|
|
8453
|
+
return (___cxa_is_pointer_type = Module["___cxa_is_pointer_type"] = Module["asm"]["je"]).apply(null, arguments);
|
|
8313
8454
|
};
|
|
8314
8455
|
|
|
8315
|
-
var ___start_em_js = Module["___start_em_js"] =
|
|
8456
|
+
var ___start_em_js = Module["___start_em_js"] = 1163500;
|
|
8316
8457
|
|
|
8317
|
-
var ___stop_em_js = Module["___stop_em_js"] =
|
|
8458
|
+
var ___stop_em_js = Module["___stop_em_js"] = 1170076;
|
|
8318
8459
|
|
|
8319
8460
|
Module["addRunDependency"] = addRunDependency;
|
|
8320
8461
|
|