ab4ab20fcf
These tests will also be used for Metal and SPIR-V testing. A small handful of GLSL-specific stragglers (#version-specific or type-precision related) will remain in /glsl/. Change-Id: I7f2b2bd92825c327922c8ce74e438d2daa440dff Bug: skia:10649 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/319408 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
32 lines
1.2 KiB
GLSL
32 lines
1.2 KiB
GLSL
|
|
out vec4 sk_FragColor;
|
|
void main() {
|
|
vec4 v = vec4(sqrt(1.0));
|
|
sk_FragColor = vec4(v.x, 1.0, 1.0, 1.0);
|
|
sk_FragColor = vec4(v.xy, 1.0, 1.0);
|
|
sk_FragColor = vec4(vec2(v.x, 1.0), 1.0, 1.0);
|
|
sk_FragColor = vec4(vec2(v.y, 0.0).yx, 1.0, 1.0);
|
|
sk_FragColor = vec4(v.xyz, 1.0);
|
|
sk_FragColor = vec4(vec3(v.xy, 1.0), 1.0);
|
|
sk_FragColor = vec4(vec3(v.xz, 0.0).xzy, 1.0);
|
|
sk_FragColor = vec4(vec3(v.x, 1.0, 0.0), 1.0);
|
|
sk_FragColor = vec4(vec3(v.yz, 1.0).zxy, 1.0);
|
|
sk_FragColor = vec4(vec3(v.y, 0.0, 1.0).yxz, 1.0);
|
|
sk_FragColor = vec4(vec2(v.z, 1.0).yyx, 1.0);
|
|
sk_FragColor = v;
|
|
sk_FragColor = vec4(v.xyz, 1.0);
|
|
sk_FragColor = vec4(v.xyw, 0.0).xywz;
|
|
sk_FragColor = vec4(v.xy, 1.0, 0.0);
|
|
sk_FragColor = vec4(v.xzw, 1.0).xwyz;
|
|
sk_FragColor = vec4(v.xz, 0.0, 1.0).xzyw;
|
|
sk_FragColor = vec3(v.xw, 1.0).xzzy;
|
|
sk_FragColor = vec3(v.x, 1.0, 0.0).xyzy;
|
|
sk_FragColor = vec4(v.yzw, 1.0).wxyz;
|
|
sk_FragColor = vec4(v.yz, 0.0, 1.0).zxyw;
|
|
sk_FragColor = vec4(v.yw, 0.0, 1.0).zxwy;
|
|
sk_FragColor = vec2(v.y, 1.0).yxyy;
|
|
sk_FragColor = vec3(v.zw, 0.0).zzxy;
|
|
sk_FragColor = vec3(v.z, 0.0, 1.0).yyxz;
|
|
sk_FragColor = vec3(v.w, 0.0, 1.0).yzzx;
|
|
}
|