extract uniforms and attributes from glsl programs