Lines Matching refs:currentPoints
2905 std::vector<GeneratedPoint> currentPoints;
2908 currentPoints.resize(m_attribData.size() / 2);
2909 for (int ndx = 0; ndx < (int)currentPoints.size(); ++ndx)
2911 currentPoints[ndx].center = m_attribData[ndx*2].swizzle(0, 1);
2912 currentPoints[ndx].even = (m_attribData[ndx*2 + 1].y() == 1.0f); // is green
2913 currentPoints[ndx].size = ((m_isWidePointCase) ? ((currentPoints[ndx].even) ? 5 : 3) : 1);
2921 tessellatedPoints.resize(currentPoints.size() * 4);
2922 for (int ndx = 0; ndx < (int)currentPoints.size(); ++ndx)
2924 const tcu::Vec2 position = tcu::Vec2(currentPoints[ndx].center.x(), 1.0f - currentPoints[ndx].center.y()); // mirror Y
2927 tessellatedPoints[4 * ndx + 0].size = currentPoints[ndx].size;
2928 tessellatedPoints[4 * ndx + 0].even = currentPoints[ndx].even;
2931 tessellatedPoints[4 * ndx + 1].size = currentPoints[ndx].size;
2932 tessellatedPoints[4 * ndx + 1].even = currentPoints[ndx].even;
2935 tessellatedPoints[4 * ndx + 2].size = currentPoints[ndx].size;
2936 tessellatedPoints[4 * ndx + 2].even = currentPoints[ndx].even;
2939 tessellatedPoints[4 * ndx + 3].size = currentPoints[ndx].size;
2940 tessellatedPoints[4 * ndx + 3].even = currentPoints[ndx].even;
2943 currentPoints.swap(tessellatedPoints);
2951 geometryShadedPoints.resize(currentPoints.size() * 3);
2952 for (int ndx = 0; ndx < (int)currentPoints.size(); ++ndx)
2954 const tcu::Vec2 position = tcu::Vec2(1.0f - currentPoints[ndx].center.x(), currentPoints[ndx].center.y()); // mirror X
2957 geometryShadedPoints[3 * ndx + 0].size = currentPoints[ndx].size;
2958 geometryShadedPoints[3 * ndx + 0].even = currentPoints[ndx].even;
2961 geometryShadedPoints[3 * ndx + 1].size = currentPoints[ndx].size;
2962 geometryShadedPoints[3 * ndx + 1].even = currentPoints[ndx].even;
2965 geometryShadedPoints[3 * ndx + 2].size = currentPoints[ndx].size;
2966 geometryShadedPoints[3 * ndx + 2].even = currentPoints[ndx].even;
2969 currentPoints.swap(geometryShadedPoints);
2973 std::sort(currentPoints.begin(), currentPoints.end(), PointSorter());
2976 for (int ndx = 0; ndx < (int)currentPoints.size(); ++ndx)
2977 currentPoints[ndx].center = currentPoints[ndx].center * config.patternSize + config.patternPos;
2979 currentPoints.swap(data);