Lines Matching refs:sqr
1470 DSLFunction sqr(kFloat_Type, "sqr", x);
1471 sqr.define(
1474 EXPECT_EQUAL(sqr(sk_FragCoord().x()), "sqr(sk_FragCoord.x)");
1477 "float sqr(float x) { return (x * x); }");
2077 DSLFunction sqr(kFloat_Type, "sqr", x);
2078 sqr.define(
2082 sk_FragColor() = (sqr(2), Half4(sqr(3)))
2090 "/* inlined: sqr */;"
2091 "/* inlined: sqr */;"
2110 DSLFunction sqr(kFloat_Type, "sqr", x);
2112 EXPECT_EQUAL(*SkSL::ThreadContext::ProgramElements()[0], "float sqr(float x);");
2113 sqr.define(
2118 "float sqr(float x) { return (x * x); }");
2124 DSLFunction sqr(kFloat_Type, "sqr", x);
2126 EXPECT_EQUAL(*SkSL::ThreadContext::ProgramElements()[0], "float sqr(float x);");
2127 DSLFunction(kVoid_Type, "main").define(sqr(5));
2129 EXPECT_EQUAL(*SkSL::ThreadContext::ProgramElements()[0], "float sqr(float x);");
2130 EXPECT_EQUAL(*SkSL::ThreadContext::ProgramElements()[1], "void main() { sqr(5.0); }");
2131 sqr.define(
2136 "float sqr(float x) { return (x * x); }");
2142 "float sqr(float x);"
2144 "/* inlined: sqr */;"