Re:First Public Working Drafts: WebGPU and WebGPU Shading La...
by kvark on Tuesday May 18, 2021 @01:12PM
(#27197798)
> Google and Mozilla are also developing a C-compatible library that should be available as an OpenGL alternative for native code.
To clarify, Google and Mozilla are both developing separate libraries: Dawn (in C++) and wgpu (in Rust) respectively. Both are designed to be usable behind the same native C API - https://github.com/webgpu-native/webgpu-headers
> For the shading language they settled on a text based language designed to be easily translatable to/from Vulkan SPIR-V bytecode
To clarify, Google and Mozilla are both developing separate libraries: Dawn (in C++) and wgpu (in Rust) respectively. Both are designed to be usable behind the same native C API - https://github.com/webgpu-native/webgpu-headers
> For the shading language they settled on a text based language designed to be easily translatable to/from Vulkan SPIR-V bytecode
Going from SPIR-V has been anything but easy for us (in Naga/wgpu land), so far. Raph posted this link in the comment above - http://kvark.github.io/spirv/2021/05/01/spirv-horrors.html