HLSL Parser and GLSL code generator