Iwo Plaza | TypeGPU @iwoplaza.dev · Jun 29

I hate to say it but... LLMs are decent at writing TypeGPU shaders. @thdxr.com's opencode wrote a few SDF functions, then created a simple ray marched scene. Mind you, this is NOT a Three.js scene! It's a custom fragment shader that sends rays into an "imaginary" space, written fully in TypeScript

2 likes 1 replies

?

Replies

Iwo Plaza | TypeGPU · Jun 29

I think it was able to get it right on first try because: - The TypeScript LSP was able to give feedback to the model along the way - The I/O bridge between the CPU & GPU is type safe, no need to maintain both sides of the app separately (less room for runtime errors) Expect more updates on this 👀