Hacker News new | ask | show | jobs
by xchkr1337 1175 days ago
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.
1 comments

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.