Lines Matching defs:value
772 float value[4], expected[4];
774 value[0] = 0.0f; expected[0] = 0.0f;
775 test(r, "float main(float x) { return sin(x); }", value, expected);
776 test(r, "float main(float x) { return tan(x); }", value, expected);
778 value[0] = 0.0f; expected[0] = 1.0f;
779 test(r, "float main(float x) { return cos(x); }", value, expected);
781 value[0] = 25.0f; expected[0] = 5.0f;
782 test(r, "float main(float x) { return sqrt(x); }", value, expected);
784 value[0] = 90.0f; expected[0] = sk_float_degrees_to_radians(value[0]);
785 test(r, "float main(float x) { return radians(x); }", value, expected);
787 value[0] = 1.0f; value[1] = -1.0f;
789 test(r, "float2 main(float2 x) { return normalize(x); }", value, expected);
800 float value, expected;
802 value = 0.5f; expected = 0.0f;
803 test(r, "float main(float x) { return mix(-10, 10, x); }", &value, &expected);
804 value = 0.75f; expected = 5.0f;
805 test(r, "float main(float x) { return mix(-10, 10, x); }", &value, &expected);
806 value = 2.0f; expected = 30.0f;
807 test(r, "float main(float x) { return mix(-10, 10, x); }", &value, &expected);