That’s what I don’t quite understand. How do you transpile a compute shader to Webgl? Are there other things that are not compatible?
TBH I don’t know much about this topic, but aren’t most languages compiled/transpiled? Eg with typescript I get a whole different syntax but I get JavaScript in the end. With GLSL it gets compiled to different shaders in the GPU already and all I provide is a string. I don’t understand why this has to be in JavaScript. Is it possible to do it in reverse, eg if I have a GLSL shader, to generate TSL?
1 Like