At least on most typical graphics cards, most of the OpenGL pipeline (fixed or programmable) is implemented in the graphics hardware itself. This is more related to DirectX (i.e. DirectX lacks a bit of functionality in OpenGL that is not directly supported by current hardware).
Shaders are usually compiled. The graphics card has a special processor (or, often, more than one), so the compiler takes input in the shader language and turns it into assembly language for this processor, as does the C compiler for the CPU. Support for different input languages is not much different from a single processor that supports input in C, C ++, Pascal, Fortran, Cobol, etc.
source share