Re:Chrome Ships WebGPU
by xchkr1337 on Thursday April 06, 2023 @06:06AM
(#35466378)
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.
[ Parent
| on HN ]
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.