|
|
|
|
|
by incrudible
564 days ago
|
|
Nobody is using all these languages at the same time, anyone who targets all these platforms already has some mechanism to turn HLSL or GLSL (or whatever) into what the target platform needs. That's why Slang will have difficulty finding adoption, it's the N+1th solution to a problem that already has been solved N times. |
|
Slang had to make a change to its type system[2] to make this work. But they did it, and as a result Slang is appealing as an "apex" language - you can translate from that to anything, and also get advanced features lacking in WebGPU.
[1]: https://github.com/gpuweb/gpuweb/issues/2377
[2]: https://github.com/shader-slang/slang/issues/5084