4 ms·
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
by illiarian 4y ago
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
- xchkr1337 4y agoMost 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 4y agoMSL, HLSL and PSSL are C++ dialects.
- xchkr1337 4y 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 4y 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.