skia2/tests/sksl/workarounds/MinAndAbsTogether.glsl

9 lines
233 B
Plaintext
Raw Normal View History

#version 400
out vec4 sk_FragColor;
void main() {
float minAbsHackVar0;
float minAbsHackVar1;
float x = -5.0;
sk_FragColor.x = ((minAbsHackVar0 = abs(x)) < (minAbsHackVar1 = 6.0) ? minAbsHackVar0 : minAbsHackVar1);
}