Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / invalidSwizzle.vert
1 #version 420
2
3 void f();
4 uniform sampler2D s;
5
6 void main() {
7     vec2 v = s.rr; // Swizzles do not apply to samplers
8     f().xx; // Scalar swizzle does not apply to void
9     f().xy; // Vector swizzle does not apply either
10 }