Lines Matching refs:wx
296 static inline float triDerivateX (const tcu::Vec3& s, const tcu::Vec3& w, float wx, float width, float ny)
298 float d = w[1]*w[2]*(width*(ny - 1.0f) + wx) - w[0]*(w[2]*width*ny + w[1]*wx);
309 static float computeProjectedTriLod (LodMode mode, const tcu::Vec3& u, const tcu::Vec3& projection, float wx, float wy, float width, float height)
312 float dudx = triDerivateX(u, projection, wx, width, wy/height);
313 float dudy = triDerivateY(u, projection, wy, height, wx/width);
319 static float computeProjectedTriLod (LodMode mode, const tcu::Vec3& u, const tcu::Vec3& v, const tcu::Vec3& projection, float wx, float wy, float width, float height)
322 float dudx = triDerivateX(u, projection, wx, width, wy/height);
323 float dvdx = triDerivateX(v, projection, wx, width, wy/height);
324 float dudy = triDerivateY(u, projection, wy, height, wx/width);
325 float dvdy = triDerivateY(v, projection, wy, height, wx/width);
331 static float computeProjectedTriLod (LodMode mode, const tcu::Vec3& u, const tcu::Vec3& v, const tcu::Vec3& w, const tcu::Vec3& projection, float wx, float wy, float width, float height)
334 float dudx = triDerivateX(u, projection, wx, width, wy/height);
335 float dvdx = triDerivateX(v, projection, wx, width, wy/height);
336 float dwdx = triDerivateX(w, projection, wx, width, wy/height);
337 float dudy = triDerivateY(u, projection, wy, height, wx/width);
338 float dvdy = triDerivateY(v, projection, wy, height, wx/width);
339 float dwdy = triDerivateY(w, projection, wy, height, wx/width);
494 float wx = (float)px + 0.5f;
496 float nx = wx / dstW;
500 float triWx = triNdx ? dstW - wx : wx;
538 float wx = (float)px + 0.5f;
540 float nx = wx / dstW;
544 float triWx = triNdx ? dstW - wx : wx;
676 const float wx = (float)px + 0.5f;
678 const float nx = wx / dstW;
688 const tcu::Vec3 coordDx (triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
689 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy),
690 triDerivateX(triR[triNdx], triW[triNdx], wx, dstW, triNy));
885 float wx = (float)px + 0.5f;
887 float nx = wx / dstW;
891 float triWx = triNdx ? dstW - wx : wx;
952 const float wx = (float)px + 0.5f;
954 const float nx = wx / dstW;
967 const tcu::Vec3 coordDx (triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
968 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy),
969 triDerivateX(triR[triNdx], triW[triNdx], wx, dstW, triNy));
1346 const float wx = (float)px + 0.5f;
1348 const float nx = wx / dstW;
1352 const float triWx = triNdx ? dstW - wx : wx;
1358 const float coordDx = triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy) * float(srcSize);
1472 const float wx = (float)px + 0.5f;
1474 const float nx = wx / dstW;
1477 const bool tri0 = (wx-posEps)/dstW + (wy-posEps)/dstH <= 1.0f;
1478 const bool tri1 = (wx+posEps)/dstW + (wy+posEps)/dstH >= 1.0f;
1487 const float triWx = triNdx ? dstW - wx : wx;
1494 const tcu::Vec2 coordDx = tcu::Vec2(triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
1495 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy)) * srcSize.asFloat();
1696 const float wx = (float)px + 0.5f;
1698 const float nx = wx / dstW;
1701 const bool tri0 = (wx-posEps)/dstW + (wy-posEps)/dstH <= 1.0f;
1702 const bool tri1 = (wx+posEps)/dstW + (wy+posEps)/dstH >= 1.0f;
1711 const float triWx = triNdx ? dstW - wx : wx;
1719 const tcu::Vec3 coordDx (triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
1720 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy),
1721 triDerivateX(triR[triNdx], triW[triNdx], wx, dstW, triNy));
1887 const float wx = (float)px + 0.5f;
1889 const float nx = wx / dstW;
1892 const bool tri0 = (wx-posEps)/dstW + (wy-posEps)/dstH <= 1.0f;
1893 const bool tri1 = (wx+posEps)/dstW + (wy+posEps)/dstH >= 1.0f;
1902 const float triWx = triNdx ? dstW - wx : wx;
1910 const tcu::Vec3 coordDx = tcu::Vec3(triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
1911 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy),
1912 triDerivateX(triR[triNdx], triW[triNdx], wx, dstW, triNy)) * srcSize.asFloat();
2054 const float wx = (float)px + 0.5f;
2056 const float nx = wx / dstW;
2060 const float triWx = triNdx ? dstW - wx : wx;
2067 const float coordDx = triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy) * srcSize;
2163 const float wx = (float)px + 0.5f;
2165 const float nx = wx / dstW;
2169 const float triWx = triNdx ? dstW - wx : wx;
2177 const tcu::Vec2 coordDx = tcu::Vec2(triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
2178 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy)) * srcSize;
2370 const float wx = (float)px + 0.5f;
2372 const float nx = wx / dstW;
2385 const float triWx = triNdx ? dstW - wx : wx;
2394 const tcu::Vec3 coordDx (triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
2395 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy),
2396 triDerivateX(triR[triNdx], triW[triNdx], wx, dstW, triNy));
2547 const float wx = (float)px + 0.5f;
2549 const float nx = wx / dstW;
2553 const float triWx = triNdx ? dstW - wx : wx;
2560 const tcu::Vec2 coordDx = tcu::Vec2(triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
2561 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy)) * srcSize.asFloat();
2663 const float wx = (float)px + 0.5f;
2665 const float nx = wx / dstW;
2669 const float triWx = triNdx ? dstW - wx : wx;
2677 const tcu::Vec3 coordDx (triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
2678 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy),
2679 triDerivateX(triR[triNdx], triW[triNdx], wx, dstW, triNy));
2785 const float wx = (float)px + 0.5f;
2787 const float nx = wx / dstW;
2791 const float triWx = triNdx ? dstW - wx : wx;
2799 const tcu::Vec2 coordDx = tcu::Vec2(triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
2800 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy)) * srcSize.asFloat();
2897 const float wx = (float)px + 0.5f;
2899 const float nx = wx / dstW;
2903 const float triWx = triNdx ? dstW - wx : wx;
2909 const float coordDx = triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy) * srcSize;
3004 const float wx = (float)px + 0.5f;
3006 const float nx = wx / dstW;
3010 const float triWx = triNdx ? dstW - wx : wx;
3017 const float coordDx = triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy) * srcSize;
3115 const float wx = (float)px + 0.5f;
3117 const float nx = wx / dstW;
3121 const float triWx = triNdx ? dstW - wx : wx;
3130 const tcu::Vec3 coordDx (triDerivateX(triS[triNdx], triW[triNdx], wx, dstW, triNy),
3131 triDerivateX(triT[triNdx], triW[triNdx], wx, dstW, triNy),
3132 triDerivateX(triR[triNdx], triW[triNdx], wx, dstW, triNy));