5 ms·
Implementing WebGPU in Gecko
- pickdenis 7y agoI've been looking around, and it seems WebGPU is doing the same things we've been using WebGL for. Is it a more generic interface that also allows for arbitary computation? (a la GPGPU)
- kvark 7y agoMore capable (compute) and modern: command buffers, passes, pipeline states, bind groups, multi-threading.
- networkimprov 7y agoSuperb toolkit for ads mining cryptocurrency :-/ Or even whole sites! Maybe it's the long-sought revenue model for journalism ;-)
- shurcooL 7y agoWebGPU to WebGL is like Metal/Vulkan to OpenGL.
- kbumsik 7y ago> it seems WebGPU is doing the same things we've been using WebGL for. Not really the same though, the purpose of WebGPU is exposing a sandboxed GPU hardware directly to the web, not exposing just a graphical API like WebGL exposes OpenGL variants. It currently is looking at being SPIR-V compatible. As both Vulkan and OpenCL supports SPIR-V we might use WebGPU for GPGPU in the future.
- shmerl 7y agoGood thing SPIR-V approach prevailed, despite Apple trying to derail it.
- kvark 7y agoThere is no resolution for this question yet, too early to celebrate anything.
- shmerl 7y agoAh, I see, thanks for clarifying. I misread the post then, since it mentioned SPIR-V. Too bad Apple not only refuse to support Vulkan, but try to prevent using SPIR-V as well.
- kvark 7y agoThey just want to make sure we aren't depending on Khronos too much. It's a reasonable thing to want for the group. As for Firefox, the WebGPU implementation uses the infrastructure we have for Vulkan Portability, and so consuming SPIRV is natural.
- pjmlp 7y agoWhat I care about is having a modern shading language not stuck being a C dialect, and good GPGPU debugging. If whatever Apple does forces Khronos to be more innovative, moreso the better. Without CUDA's winning strategy regarding multi-language support, SPIR-V and SYSCL would never had happened.
- deleted 7y ago[deleted]
- pcwalton 7y agoMetal Shading Language is a C++ dialect. HLSL is as much of a C dialect as GLSL is. And I would argue that C++ provides no benefits over C for shading languages. I prefer GLSL to Metal Shading Language.
- pjmlp 7y agoThankfully all proprietary shading languages have moved on from GLSL. Indeed, I really appreciate MSL being a C++ dialect.
- Jasper_ 7y agoVulkan and OpenCL use two drastically different profiles of SPIR-V. You cannot just take OpenCL kernels and run them as compute shaders, huge portions of the execution model are different.
- floatboth 7y agoSome googlers are working on OpenCL source to Vulkan-profile-SPIR-V though: https://github.com/google/clspv https://github.com/google/clspv
- banachtarski 7y agoNo absolutely not (although compute shaders will be a thing). WebGL1 : DirectX9 :: WebGPU : DirectX12 Or WebGL1 : OpenGLES1 :: WebGPU : Vulkan
- yuchi 7y agoYears ago when I was trying to clone Firefox’s and Chrome’s code bases WebIDL capabilities in order to simplify native bindings in Titanium SDK, I would have killed for such an article. Very interesting!