b88b4e1a12
- MultipleAssignments - NegatedVectorLiteral - NumberCasts - OutParams - OutParamsTricky (disabled on GPU due to skia:11269) Change-Id: I87dc9c5019931f3d2dc3aafbe1e02d0eee2e1a05 Bug: skia:11009, skia:11269 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/366400 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
13 lines
272 B
GLSL
13 lines
272 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
uniform vec4 colorGreen;
|
|
uniform vec4 colorRed;
|
|
vec4 main() {
|
|
vec4 result = vec4(0.0, 1.0, 2.0, 3.0);
|
|
result.xz.xy = vec2(2.0, 0.0);
|
|
|
|
result.yw = vec2(3.0, 5.0);
|
|
|
|
return result == vec4(2.0, 3.0, 0.0, 5.0) ? colorGreen : colorRed;
|
|
}
|