diff options
author | Eric Anholt <eric@anholt.net> | 2009-04-27 09:55:58 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-04-30 14:17:50 -0700 |
commit | 922334a5c1f2bf76febd3c0dca364ea9589986c7 (patch) | |
tree | 5e41ee63b59ec31eb997ee270b08c6e41db83932 /tests/glslparsertest/shaders/CorrectSwizzle3.frag | |
parent | 5d9df119f1156e9468d53ea5a1c4848602984eb9 (diff) |
Initial add of glslparsertest-src-1.8.zip's glslparsertest/
Diffstat (limited to 'tests/glslparsertest/shaders/CorrectSwizzle3.frag')
-rw-r--r-- | tests/glslparsertest/shaders/CorrectSwizzle3.frag | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/glslparsertest/shaders/CorrectSwizzle3.frag b/tests/glslparsertest/shaders/CorrectSwizzle3.frag new file mode 100644 index 000000000..9e57d6932 --- /dev/null +++ b/tests/glslparsertest/shaders/CorrectSwizzle3.frag @@ -0,0 +1,13 @@ +void main()
+{
+ vec4 v = vec4(5,6,7,8);
+ // value changes for lhs
+ // 8765, 6758, 857, 75 i.e. replace v.zx
+ // value changes for rhs
+ // 8765, 6758, 86 i.e replace with v.wy
+ // replace v.z with v.w
+ // replace v.x with v.y
+ // add 1.000000 to v.w and v.y
+ v.wzyx.zywx.wzy.zy = (v.wzyx.zywx.wx)++;
+ gl_FragColor = vec4(v); // 6,7,8,9
+}
|