You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The official C header for WebGPU now use string views in-lieu of null-terminated strings (see webgpu-native/webgpu-headers#170 (comment) ). Emscripten still use null-terminated strings, while Dawn use WGPUStringView. Those 2 types are incompatible, which is a pain when targeting web/native webgpu through emscripten/dawn.
If you do not have the time to implement string views in Emscripten' webgpu.h, please let me know how to do it, I can submit a PR for that.
There are actually many more changes than this for which Emscripten is behind the standard webgpu.h. We're not updating Emscripten for now; please see #23432. See "emdawnwebgpu" for the updated version which is maintained in Dawn. We'll probably have that as an easy-to-use downloadable package in the future.
Hello,
The official C header for WebGPU now use string views in-lieu of null-terminated strings (see webgpu-native/webgpu-headers#170 (comment) ). Emscripten still use null-terminated strings, while Dawn use
WGPUStringView
. Those 2 types are incompatible, which is a pain when targeting web/native webgpu through emscripten/dawn.If you do not have the time to implement string views in Emscripten' webgpu.h, please let me know how to do it, I can submit a PR for that.
dawn/webgpu.h (excerpt)
emscripten/webgpu.h (excerpt)
Notice:
Version of emscripten/emsdk:
The text was updated successfully, but these errors were encountered: