xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/invalidSwizzle.vert (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1#version 420
2
3void f();
4uniform sampler2D s;
5
6void 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}