I am currently trying to use the layout-syntax in combination with "in" and "uniform" variables in my vertex shader. Here is my vertex-shader:
Code :
#version 140
layout(location = 0) in vec4 pos;
layout(location = 0) uniform vec2 offset;
void main() {
	pos.x += offset.x;
	pos.y += offset.y;
	gl_Position = pos;

When I am trying to compile this I get an compiler error and printing the log gives me the following message:
ERROR: 0:3: 'location' : syntax error syntax error

Can someone tell me what the problem with my shader is? My system supports (according to glGet(GL_VERSION)) version 3.3.0 - Build
Thank you,