I am so confused, I thought the “future” was about WebAssembly, and now there is “WebGPU”?
Would someone mind explaining a little bit, in few words, what’s the difference? (going to google it meanwhile)
EDIT: and what about Vulkan? don’t they do a web version? EDIT 2: Re: why not a WebVulkan, see NXT, a prototype WebGL Next - Google Docs EDIT 3: Re: WebAssembly and WebGPU, the difference seems to be that the first one is about going closer to the CPU, while the second is about going closer to the GPU, am I right?
WebAssembly is a bytecode executed CPU side. It can replace some parts of JS by running faster (JS is still needed because only it can access to the DOM canvas and run the WASM process)
WebGPU is the next API coming after WebGL to access the GPU. AFAIK, it’s still a W3C draft and uses some of the work already done by the Vulkan project, but also Direct3D or Apple Metal.
WebGPU is a standard in making. There was 3 proposals from Mozilla, Apple and Google. The Apple one formerly named WebGPU, now WebMetal, was chosen as the starting point for the spec (maybe because it had best xplatform abstraction?). I think that is the main reason for WebGPU development coming first to Mac.
Chrome is using a project called Dawn, which ‘translates’ WebGPU to Vulkan/D3D12/Metal respectively on different platforms (and this is why we have WebGPU and not WebVulkan - as Vulkan does not run on Mac/iOS). In a sense you can compare Dawn to what ANGLE did for WebGL (translate to DirectX).
Wonderful news ! Now I have to go rewrite my design specs…
Any idea if webgpu will impact texture loading times or texture size limitations ? I’d love to work in the 4k zones. Eyeballing the demos and samples, there doesn’t seem to be anything on textures.
Do you think Babylon will be able to detect that the browser support WebGPU and use the right APIs? if so it can be used before Apple will finally to more their asses.
I assume that if it’s already in chrome canary version it might not be that long before it gets to production.
@sebavan you’re really making a wonderful job, first tree-shaking and now this.