Ported specializeVertexShader() and specializeFragmentShader.

Signed-off-by: Janusz Sobczak <janusz.sobczak@mobica.com>