glsl: implement more single dim support leaving multidim for later