glsl: Apply memory qualifiers to buffer variables