This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
-
If I wanted to create ffi bindings for filament webassembly/webgl, is there an example somewhere which could help me get started? |
Beta Was this translation helpful? Give feedback.
Answered by
dcharkes
Jul 15, 2021
Replies: 1 comment 2 replies
-
Could you elaborate a bit more? I'm assuming you want to compile a native library to WebAssembly and use that on the web with the dart2js compiler? You would use https://dart.dev/web/js-interop to talk to a native library compiled to WebAssembly, not We would want to like explore creating a library that would target both JS-Interop and Dart FFI, but we haven't started on that yet. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
dcharkes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you elaborate a bit more? I'm assuming you want to compile a native library to WebAssembly and use that on the web with the dart2js compiler?
You would use https://dart.dev/web/js-interop to talk to a native library compiled to WebAssembly, not
dart:ffi
+package:ffi
.We would want to like explore creating a library that would target both JS-Interop and Dart FFI, but we haven't started on that yet.