Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASM integration information #1038

Open
danfma opened this issue Jan 7, 2024 · 1 comment
Open

WASM integration information #1038

danfma opened this issue Jan 7, 2024 · 1 comment

Comments

@danfma
Copy link

danfma commented Jan 7, 2024

Hello, team!

I am currently experimenting with the Wasm version of Draco and trying to embed it in a Wasm runtime called WasmTime in .NET. I have encountered an issue where I need to provide 4 functions to use the draco_decoder_gltf.wasm. However, since I am using the already compiled file in the javascript folder of this repository, the function names are mangled and I do not know what needs to be implemented. I am currently investigating this issue and would appreciate any guidance on what is expected by Draco to be imported in order to make it work in a Wasm environment.

Thank you!

@ondys
Copy link
Collaborator

ondys commented Jan 9, 2024

If you need any changes you can always build your own WASM decoder using the build instructions here: https://github.com/google/draco/blob/master/BUILDING.md

The prebuilt wasm files are designed to be used in javascript by using the provided wrappers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants