emepetres / HelloWebGPU.Net

WebGPU Triangle sample using C# and Dawn
MIT License
12 stars 2 forks source link

Where is libwebgpu.o come from? #1

Open Kation opened 1 year ago

Kation commented 1 year ago

I have problem build project as blazor webassembly. I use NativeFileReference in ItemGroup to link libwebgpu.o. (https://learn.microsoft.com/zh-cn/aspnet/core/blazor/webassembly-native-dependencies?view=aspnetcore-7.0) But when I build the project, it show lots of undefined symbol. One of these: undefined symbol: emscripten_webgpu_get_device (referenced by top-level compiled C/C++ code)

If I add EmccExtraLDFlags>-s WARN_ON_UNDEFINED_SYMBOLS=0</EmccExtraLDFlags> to PropertyGroup.
It can build successful but run failed that web console show blazor.webassembly.js:1 missing function: emscripten_webgpu_get_device. I don't know how to solve it.

BradChase2011 commented 4 months ago

Were you able to get any further in trying to get WebGPU running on blazor? I can't seem to find the documentation I need to get the library on the client side to interop with. Thanks!

Kation commented 4 months ago

Were you able to get any further in trying to get WebGPU running on blazor? I can't seem to find the documentation I need to get the library on the client side to interop with. Thanks!

For the previous researching that only aot could use WebGPU. I don't know what it is change now.