115645ee9b
This CL only handles a subset of our intrinsics. In particular, it avoids changing the behavior of `sqrt` as many of our tests use sqrt as an optimization barrier. The transcendental test inputs are intentionally kept very simple to avoid putting numbers in the test outputs which could round differently on various platforms and cause Housekeeper to complain. Change-Id: I539f918294332310dcd6fe12fab163c0b6216f65 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/405398 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
10 lines
488 B
GLSL
10 lines
488 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
uniform vec4 testInputs;
|
|
uniform vec4 colorGreen;
|
|
uniform vec4 colorRed;
|
|
vec4 main() {
|
|
vec4 expected = vec4(-1.0, 0.0, 1.0, 3.0);
|
|
return ((((((ceil(testInputs.x) == expected.x && ceil(testInputs.xy) == expected.xy) && ceil(testInputs.xyz) == expected.xyz) && ceil(testInputs) == expected) && -1.0 == expected.x) && vec2(-1.0, 0.0) == expected.xy) && vec3(-1.0, 0.0, 1.0) == expected.xyz) && vec4(-1.0, 0.0, 1.0, 3.0) == expected ? colorGreen : colorRed;
|
|
}
|