Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've been also working on a 2D UI on the GPU. It's quite amazing actually, compared with the code running on the CPU, the code is very terse. The setup can be somewhat verbose, but the shaders themselves are short. Like a 20 line shader can do miracles.


Any github links that are freely available?


Do you have an example?


yeah shaders really force you to invert your thinking in a good way.

Normally our brains spit out cluttered logic with a bunch of for loops and hash tables but shaders cleave all that away.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: