Open JayFoxRox opened 4 years ago
Actually it seems Nvidia did open source the Cg compiler code. https://web.archive.org/web/20090803133658/http://developer.nvidia.com/object/cg_compiler_code.html
It could be used to fix any problems that occur if it ever stops working properly.
it seems Nvidia did open source the Cg compiler code
This was already known to us, but turned out to be pretty useless:
This release provides the source code for the Cg compiler (cgc.exe) with a "generic" profile, which does some minimal semantic checks and prints out a tree representation of the code
So they only open-sourced a "generic" profile which doesn't help much for compiling for nv2a.
I consider it too much work to implement a high level shader compiler, so I don't care - I simply write my VP and RC in assembly.
NVIDIA Cg compiler has not been supported since 2012. It is a closed-source / proprietary binary for a limited number of CPUs and operating-systems. It will eventually stop working and an open-source replacement will be unlikely.
For other projects the "Credits" section lists the license, but for Cg compiler it doesn't warn about this. Saying that it's a "(proprietary / discontinued by NVIDIA)" with a link to an issue or wiki article that explains alternatives could be an option.