18 ms·
This is a pretty good answer: https://github.com/gfx-rs/wgpu/tree/trunk/wgpu-hal https://github.com/gfx-rs/wgpu/tree/trunk/wgpu-hal The "design of WebGPU" is a
by Pannoniae 2y ago
This is a pretty good answer: https://github.com/gfx-rs/wgpu/tree/trunk/wgpu-hal https://github.com/gfx-rs/wgpu/tree/trunk/wgpu-hal
The "design of WebGPU" is a problem. It's designed for the web to be secure and sandboxed so the API design reflects that. This is not a good thing on desktop.
- adwn 2y ago> The "design of WebGPU" is a problem. It's designed for the web to be secure and sandboxed so the API design reflects that. The page you linked clearly states that wgpu-hal's API is extremely unsafe and skips many checks in order to reduce overhead. So while "secure and sandboxed" explains why wgpu wasn't chosen, it doesn't explain why wgpu-hal wasn't chosen.