Re:Chrome Ships WebGPU
by illiarian on Thursday April 06, 2023 @05:24AM
(#35466121)
No idea what the comment about Rust means, but we already have several shader languages. There was literally no reason to invent another incompatible one
[ Parent
| on HN ]
Most current shader languages are very close to C in terms of syntax and behavior and these are some of the worst aspects of C as a language. I guess they could have went with SPIR-V but generally a compilation step shouldn't be required in web standards.
MSL, HLSL and PSSL are C++ dialects.
Literally all of these are owned by big corporations (Apple, Microsoft, Sony) and made specifically for their proprietary gpu APIs. C++ is just a superset of C which doesn't fix syntax problems. Making an open source standard with a modern syntax is a better idea than picking a favorite corporation.
Guess what is the main shading language used in Vulkan, specially going forward as announced at Vulkanised 2023.
C++ is a safer, more expressive superset of C89.
Also those dialects aren't C++, they are based in C++, which isn't the same.