glsl: add api and glsl version to hash generation for shaders