3 ms·
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
by xchkr1337 3y 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.
- pjmlp 3y agoMSL, HLSL and PSSL are C++ dialects.
- xchkr1337 3y agoLiterally 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.
- pjmlp 3y agoGuess 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.