3 ms·
> 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 Mozil
by kvark 5y ago
> 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 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 http://kvark.github.io/spirv/2021/05/01/spirv-horrors.html