Fix/meshopt wechat (#406)
* fix wechat wasm.validation problem * fix wechat problems
This commit is contained in:
parent
a3a002239a
commit
ca73bccb77
|
|
@ -1,12 +1,5 @@
|
||||||
declare module 'external:emscripten/meshopt/meshopt_decoder.asm.js' {
|
declare module 'external:emscripten/meshopt/meshopt_decoder.asm.js' {
|
||||||
export default MeshoptDecoder;
|
namespace MeshoptDecoder {
|
||||||
}
|
|
||||||
|
|
||||||
declare module 'external:emscripten/meshopt/meshopt_decoder.wasm.js' {
|
|
||||||
export default MeshoptDecoder;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare namespace MeshoptDecoder {
|
|
||||||
const supported: boolean;
|
const supported: boolean;
|
||||||
const ready: Promise<void>;
|
const ready: Promise<void>;
|
||||||
|
|
||||||
|
|
@ -18,4 +11,25 @@ declare namespace MeshoptDecoder {
|
||||||
|
|
||||||
function useWorkers (count: number): void;
|
function useWorkers (count: number): void;
|
||||||
function decodeGltfBufferAsync (count: number, size: number, source: Uint8Array, mode: string, filter?: string): Promise<Uint8Array>;
|
function decodeGltfBufferAsync (count: number, size: number, source: Uint8Array, mode: string, filter?: string): Promise<Uint8Array>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default MeshoptDecoder;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare module 'external:emscripten/meshopt/meshopt_decoder.wasm.js' {
|
||||||
|
namespace MeshoptDecoder {
|
||||||
|
const supported: boolean;
|
||||||
|
const ready: (instantiateWasm: any) => Promise<void>;
|
||||||
|
|
||||||
|
function decodeVertexBuffer (target: Uint8Array, count: number, size: number, source: Uint8Array, filter?: string): void;
|
||||||
|
function decodeIndexBuffer (target: Uint8Array, count: number, size: number, source: Uint8Array): void;
|
||||||
|
function decodeIndexSequence (target: Uint8Array, count: number, size: number, source: Uint8Array): void;
|
||||||
|
|
||||||
|
function decodeGltfBuffer (target: Uint8Array, count: number, size: number, source: Uint8Array, mode: string, filter?: string): void;
|
||||||
|
|
||||||
|
function useWorkers (count: number): void;
|
||||||
|
function decodeGltfBufferAsync (count: number, size: number, source: Uint8Array, mode: string, filter?: string): Promise<Uint8Array>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default MeshoptDecoder;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in New Issue