top | item 44420747

(no title)

AHTERIX5000 | 8 months ago

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.

discuss

order

pjmlp|8 months ago

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