ext_gpu_shader4: add compiler tests for everything
[piglit.git] / tests / spec / glsl-1.50 / compiler / arb_shading_language_packing.geom
blobb07b130b2d7f52cbcbc92ab821bb7e1070834bb9
1 /* [config]
2  * expect_result: pass
3  * glsl_version: 1.50
4  * require_extensions: GL_ARB_shading_language_packing
5  * [end config]
6  *
7  * Verify that GL_ARB_shading_language_packing can be used in geometry shaders
8  */
9 #version 150
10 #extension GL_ARB_shading_language_packing: require
12 uniform vec2 v2;
13 uniform vec4 v4;
14 uniform uint u;
16 void main()
18   vec4 foo = vec4(packUnorm2x16(v2));
19   foo += vec4(packSnorm2x16(v2));
20   foo += vec4(packUnorm4x8(v4));
21   foo += vec4(packSnorm4x8(v4));
22   foo += vec4(unpackUnorm2x16(u), 0.0, 0.0);
23   foo += vec4(unpackSnorm2x16(u), 0.0, 0.0);
24   foo += unpackUnorm4x8(u);
25   foo += unpackSnorm4x8(u);
26   gl_Position = foo;
27   EmitVertex();