• Home
  • Raw
  • Download

Lines Matching refs:r

19 static void test(skiatest::Reporter* r, const char* src, const SkSL::Program::Settings& settings,  in test()  argument
29 REPORTER_ASSERT(r, program); in test()
31 REPORTER_ASSERT(r, compiler.toGLSL(*program, &output)); in test()
38 REPORTER_ASSERT(r, output == skExpected); in test()
42 static void test(skiatest::Reporter* r, const char* src, const GrShaderCaps& caps, in test() argument
47 test(r, src, settings, expected, &inputs, kind); in test()
50 DEF_TEST(SkSLHelloWorld, r) { in DEF_TEST() argument
51 test(r, in DEF_TEST()
61 DEF_TEST(SkSLControl, r) { in DEF_TEST() argument
62 test(r, in DEF_TEST()
97 DEF_TEST(SkSLFunctions, r) { in DEF_TEST() argument
98 test(r, in DEF_TEST()
122 DEF_TEST(SkSLOperators, r) { in DEF_TEST() argument
123 test(r, in DEF_TEST()
172 DEF_TEST(SkSLMatrices, r) { in DEF_TEST() argument
173 test(r, in DEF_TEST()
193 DEF_TEST(SkSLInterfaceBlock, r) { in DEF_TEST() argument
194 test(r, in DEF_TEST()
216 test(r, in DEF_TEST()
232 test(r, in DEF_TEST()
250 DEF_TEST(SkSLStructs, r) { in DEF_TEST() argument
251 test(r, in DEF_TEST()
287 DEF_TEST(SkSLVersion, r) { in DEF_TEST() argument
288 test(r, in DEF_TEST()
297 test(r, in DEF_TEST()
307 DEF_TEST(SkSLUsesPrecisionModifiers, r) { in DEF_TEST() argument
308 test(r, in DEF_TEST()
321 test(r, in DEF_TEST()
337 DEF_TEST(SkSLMinAbs, r) { in DEF_TEST() argument
338 test(r, in DEF_TEST()
350 test(r, in DEF_TEST()
366 DEF_TEST(SkSLFractNegative, r) { in DEF_TEST() argument
385 test(r, input, *SkSL::ShaderCapsFactory::Default(), output_default); in DEF_TEST()
386 test(r, input, *SkSL::ShaderCapsFactory::CannotUseFractForNegativeValues(), output_workaround); in DEF_TEST()
389 DEF_TEST(SkSLNegatedAtan, r) { in DEF_TEST() argument
390 test(r, in DEF_TEST()
399 test(r, in DEF_TEST()
410 DEF_TEST(SkSLModifiersDeclaration, r) { in DEF_TEST() argument
411 test(r, in DEF_TEST()
453 DEF_TEST(SkSLHex, r) { in DEF_TEST() argument
454 test(r, in DEF_TEST()
503 DEF_TEST(SkSLVectorConstructors, r) { in DEF_TEST() argument
504 test(r, in DEF_TEST()
531 DEF_TEST(SkSLArrayConstructors, r) { in DEF_TEST() argument
532 test(r, in DEF_TEST()
550 DEF_TEST(SkSLDerivatives, r) { in DEF_TEST() argument
551 test(r, in DEF_TEST()
559 test(r, in DEF_TEST()
568 test(r, in DEF_TEST()
584 test(r, in DEF_TEST()
594 test(r, in DEF_TEST()
606 DEF_TEST(SkSLIntFolding, r) { in DEF_TEST() argument
607 test(r, in DEF_TEST()
693 DEF_TEST(SkSLFloatFolding, r) { in DEF_TEST() argument
694 test(r, in DEF_TEST()
768 DEF_TEST(SkSLBoolFolding, r) { in DEF_TEST() argument
769 test(r, in DEF_TEST()
791 DEF_TEST(SkSLShortCircuitBoolFolding, r) { in DEF_TEST() argument
792 test(r, in DEF_TEST()
843 DEF_TEST(SkSLVecFolding, r) { in DEF_TEST() argument
844 test(r, in DEF_TEST()
948 DEF_TEST(SkSLMatFolding, r) { in DEF_TEST() argument
949 test(r, in DEF_TEST()
991 DEF_TEST(SkSLConstantIf, r) { in DEF_TEST() argument
992 test(r, in DEF_TEST()
1009 DEF_TEST(SkSLCaps, r) { in DEF_TEST() argument
1010 test(r, in DEF_TEST()
1030 DEF_TEST(SkSLTexture, r) { in DEF_TEST() argument
1031 test(r, in DEF_TEST()
1053 test(r, in DEF_TEST()
1076 DEF_TEST(SkSLSharpen, r) { in DEF_TEST() argument
1082 test(r, in DEF_TEST()
1108 test(r, in DEF_TEST()
1132 DEF_TEST(SkSLOffset, r) { in DEF_TEST() argument
1133 test(r, in DEF_TEST()
1158 DEF_TEST(SkSLFragCoord, r) { in DEF_TEST() argument
1164 test(r, in DEF_TEST()
1174 REPORTER_ASSERT(r, !inputs.fRTHeight); in DEF_TEST()
1178 test(r, in DEF_TEST()
1188 REPORTER_ASSERT(r, !inputs.fRTHeight); in DEF_TEST()
1192 test(r, in DEF_TEST()
1204 REPORTER_ASSERT(r, inputs.fRTHeight); in DEF_TEST()
1207 test(r, in DEF_TEST()
1216 REPORTER_ASSERT(r, !inputs.fRTHeight); in DEF_TEST()
1218 test(r, in DEF_TEST()
1229 test(r, in DEF_TEST()
1243 test(r, in DEF_TEST()
1258 DEF_TEST(SkSLWidthAndHeight, r) { in DEF_TEST() argument
1263 test(r, in DEF_TEST()
1273 REPORTER_ASSERT(r, inputs.fRTWidth); in DEF_TEST()
1274 REPORTER_ASSERT(r, !inputs.fRTHeight); in DEF_TEST()
1276 test(r, in DEF_TEST()
1286 REPORTER_ASSERT(r, !inputs.fRTWidth); in DEF_TEST()
1287 REPORTER_ASSERT(r, inputs.fRTHeight); in DEF_TEST()
1290 DEF_TEST(SkSLClockwise, r) { in DEF_TEST() argument
1291 test(r, in DEF_TEST()
1301 DEF_TEST(SkSLVertexID, r) { in DEF_TEST() argument
1302 test(r, in DEF_TEST()
1313 DEF_TEST(SkSLInstanceID, r) { in DEF_TEST() argument
1314 test(r, in DEF_TEST()
1325 DEF_TEST(SkSLClipDistance, r) { in DEF_TEST() argument
1326 test(r, in DEF_TEST()
1334 test(r, in DEF_TEST()
1344 DEF_TEST(SkSLArrayTypes, r) { in DEF_TEST() argument
1345 test(r, in DEF_TEST()
1358 DEF_TEST(SkSLArrayIndexTypes, r) { in DEF_TEST() argument
1359 test(r, in DEF_TEST()
1374 DEF_TEST(SkSLGeometry, r) { in DEF_TEST() argument
1375 test(r, in DEF_TEST()
1401 DEF_TEST(SkSLSwitch, r) { in DEF_TEST() argument
1403 test(r, in DEF_TEST()
1436 test(r, in DEF_TEST()
1464 test(r, in DEF_TEST()
1489 test(r, in DEF_TEST()
1507 test(r, in DEF_TEST()
1525 test(r, in DEF_TEST()
1544 test(r, in DEF_TEST()
1563 test(r, in DEF_TEST()
1591 DEF_TEST(SkSLRectangleTexture, r) { in DEF_TEST() argument
1592 test(r, in DEF_TEST()
1604 test(r, in DEF_TEST()
1616 test(r, in DEF_TEST()
1630 DEF_TEST(SkSLUnusedVars, r) { in DEF_TEST() argument
1631 test(r, in DEF_TEST()
1652 DEF_TEST(SkSLMultipleAssignments, r) { in DEF_TEST() argument
1653 test(r, in DEF_TEST()
1669 DEF_TEST(SkSLComplexDelete, r) { in DEF_TEST() argument
1670 test(r, in DEF_TEST()
1693 DEF_TEST(SkSLDependentInitializers, r) { in DEF_TEST() argument
1694 test(r, in DEF_TEST()
1707 DEF_TEST(SkSLDeadLoopVar, r) { in DEF_TEST() argument
1708 test(r, in DEF_TEST()
1724 DEF_TEST(SkSLGeometryShaders, r) { in DEF_TEST() argument
1725 test(r, in DEF_TEST()
1757 test(r, in DEF_TEST()
1778 test(r, in DEF_TEST()
1801 DEF_TEST(SkSLTypePrecision, r) { in DEF_TEST() argument
1802 test(r, in DEF_TEST()
1832 test(r, in DEF_TEST()
1857 DEF_TEST(SkSLNumberConversions, r) { in DEF_TEST() argument
1858 test(r, in DEF_TEST()
1952 DEF_TEST(SkSLForceHighPrecision, r) { in DEF_TEST() argument
1953 test(r, in DEF_TEST()
1969 test(r, in DEF_TEST()
1983 DEF_TEST(SkSLNormalization, r) { in DEF_TEST() argument
1984 test(r, in DEF_TEST()
1995 test(r, in DEF_TEST()
2031 DEF_TEST(SkSLTernaryLValue, r) { in DEF_TEST() argument
2032 test(r, in DEF_TEST()
2041 test(r, in DEF_TEST()
2053 test(r, in DEF_TEST()
2071 DEF_TEST(SkSLIncompleteShortIntPrecision, r) { in DEF_TEST() argument
2072 test(r, in DEF_TEST()
2092 test(r, in DEF_TEST()
2114 DEF_TEST(SkSLFrExp, r) { in DEF_TEST() argument
2115 test(r, in DEF_TEST()
2131 DEF_TEST(SkSLWorkaroundAddAndTrueToLoopCondition, r) { in DEF_TEST() argument
2132 test(r, in DEF_TEST()
2151 DEF_TEST(SkSLWorkaroundUnfoldShortCircuitAsTernary, r) { in DEF_TEST() argument
2152 test(r, in DEF_TEST()
2188 DEF_TEST(SkSLWorkaroundEmulateAbsIntFunction, r) { in DEF_TEST() argument
2189 test(r, in DEF_TEST()
2212 DEF_TEST(SkSLWorkaroundRewriteDoWhileLoops, r) { in DEF_TEST() argument
2213 test(r, in DEF_TEST()
2259 DEF_TEST(SkSLWorkaroundRemovePowWithConstantExponent, r) { in DEF_TEST() argument
2260 test(r, in DEF_TEST()
2280 DEF_TEST(SkSLSwizzleConstants, r) { in DEF_TEST() argument
2281 test(r, in DEF_TEST()