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>
22 lines
489 B
GLSL
22 lines
489 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
uniform vec4 colorGreen;
|
|
uniform vec4 colorRed;
|
|
bool test_int() {
|
|
ivec4 result;
|
|
result.x = 1;
|
|
result.y = 1;
|
|
result.z = 1;
|
|
result.w = 1;
|
|
return bool(((result.x * result.y) * result.z) * result.w);
|
|
}
|
|
vec4 main() {
|
|
vec4 _1_result;
|
|
_1_result.x = 1.0;
|
|
_1_result.y = 1.0;
|
|
_1_result.z = 1.0;
|
|
_1_result.w = 1.0;
|
|
return bool(((_1_result.x * _1_result.y) * _1_result.z) * _1_result.w) && test_int() ? colorGreen : colorRed;
|
|
|
|
}
|