Implement slang shader specification for GLSL and Cg.