News for hackers. Stuff that matters.
Re:WebGPU Fundamentals by raphlinus on Saturday April 15, 2023 @09:17AM (#35580369)
One of the most exciting features of WebGPU, especially over WebGL, is the ability to run compute shaders. That opens up an entire class of 2D vector graphics rendering techniques using compute shaders, including Vello. It's still in early stages, but the current code does include text rendering. There's a very rough demo at https://levien.com/vello-demo (the demo doesn't do variable fonts but the code can), and we'll be polishing that in time for Chrome M113 going stable.
Re:WebGPU Fundamentals by pjmlp on Saturday April 15, 2023 @10:08AM (#35580752)
Thanks to Google blocking WebGL compute shaders adoption.

We could have had them three years ago.

Re:WebGPU Fundamentals by fulafel on Saturday April 15, 2023 @10:20AM (#35580852)
There's a lot of literature about font rendering predating compute shaders too, compute shaders are not a functional prerequisite by any means.

Here's eg one case: https://github.com/astiopin/webgl_fonts

Re:WebGPU Fundamentals by pjmlp on Saturday April 15, 2023 @11:16AM (#35581370)
Yeah, that as well.

WebGL 2.0 is kind of PlayStation 3 like in capabilities, that we seldom see that in action besides shadertoy, Google Maps/Earth, and 360° views on ecommerce sites is another matter.

Re:WebGPU Fundamentals by CSSer on Saturday April 15, 2023 @10:14AM (#35580809)
Interesting. Do you have any more context around this? It sounds uncharacteristic of Google to do so given their usual stance on browsers being all things to all people.
Re:WebGPU Fundamentals by pjmlp on Saturday April 15, 2023 @11:12AM (#35581329)
Re:WebGPU Fundamentals by kimown on Monday April 17, 2023 @02:00AM (#35597275)
Yes, I also don't understand why google abandon webgl compute shader, just because webgpu will have same, so they force developer using newer api.
Re:WebGPU Fundamentals by coffeeaddict1 on Saturday April 15, 2023 @08:33PM (#35586070)
Is it (will it be) possible to use Vello from C++ or is this firmly Rust only?
Re:WebGPU Fundamentals by raphlinus on Saturday April 15, 2023 @09:18PM (#35586363)
There are no active plans to do this, but it's all open source and there are tools such as cbindgen, so if there is sufficient interest there's a good chance it will happen.