2 ms·
WebGPU uses WGSL, completely different shading language, Rust inspired. Naturally ThreeJS has to now take care how to provide shaders that work across both bac
by pjmlp 2y ago
WebGPU uses WGSL, completely different shading language, Rust inspired.
Naturally ThreeJS has to now take care how to provide shaders that work across both backends.
- rahkiin 2y agoGLSL is pretty bad though. Terrible typing system, terrible inference, terrible archaic requirements. Awful annotations. Metal and HLSL are more modern. Mostly because Metal started as such and HLSL was updated. Both C++ inspired or even using clang. WGSL has a rust-like syntax but Metal-like semantics and structure.
- pjmlp 2y agoWe are all aware of the differences, that wasn't the point.