Shading languages

All shading languages share common features and pretty much do the same thing with more or less restrictions/flexibility. Before delving into the details of any one language one should first understand what a shading language does in general and where it fits/what it replaces in the overall graphics pipeline.