News for hackers. Stuff that matters.
Re:The Book of Shaders by AHTERIX5000 on Monday June 30, 2025 @04:16AM (#44420747)
Fragment shaders are perhaps over over-represented due to old WebGL style and easiness of integration, full screen quad + a shader is quite self contained setup.

Compute shaders are much more interesting and widely used in modern graphics though. No fixed rasterizing setup needed, just buffers for data in/out and a kernel with access to the usual GPU syncing primitives in between.

Re:The Book of Shaders by pjmlp on Monday June 30, 2025 @07:23AM (#44421919)
Side note that WebGL only doesn't have compute, because Google sabotaged the effort, asserting that WebGPU was right around the corner, so there was no need to adopt Intel's work into Chrome.

This was back in 2020,

https://github.com/9ballsyndrome/WebGL_Compute_shader/issues...

Thankfully we are all now writing easy, portable, WebGPU computer shaders, even ShaderToy supports them now. /s