Lines Matching refs:triNdx
457 int triNdx = xf + yf >= 1.0f ? 1 : 0; // Top left fill rule.
458 float triX = triNdx ? 1.0f-xf : xf;
459 float triY = triNdx ? 1.0f-yf : yf;
461 float s = triangleInterpolate(triS[triNdx].x(), triS[triNdx].y(), triS[triNdx].z(), triX, triY);
462 float lod = triLod[triNdx];
489 int triNdx = xf + yf >= 1.0f ? 1 : 0; // Top left fill rule.
490 float triX = triNdx ? 1.0f-xf : xf;
491 float triY = triNdx ? 1.0f-yf : yf;
493 float s = triangleInterpolate(triS[triNdx].x(), triS[triNdx].y(), triS[triNdx].z(), triX, triY);
494 float t = triangleInterpolate(triT[triNdx].x(), triT[triNdx].y(), triT[triNdx].z(), triX, triY);
495 float lod = triLod[triNdx];
523 int triNdx = nx + ny >= 1.0f ? 1 : 0;
524 float triWx = triNdx ? dstW - wx : wx;
525 float triWy = triNdx ? dstH - wy : wy;
526 float triNx = triNdx ? 1.0f - nx : nx;
527 float triNy = triNdx ? 1.0f - ny : ny;
529 float s = projectedTriInterpolate(triS[triNdx], triW[triNdx], triNx, triNy);
530 float lod = computeProjectedTriLod(params.lodMode, triU[triNdx], triW[triNdx], triWx, triWy, (float)dst.getWidth(), (float)dst.getHeight())
562 int triNdx = nx + ny >= 1.0f ? 1 : 0;
563 float triWx = triNdx ? dstW - wx : wx;
564 float triWy = triNdx ? dstH - wy : wy;
565 float triNx = triNdx ? 1.0f - nx : nx;
566 float triNy = triNdx ? 1.0f - ny : ny;
568 float s = projectedTriInterpolate(triS[triNdx], triW[triNdx], triNx, triNy);
569 float t = projectedTriInterpolate(triT[triNdx], triW[triNdx], triNx, triNy);
570 float lod = computeProjectedTriLod(params.lodMode, triU[triNdx], triV[triNdx], triW[triNdx], triWx, triWy, (float)dst.getWidth(), (float)dst.getHeight())
664 const int triNdx = nx + ny >= 1.0f ? 1 : 0;
665 const float triNx = triNdx ? 1.0f - nx : nx;
666 const float triNy = triNdx ? 1.0f - ny : ny;
668 const tcu::Vec3 coord (triangleInterpolate(triS[triNdx], triNx, triNy),
669 triangleInterpolate(triT[triNdx], triNx, triNy),
670 triangleInterpolate(triR[triNdx], triNx, triNy));
671 const tcu::Vec3 coordDx (triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
672 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy),
673 triDerivateX(triR[triNdx], triW[triNdx], wx, dstW, triNy));
674 const tcu::Vec3 coordDy (triDerivateY(triS[triNdx], triW[triNdx], wy, dstH, triNx),
675 triDerivateY(triT[triNdx], triW[triNdx], wy, dstH, triNx),
676 triDerivateY(triR[triNdx], triW[triNdx], wy, dstH, triNx));
722 int triNdx = xf + yf >= 1.0f ? 1 : 0; // Top left fill rule.
723 float triX = triNdx ? 1.0f-xf : xf;
724 float triY = triNdx ? 1.0f-yf : yf;
726 float s = triangleInterpolate(triS[triNdx].x(), triS[triNdx].y(), triS[triNdx].z(), triX, triY);
727 float t = triangleInterpolate(triT[triNdx].x(), triT[triNdx].y(), triT[triNdx].z(), triX, triY);
728 float r = triangleInterpolate(triR[triNdx].x(), triR[triNdx].y(), triR[triNdx].z(), triX, triY);
729 float lod = triLod[triNdx];
766 int triNdx = xf + yf >= 1.0f ? 1 : 0; // Top left fill rule.
767 float triX = triNdx ? 1.0f-xf : xf;
768 float triY = triNdx ? 1.0f-yf : yf;
770 float s = triangleInterpolate(triS[triNdx].x(), triS[triNdx].y(), triS[triNdx].z(), triX, triY);
771 float t = triangleInterpolate(triT[triNdx].x(), triT[triNdx].y(), triT[triNdx].z(), triX, triY);
772 float lod = triLod[triNdx];
809 int triNdx = xf + yf >= 1.0f ? 1 : 0; // Top left fill rule.
810 float triX = triNdx ? 1.0f-xf : xf;
811 float triY = triNdx ? 1.0f-yf : yf;
813 float s = triangleInterpolate(triS[triNdx].x(), triS[triNdx].y(), triS[triNdx].z(), triX, triY);
814 float t = triangleInterpolate(triT[triNdx].x(), triT[triNdx].y(), triT[triNdx].z(), triX, triY);
815 float r = triangleInterpolate(triR[triNdx].x(), triR[triNdx].y(), triR[triNdx].z(), triX, triY);
816 float lod = triLod[triNdx];
850 int triNdx = nx + ny >= 1.0f ? 1 : 0;
851 float triWx = triNdx ? dstW - wx : wx;
852 float triWy = triNdx ? dstH - wy : wy;
853 float triNx = triNdx ? 1.0f - nx : nx;
854 float triNy = triNdx ? 1.0f - ny : ny;
856 float s = projectedTriInterpolate(triS[triNdx], triP[triNdx], triNx, triNy);
857 float t = projectedTriInterpolate(triT[triNdx], triP[triNdx], triNx, triNy);
858 float r = projectedTriInterpolate(triR[triNdx], triP[triNdx], triNx, triNy);
859 float lod = computeProjectedTriLod(params.lodMode, triU[triNdx], triV[triNdx], triW[triNdx], triP[triNdx], triWx, triWy, (float)dst.getWidth(), (float)dst.getHeight())
903 const int triNdx = nx + ny >= 1.0f ? 1 : 0;
904 const float triNx = triNdx ? 1.0f - nx : nx;
905 const float triNy = triNdx ? 1.0f - ny : ny;
907 const tcu::Vec3 coord (triangleInterpolate(triS[triNdx], triNx, triNy),
908 triangleInterpolate(triT[triNdx], triNx, triNy),
909 triangleInterpolate(triR[triNdx], triNx, triNy));
911 const float coordQ = triangleInterpolate(triQ[triNdx], triNx, triNy);
913 const tcu::Vec3 coordDx (triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
914 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy),
915 triDerivateX(triR[triNdx], triW[triNdx], wx, dstW, triNy));
916 const tcu::Vec3 coordDy (triDerivateY(triS[triNdx], triW[triNdx], wy, dstH, triNx),
917 triDerivateY(triT[triNdx], triW[triNdx], wy, dstH, triNx),
918 triDerivateY(triR[triNdx], triW[triNdx], wy, dstH, triNx));
950 const int triNdx = xf + yf >= 1.0f ? 1 : 0; // Top left fill rule.
951 const float triX = triNdx ? 1.0f-xf : xf;
952 const float triY = triNdx ? 1.0f-yf : yf;
954 const float s = triangleInterpolate(triS[triNdx].x(), triS[triNdx].y(), triS[triNdx].z(), triX, triY);
1734 const int triNdx = nx + ny >= 1.0f ? 1 : 0;
1735 const float triWx = triNdx ? dstW - wx : wx;
1736 const float triWy = triNdx ? dstH - wy : wy;
1737 const float triNx = triNdx ? 1.0f - nx : nx;
1738 const float triNy = triNdx ? 1.0f - ny : ny;
1740 const float coord = projectedTriInterpolate(triS[triNdx], triW[triNdx], triNx, triNy);
1741 const float coordDx = triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy) * float(srcSize);
1742 const float coordDy = triDerivateY(triS[triNdx], triW[triNdx], wy, dstH, triNx) * float(srcSize);
1754 const float coordDxo = triDerivateX(triS[triNdx], triW[triNdx], wxo, dstW, nyo) * float(srcSize);
1755 const float coordDyo = triDerivateY(triS[triNdx], triW[triNdx], wyo, dstH, nxo) * float(srcSize);
1838 const int triNdx = nx + ny >= 1.0f ? 1 : 0;
1839 const float triWx = triNdx ? dstW - wx : wx;
1840 const float triWy = triNdx ? dstH - wy : wy;
1841 const float triNx = triNdx ? 1.0f - nx : nx;
1842 const float triNy = triNdx ? 1.0f - ny : ny;
1844 const tcu::Vec2 coord (projectedTriInterpolate(triS[triNdx], triW[triNdx], triNx, triNy),
1845 projectedTriInterpolate(triT[triNdx], triW[triNdx], triNx, triNy));
1846 const tcu::Vec2 coordDx = tcu::Vec2(triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
1847 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy)) * srcSize.asFloat();
1848 const tcu::Vec2 coordDy = tcu::Vec2(triDerivateY(triS[triNdx], triW[triNdx], wy, dstH, triNx),
1849 triDerivateY(triT[triNdx], triW[triNdx], wy, dstH, triNx)) * srcSize.asFloat();
1861 const tcu::Vec2 coordO (projectedTriInterpolate(triS[triNdx], triW[triNdx], nxo, nyo),
1862 projectedTriInterpolate(triT[triNdx], triW[triNdx], nxo, nyo));
1863 const tcu::Vec2 coordDxo = tcu::Vec2(triDerivateX(triS[triNdx], triW[triNdx], wxo, dstW, nyo),
1864 triDerivateX(triT[triNdx], triW[triNdx], wxo, dstW, nyo)) * srcSize.asFloat();
1865 const tcu::Vec2 coordDyo = tcu::Vec2(triDerivateY(triS[triNdx], triW[triNdx], wyo, dstH, nxo),
1866 triDerivateY(triT[triNdx], triW[triNdx], wyo, dstH, nxo)) * srcSize.asFloat();
2040 for (int triNdx = (tri0?0:1); triNdx <= (tri1?1:0); triNdx++)
2042 const float triWx = triNdx ? dstW - wx : wx;
2043 const float triWy = triNdx ? dstH - wy : wy;
2044 const float triNx = triNdx ? 1.0f - nx : nx;
2045 const float triNy = triNdx ? 1.0f - ny : ny;
2047 const tcu::Vec3 coord (projectedTriInterpolate(triS[triNdx], triW[triNdx], triNx, triNy),
2048 projectedTriInterpolate(triT[triNdx], triW[triNdx], triNx, triNy),
2049 projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy));
2050 const tcu::Vec3 coordDx (triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
2051 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy),
2052 triDerivateX(triR[triNdx], triW[triNdx], wx, dstW, triNy));
2053 const tcu::Vec3 coordDy (triDerivateY(triS[triNdx], triW[triNdx], wy, dstH, triNx),
2054 triDerivateY(triT[triNdxtriNdx], wy, dstH, triNx),
2055 triDerivateY(triR[triNdx], triW[triNdx], wy, dstH, triNx));
2067 const tcu::Vec3 coordO (projectedTriInterpolate(triS[triNdx], triW[triNdx], nxo, nyo),
2068 projectedTriInterpolate(triT[triNdx], triW[triNdx], nxo, nyo),
2069 projectedTriInterpolate(triR[triNdx], triW[triNdx], nxo, nyo));
2070 const tcu::Vec3 coordDxo (triDerivateX(triS[triNdx], triW[triNdx], wxo, dstW, nyo),
2071 triDerivateX(triT[triNdx], triW[triNdx], wxo, dstW, nyo),
2072 triDerivateX(triR[triNdx], triW[triNdx], wxo, dstW, nyo));
2073 const tcu::Vec3 coordDyo (triDerivateY(triS[triNdx], triW[triNdx], wyo, dstH, nxo),
2074 triDerivateY(triT[triNdx], triW[triNdx], wyo, dstH, nxo),
2075 triDerivateY(triR[triNdx], triW[triNdx], wyo, dstH, nxo));
2213 for (int triNdx = (tri0?0:1); triNdx <= (tri1?1:0); triNdx++)
2215 const float triWx = triNdx ? dstW - wx : wx;
2216 const float triWy = triNdx ? dstH - wy : wy;
2217 const float triNx = triNdx ? 1.0f - nx : nx;
2218 const float triNy = triNdx ? 1.0f - ny : ny;
2220 const tcu::Vec3 coord (projectedTriInterpolate(triS[triNdx], triW[triNdx], triNx, triNy),
2221 projectedTriInterpolate(triT[triNdx], triW[triNdx], triNx, triNy),
2222 projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy));
2223 const tcu::Vec3 coordDx = tcu::Vec3(triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
2224 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy),
2225 triDerivateX(triR[triNdx], triW[triNdx], wx, dstW, triNy)) * srcSize.asFloat();
2226 const tcu::Vec3 coordDy = tcu::Vec3(triDerivateY(triS[triNdx], triW[triNdx], wy, dstH, triNx),
2227 triDerivateY(triT[triNdx], triW[triNdx], wy, dstH, triNx),
2228 triDerivateY(triR[triNdx], triW[triNdx], wy, dstH, triNx)) * srcSize.asFloat();
2240 const tcu::Vec3 coordO (projectedTriInterpolate(triS[triNdx], triW[triNdx], nxo, nyo),
2241 projectedTriInterpolate(triT[triNdx], triW[triNdx], nxo, nyo),
2242 projectedTriInterpolate(triR[triNdx], triW[triNdx], nxo, nyo));
2243 const tcu::Vec3 coordDxo = tcu::Vec3(triDerivateX(triS[triNdx], triW[triNdx], wxo, dstW, nyo),
2244 triDerivateX(triT[triNdx], triW[triNdx], wxo, dstW, nyo),
2245 triDerivateX(triR[triNdx], triW[triNdx], wxo, dstW, nyo)) * srcSize.asFloat();
2246 const tcu::Vec3 coordDyo = tcu::Vec3(triDerivateY(triS[triNdx], triW[triNdx], wyo, dstH, nxo),
2247 triDerivateY(triT[triNdx], triW[triNdx], wyo, dstH, nxo),
2248 triDerivateY(triR[triNdx], triW[triNdx], wyo, dstH, nxo)) * srcSize.asFloat();
2372 const int triNdx = nx + ny >= 1.0f ? 1 : 0;
2373 const float triWx = triNdx ? dstW - wx : wx;
2374 const float triWy = triNdx ? dstH - wy : wy;
2375 const float triNx = triNdx ? 1.0f - nx : nx;
2376 const float triNy = triNdx ? 1.0f - ny : ny;
2378 const tcu::Vec2 coord (projectedTriInterpolate(triS[triNdx], triW[triNdx], triNx, triNy),
2379 projectedTriInterpolate(triT[triNdx], triW[triNdx], triNx, triNy));
2380 const float coordDx = triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy) * srcSize;
2381 const float coordDy = triDerivateY(triS[triNdx], triW[triNdx], wy, dstH, triNx) * srcSize;
2393 const tcu::Vec2 coordO (projectedTriInterpolate(triS[triNdx], triW[triNdx], nxo, nyo),
2394 projectedTriInterpolate(triT[triNdx], triW[triNdx], nxo, nyo));
2395 const float coordDxo = triDerivateX(triS[triNdx], triW[triNdx], wxo, dstW, nyo) * srcSize;
2396 const float coordDyo = triDerivateY(triS[triNdx], triW[triNdx], wyo, dstH, nxo) * srcSize;
2480 const int triNdx = nx + ny >= 1.0f ? 1 : 0;
2481 const float triWx = triNdx ? dstW - wx : wx;
2482 const float triWy = triNdx ? dstH - wy : wy;
2483 const float triNx = triNdx ? 1.0f - nx : nx;
2484 const float triNy = triNdx ? 1.0f - ny : ny;
2486 const tcu::Vec3 coord (projectedTriInterpolate(triS[triNdx], triW[triNdx], triNx, triNy),
2487 projectedTriInterpolate(triT[triNdx], triW[triNdx], triNx, triNy),
2488 projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy));
2489 const tcu::Vec2 coordDx = tcu::Vec2(triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
2490 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy)) * srcSize;
2491 const tcu::Vec2 coordDy = tcu::Vec2(triDerivateY(triS[triNdx], triW[triNdx], wy, dstH, triNx),
2492 triDerivateY(triT[triNdx], triW[triNdx], wy, dstH, triNx)) * srcSize;
2504 const tcu::Vec3 coordO (projectedTriInterpolate(triS[triNdx], triW[triNdx], nxo, nyo),
2505 projectedTriInterpolate(triT[triNdx], triW[triNdx], nxo, nyo),
2506 projectedTriInterpolate(triR[triNdx], triW[triNdx], nxo, nyo));
2507 const tcu::Vec2 coordDxo = tcu::Vec2(triDerivateX(triS[triNdx], triW[triNdx], wxo, dstW, nyo),
2508 triDerivateX(triT[triNdx], triW[triNdx], wxo, dstW, nyo)) * srcSize;
2509 const tcu::Vec2 coordDyo = tcu::Vec2(triDerivateY(triS[triNdx], triW[triNdx], wyo, dstH, nxo),
2510 triDerivateY(triT[triNdx], triW[triNdx], wyo, dstH, nxo)) * srcSize;
2688 for (int triNdx = (tri0?0:1); triNdx <= (tri1?1:0); triNdx++)
2690 const float triWx = triNdx ? dstW - wx : wx;
2691 const float triWy = triNdx ? dstH - wy : wy;
2692 const float triNx = triNdx ? 1.0f - nx : nx;
2693 const float triNy = triNdx ? 1.0f - ny : ny;
2695 const tcu::Vec4 coord (projectedTriInterpolate(triS[triNdx], triW[triNdx], triNx, triNy),
2696 projectedTriInterpolate(triT[triNdx], triW[triNdx], triNx, triNy),
2697 projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy),
2698 projectedTriInterpolate(triQ[triNdx], triW[triNdx], triNx, triNy));
2699 const tcu::Vec3 coordDx (triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
2700 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy),
2701 triDerivateX(triR[triNdx], triW[triNdx], wx, dstW, triNy));
2702 const tcu::Vec3 coordDy (triDerivateY(triS[triNdx], triW[triNdx], wy, dstH, triNx),
2703 triDerivateY(triT[triNdx], triW[triNdx], wy, dstH, triNx),
2704 triDerivateY(triR[triNdx], triW[triNdx], wy, dstH, triNx));
2716 const tcu::Vec3 coordO (projectedTriInterpolate(triS[triNdx], triW[triNdx], nxo, nyo),
2717 projectedTriInterpolate(triT[triNdx], triW[triNdx], nxo, nyo),
2718 projectedTriInterpolate(triR[triNdx], triW[triNdx], nxo, nyo));
2719 const tcu::Vec3 coordDxo (triDerivateX(triS[triNdx], triW[triNdx], wxo, dstW, nyo),
2720 triDerivateX(triT[triNdx], triW[triNdx], wxo, dstW, nyo),
2721 triDerivateX(triR[triNdx], triW[triNdx], wxo, dstW, nyo));
2722 const tcu::Vec3 coordDyo (triDerivateY(triS[triNdx], triW[triNdx], wyo, dstH, nxo),
2723 triDerivateY(triT[triNdx], triW[triNdx], wyo, dstH, nxo),
2724 triDerivateY(triR[triNdx], triW[triNdx], wyo, dstH, nxo));
2852 const int triNdx = nx + ny >= 1.0f ? 1 : 0;
2853 const float triWx = triNdx ? dstW - wx : wx;
2854 const float triWy = triNdx ? dstH - wy : wy;
2855 const float triNx = triNdx ? 1.0f - nx : nx;
2856 const float triNy = triNdx ? 1.0f - ny : ny;
2858 const tcu::Vec2 coord (projectedTriInterpolate(triS[triNdx], triW[triNdx], triNx, triNy),
2859 projectedTriInterpolate(triT[triNdx], triW[triNdx], triNx, triNy));
2860 const tcu::Vec2 coordDx = tcu::Vec2(triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
2861 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy)) * srcSize.asFloat();
2862 const tcu::Vec2 coordDy = tcu::Vec2(triDerivateY(triS[triNdx], triW[triNdx], wy, dstH, triNx),
2863 triDerivateY(triT[triNdx], triW[triNdx], wy, dstH, triNx)) * srcSize.asFloat();
2875 const tcu::Vec2 coordO (projectedTriInterpolate(triS[triNdx], triW[triNdx], nxo, nyo),
2876 projectedTriInterpolate(triT[triNdx], triW[triNdx], nxo, nyo));
2877 const tcu::Vec2 coordDxo = tcu::Vec2(triDerivateX(triS[triNdx], triW[triNdx], wxo, dstW, nyo),
2878 triDerivateX(triT[triNdx], triW[triNdx], wxo, dstW, nyo)) * srcSize.asFloat();
2879 const tcu::Vec2 coordDyo = tcu::Vec2(triDerivateY(triS[triNdx], triW[triNdx], wyo, dstH, nxo),
2880 triDerivateY(triT[triNdx], triW[triNdx], wyo, dstH, nxo)) * srcSize.asFloat();
2964 const int triNdx = nx + ny >= 1.0f ? 1 : 0;
2965 const float triWx = triNdx ? dstW - wx : wx;
2966 const float triWy = triNdx ? dstH - wy : wy;
2967 const float triNx = triNdx ? 1.0f - nx : nx;
2968 const float triNy = triNdx ? 1.0f - ny : ny;
2970 const tcu::Vec3 coord (projectedTriInterpolate(triS[triNdx], triW[triNdx], triNx, triNy),
2971 projectedTriInterpolate(triT[triNdx], triW[triNdx], triNx, triNy),
2972 projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy));
2973 const tcu::Vec3 coordDx (triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
2974 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy),
2975 triDerivateX(triR[triNdx], triW[triNdx], wx, dstW, triNy));
2976 const tcu::Vec3 coordDy (triDerivateY(triS[triNdx], triW[triNdx], wy, dstH, triNx),
2977 triDerivateY(triT[triNdx], triW[triNdx], wy, dstH, triNx),
2978 triDerivateY(triR[triNdx], triW[triNdx], wy, dstH, triNx));
2990 const tcu::Vec3 coordO (projectedTriInterpolate(triS[triNdx], triW[triNdx], nxo, nyo),
2991 projectedTriInterpolate(triT[triNdx], triW[triNdx], nxo, nyo),
2992 projectedTriInterpolate(triR[triNdx], triW[triNdx], nxo, nyo));
2993 const tcu::Vec3 coordDxo (triDerivateX(triS[triNdx], triW[triNdx], wxo, dstW, nyo),
2994 triDerivateX(triT[triNdx], triW[triNdx], wxo, dstW, nyo),
2995 triDerivateX(triR[triNdx], triW[triNdx], wxo, dstW, nyo));
2996 const tcu::Vec3 coordDyo (triDerivateY(triS[triNdx], triW[triNdx], wyo, dstH, nxo),
2997 triDerivateY(triT[triNdx], triW[triNdx], wyo, dstH, nxo),
2998 triDerivateY(triR[triNdx], triW[triNdx], wyo, dstH, nxo));
3082 const int triNdx = nx + ny >= 1.0f ? 1 : 0;
3083 const float triWx = triNdx ? dstW - wx : wx;
3084 const float triWy = triNdx ? dstH - wy : wy;
3085 const float triNx = triNdx ? 1.0f - nx : nx;
3086 const float triNy = triNdx ? 1.0f - ny : ny;
3088 const tcu::Vec3 coord (projectedTriInterpolate(triS[triNdx], triW[triNdx], triNx, triNy),
3089 projectedTriInterpolate(triT[triNdx], triW[triNdx], triNx, triNy),
3090 projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy));
3091 const tcu::Vec2 coordDx = tcu::Vec2(triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
3092 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy)) * srcSize.asFloat();
3093 const tcu::Vec2 coordDy = tcu::Vec2(triDerivateY(triS[triNdx], triW[triNdx], wy, dstH, triNx),
3094 triDerivateY(triT[triNdx], triW[triNdx], wy, dstH, triNx)) * srcSize.asFloat();
3106 const tcu::Vec2 coordO (projectedTriInterpolate(triS[triNdx], triW[triNdx], nxo, nyo),
3107 projectedTriInterpolate(triT[triNdx], triW[triNdx], nxo, nyo));
3108 const tcu::Vec2 coordDxo = tcu::Vec2(triDerivateX(triS[triNdx], triW[triNdx], wxo, dstW, nyo),
3109 triDerivateX(triT[triNdx], triW[triNdx], wxo, dstW, nyo)) * srcSize.asFloat();
3110 const tcu::Vec2 coordDyo = tcu::Vec2(triDerivateY(triS[triNdx], triW[triNdx], wyo, dstH, nxo),
3111 triDerivateY(triT[triNdx], triW[triNdx], wyo, dstH, nxo)) * srcSize.asFloat();