]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/bad_types.glsl
Validate some aspects of type declarations
[libs/gl.git] / tests / glsl / bad_types.glsl
1 typedef vector(2) void vvec2;
2 typedef vector(2) mat2 hyper;
3 typedef vector(2) sampler2D samplervec2;
4 typedef image(dimensions=2) vec2 vec2sampler;
5
6 #pragma MSP stage(vertex)
7 void main() { }
8
9 /* Expected error:
10 <test>:1: Invalid base type 'void' for vector type 'vvec2'
11 <test>:2: Invalid base type 'mat2' for vector type 'hyper'
12 <test>:3: Invalid base type 'sampler2D' for vector type 'samplervec2'
13 <test>:4: Invalid base type 'vec2' for image type 'vec2sampler'
14 */