browser-wasm support via NativeAOT-LLVM#118
browser-wasm support via NativeAOT-LLVM#118thibaudio wants to merge 9 commits intoFosterFramework:mainfrom
Conversation
Adding browser-wasm support
|
Hey, this sounds cool! I'm definitely open to this - however, I'm not sure how feasible this is right now as SDL_GPU doesn't have a web renderer yet (webgl or webgpu). Until then I'm not sure it's possible to get anything on the screen? |
I'm not sure 😅 |
|
Ah, yeah that is using the SDL_Renderer, which I believe does have webgl support. We're using the more full-featured SDL_GPU (which is closer to actual D3D12/Vulkan/Metal syntax) but it currently doesn't have a web backend. That said, the rest should be able to work, and at some point I assume SDL_GPU will have a web rendering backend, but we'll see. |
Hi!
As the title says, I'm trying to add
browser-wasmsupport via NativeAOT-LLVM.It looks like the library is built correctly, and I reference it with an updated
Sample/Shapes.csproj:For the moment, the game doesn't launch in the browser, with the following error, apparently referencing the
mainfunction:SES_UNCAUGHT_EXCEPTION: RuntimeError: indirect call signature mismatchWill continue to work on this next week, until then I'll be happy to get any insights!