glsl: add uniform and program resource support (v2)