-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Open
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-Build-monoos-browserBrowser variant of arch-wasmBrowser variant of arch-wasm
Milestone
Description
- Missing blittable types
- Enum
- It should already work
runtime/src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs
Lines 396 to 399 in 7420ee7
private static bool IsBlittable(Type type) { if (type.IsPrimitive || type.IsByRef || type.IsPointer || type.IsEnum) return true;
- It should already work
- Structures
- Function pointers (blocked on S.R version due to MSBuild),
- ❓Should we allow to manually pass additiona signatures we can't parse?
- 💡Rewrite generator to S.R.M
- Enum
- Frozen emscripten cache
- If
EmccExtraLDFlagsincludes-sUSE_SDL=2, like-lSDL -sUSE_SDL=2, build fails - @radekdoulik suggested to remove frozen when WasmCachePath is set
- Seems like an emsdk bug with frozen cache and additional libraries
- If
- Uno's
WasmShellAdditionalPInvokeLibrary- Matches our internal
_WasmPInvokeModules - We compute the list from
NativeFileReference - ❓Should we make the MSBuild item public?
- Matches our internal
- Managed2Native static local function - invalid trampoline name
- Multiple pinvokes with the same entry point should generate separate entries in pinvoke-table.h with appropriate signatures
- This appears to not actually be possible due to WASM's ABI, so marking as complete. Anyone who needs this can file an issue to discuss further.
- Delegates in pinvokes
- Strings in pinvokes
- Varargs in pinvokes
- InlineArray in pinvokes
- Empty structs in pinvokes
fydar
Metadata
Metadata
Assignees
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-Build-monoos-browserBrowser variant of arch-wasmBrowser variant of arch-wasm