Lines Matching defs:ndx

70 	float&			getComponentAccess	(int ndx);
71 const float& getComponentAccess (int ndx) const;
74 float& BoundingBox::getComponentAccess (int ndx)
76 DE_ASSERT(ndx >= 0 && ndx < 8);
77 if (ndx < 4)
78 return min[ndx];
80 return max[ndx-4];
83 const float& BoundingBox::getComponentAccess (int ndx) const
85 return const_cast<BoundingBox*>(this)->getComponentAccess(ndx);
319 for (int ndx = 0; ndx < numRandomCases; ++ndx)
377 for (int ndx = 0; ndx < 8; ++ndx)
378 if (state[ndx] != bbox.getComponentAccess(ndx))
411 for (int ndx = 0; ndx < 8; ++ndx)
412 if (state[ndx] != StateQueryUtil::roundGLfloatToNearestIntegerHalfDown<glw::GLint>(bbox.getComponentAccess(ndx)) &&
413 state[ndx] != StateQueryUtil::roundGLfloatToNearestIntegerHalfUp<glw::GLint>(bbox.getComponentAccess(ndx)))
423 for (int ndx = 0; ndx < 8; ++ndx)
425 const glw::GLint roundDown = StateQueryUtil::roundGLfloatToNearestIntegerHalfDown<glw::GLint>(bbox.getComponentAccess(ndx));
426 const glw::GLint roundUp = StateQueryUtil::roundGLfloatToNearestIntegerHalfUp<glw::GLint>(bbox.getComponentAccess(ndx));
428 if (ndx != 0)
460 for (int ndx = 0; ndx < 8; ++ndx)
461 if (state[ndx] != StateQueryUtil::roundGLfloatToNearestIntegerHalfDown<glw::GLint64>(bbox.getComponentAccess(ndx)) &&
462 state[ndx] != StateQueryUtil::roundGLfloatToNearestIntegerHalfUp<glw::GLint64>(bbox.getComponentAccess(ndx)))
472 for (int ndx = 0; ndx < 8; ++ndx)
474 const glw::GLint64 roundDown = StateQueryUtil::roundGLfloatToNearestIntegerHalfDown<glw::GLint64>(bbox.getComponentAccess(ndx));
475 const glw::GLint64 roundUp = StateQueryUtil::roundGLfloatToNearestIntegerHalfUp<glw::GLint64>(bbox.getComponentAccess(ndx));
477 if (ndx != 0)
511 for (int ndx = 0; ndx < 8; ++ndx)
512 if (state[ndx] != ((bbox.getComponentAccess(ndx) != 0.0f) ? (GL_TRUE) : (GL_FALSE)))
522 for (int ndx = 0; ndx < 8; ++ndx)
524 if (ndx != 0)
527 builder << ((bbox.getComponentAccess(ndx) != 0.0f) ? ("GL_TRUE") : ("GL_FALSE"));
1332 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
1333 cellOrder[ndx] = ndx;
1337 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
1339 const int cellNdx = cellOrder[ndx];
1344 data[(ndx * 6 + 0) * VA_NUM_ATTRIB_VECS + VA_POS_VEC_NDX] = tcu::Vec4(float(cellX+0) / float(m_gridSize), float(cellY+0) / float(m_gridSize), 0.0f, 1.0f);
1345 data[(ndx * 6 + 0) * VA_NUM_ATTRIB_VECS + VA_COL_VEC_NDX] = cellColor;
1346 data[(ndx * 6 + 1) * VA_NUM_ATTRIB_VECS + VA_POS_VEC_NDX] = tcu::Vec4(float(cellX+1) / float(m_gridSize), float(cellY+1) / float(m_gridSize), 0.0f, 1.0f);
1347 data[(ndx * 6 + 1) * VA_NUM_ATTRIB_VECS + VA_COL_VEC_NDX] = cellColor;
1348 data[(ndx * 6 + 2) * VA_NUM_ATTRIB_VECS + VA_POS_VEC_NDX] = tcu::Vec4(float(cellX+0) / float(m_gridSize), float(cellY+1) / float(m_gridSize), 0.0f, 1.0f);
1349 data[(ndx * 6 + 2) * VA_NUM_ATTRIB_VECS + VA_COL_VEC_NDX] = cellColor;
1350 data[(ndx * 6 + 3) * VA_NUM_ATTRIB_VECS + VA_POS_VEC_NDX] = tcu::Vec4(float(cellX+0) / float(m_gridSize), float(cellY+0) / float(m_gridSize), 0.0f, 1.0f);
1351 data[(ndx * 6 + 3) * VA_NUM_ATTRIB_VECS + VA_COL_VEC_NDX] = cellColor;
1352 data[(ndx * 6 + 4) * VA_NUM_ATTRIB_VECS + VA_POS_VEC_NDX] = tcu::Vec4(float(cellX+1) / float(m_gridSize), float(cellY+0) / float(m_gridSize), 0.0f, 1.0f);
1353 data[(ndx * 6 + 4) * VA_NUM_ATTRIB_VECS + VA_COL_VEC_NDX] = cellColor;
1354 data[(ndx * 6 + 5) * VA_NUM_ATTRIB_VECS + VA_POS_VEC_NDX] = tcu::Vec4(float(cellX+1) / float(m_gridSize), float(cellY+1) / float(m_gridSize), 0.0f, 1.0f);
1355 data[(ndx * 6 + 5) * VA_NUM_ATTRIB_VECS + VA_COL_VEC_NDX] = cellColor;
1842 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
1843 cellOrder[ndx] = ndx;
1847 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
1849 const int segmentID = cellOrder[ndx];
1856 data[(ndx * 2 + 0) * VA_NUM_ATTRIB_VECS + VA_POS_VEC_NDX] = tcu::Vec4(float(minorCoord) / float(m_patternSide), float(majorCoord) / float(m_patternSide), 0.0f, 1.0f);
1857 data[(ndx * 2 + 0) * VA_NUM_ATTRIB_VECS + VA_COL_VEC_NDX] = green;
1858 data[(ndx * 2 + 1) * VA_NUM_ATTRIB_VECS + VA_POS_VEC_NDX] = tcu::Vec4(float(minorCoord) / float(m_patternSide), float(majorCoord + 1) / float(m_patternSide), 0.0f, 1.0f);
1859 data[(ndx * 2 + 1) * VA_NUM_ATTRIB_VECS + VA_COL_VEC_NDX] = green;
1863 data[(ndx * 2 + 0) * VA_NUM_ATTRIB_VECS + VA_POS_VEC_NDX] = tcu::Vec4(float(majorCoord) / float(m_patternSide), float(minorCoord) / float(m_patternSide), 0.0f, 1.0f);
1864 data[(ndx * 2 + 0) * VA_NUM_ATTRIB_VECS + VA_COL_VEC_NDX] = blue;
1865 data[(ndx * 2 + 1) * VA_NUM_ATTRIB_VECS + VA_POS_VEC_NDX] = tcu::Vec4(float(majorCoord + 1) / float(m_patternSide), float(minorCoord) / float(m_patternSide), 0.0f, 1.0f);
1866 data[(ndx * 2 + 1) * VA_NUM_ATTRIB_VECS + VA_COL_VEC_NDX] = blue;
2801 " for (int ndx = 0; ndx < 3; ++ndx)\n"
2803 " gl_Position = p0 + offsets[ndx];\n";
2850 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
2851 cellOrder[ndx] = ndx;
2855 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
2857 const int pointID = cellOrder[ndx];
2864 m_attribData[ndx * VA_NUM_ATTRIB_VECS + VA_POS_VEC_NDX] = tcu::Vec4(float(minorCoord) / float(m_numStripes), float(majorCoord) / float(m_numStripes), 0.0f, 1.0f);
2865 m_attribData[ndx * VA_NUM_ATTRIB_VECS + VA_COL_VEC_NDX] = green;
2869 m_attribData[ndx * VA_NUM_ATTRIB_VECS + VA_POS_VEC_NDX] = tcu::Vec4(((float)majorCoord + 0.5f) / float(m_numStripes), ((float)minorCoord + 0.5f) / float(m_numStripes), 0.0f, 1.0f);
2870 m_attribData[ndx * VA_NUM_ATTRIB_VECS + VA_COL_VEC_NDX] = blue;
2996 for (int ndx = 0; ndx < (int)currentPoints.size(); ++ndx)
2998 currentPoints[ndx].center = m_attribData[ndx*2].swizzle(0, 1);
2999 currentPoints[ndx].even = (m_attribData[ndx*2 + 1].y() == 1.0f); // is green
3000 currentPoints[ndx].size = ((m_isWidePointCase) ? ((currentPoints[ndx].even) ? 5 : 3) : 1);
3009 for (int ndx = 0; ndx < (int)currentPoints.size(); ++ndx)
3011 const tcu::Vec2 position = tcu::Vec2(currentPoints[ndx].center.x(), 1.0f - currentPoints[ndx].center.y()); // mirror Y
3013 tessellatedPoints[4 * ndx + 0].center = position + tcu::Vec2(-0.07f, -0.07f);
3014 tessellatedPoints[4 * ndx + 0].size = currentPoints[ndx].size;
3015 tessellatedPoints[4 * ndx + 0].even = currentPoints[ndx].even;
3017 tessellatedPoints[4 * ndx + 1].center = position + tcu::Vec2( 0.07f, -0.07f);
3018 tessellatedPoints[4 * ndx + 1].size = currentPoints[ndx].size;
3019 tessellatedPoints[4 * ndx + 1].even = currentPoints[ndx].even;
3021 tessellatedPoints[4 * ndx + 2].center = position + tcu::Vec2( 0.07f, 0.07f);
3022 tessellatedPoints[4 * ndx + 2].size = currentPoints[ndx].size;
3023 tessellatedPoints[4 * ndx + 2].even = currentPoints[ndx].even;
3025 tessellatedPoints[4 * ndx + 3].center = position + tcu::Vec2(-0.07f, 0.07f);
3026 tessellatedPoints[4 * ndx + 3].size = currentPoints[ndx].size;
3027 tessellatedPoints[4 * ndx + 3].even = currentPoints[ndx].even;
3039 for (int ndx = 0; ndx < (int)currentPoints.size(); ++ndx)
3041 const tcu::Vec2 position = tcu::Vec2(1.0f - currentPoints[ndx].center.x(), currentPoints[ndx].center.y()); // mirror X
3043 geometryShadedPoints[3 * ndx + 0].center = position + tcu::Vec2( 0.05f, 0.03f);
3044 geometryShadedPoints[3 * ndx + 0].size = currentPoints[ndx].size;
3045 geometryShadedPoints[3 * ndx + 0].even = currentPoints[ndx].even;
3047 geometryShadedPoints[3 * ndx + 1].center = position + tcu::Vec2(-0.01f, -0.02f);
3048 geometryShadedPoints[3 * ndx + 1].size = currentPoints[ndx].size;
3049 geometryShadedPoints[3 * ndx + 1].even = currentPoints[ndx].even;
3051 geometryShadedPoints[3 * ndx + 2].center = position + tcu::Vec2(-0.05f, 0.02f);
3052 geometryShadedPoints[3 * ndx + 2].size = currentPoints[ndx].size;
3053 geometryShadedPoints[3 * ndx + 2].even = currentPoints[ndx].even;
3063 for (int ndx = 0; ndx < (int)currentPoints.size(); ++ndx)
3064 currentPoints[ndx].center = currentPoints[ndx].center * config.patternSize + config.patternPos;
3309 for (int ndx = 0; ndx < (int)widthsUpwards.size(); ++ndx)
3310 widths.push_back(widthsUpwards[(int)widthsUpwards.size() - ndx - 1]);
3311 for (int ndx = 0; ndx < (int)widthsDownwards.size(); ++ndx)
3312 widths.push_back(widthsDownwards[ndx]);
3561 for (int ndx = 0; ndx < numIterations; ++ndx)
4183 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
4184 cellOrder[ndx] = ndx;
4188 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
4190 const int cellNdx = cellOrder[ndx];
4195 data[ndx * 6 * 2 + 0] = tcu::Vec4(float(cellX+0) / float(m_gridSize) * 2.0f - 1.0f, float(cellY+0) / float(m_gridSize) * 2.0f - 1.0f, 0.0f, 0.0f); data[ndx * 6 * 2 + 1] = cellColor;
4196 data[ndx * 6 * 2 + 2] = tcu::Vec4(float(cellX+1) / float(m_gridSize) * 2.0f - 1.0f, float(cellY+1) / float(m_gridSize) * 2.0f - 1.0f, 0.0f, 0.0f); data[ndx * 6 * 2 + 3] = cellColor;
4197 data[ndx * 6 * 2 + 4] = tcu::Vec4(float(cellX+0) / float(m_gridSize) * 2.0f - 1.0f, float(cellY+1) / float(m_gridSize) * 2.0f - 1.0f, 0.0f, 0.0f); data[ndx * 6 * 2 + 5] = cellColor;
4198 data[ndx * 6 * 2 + 6] = tcu::Vec4(float(cellX+0) / float(m_gridSize) * 2.0f - 1.0f, float(cellY+0) / float(m_gridSize) * 2.0f - 1.0f, 0.0f, 0.0f); data[ndx * 6 * 2 + 7] = cellColor;
4199 data[ndx * 6 * 2 + 8] = tcu::Vec4(float(cellX+1) / float(m_gridSize) * 2.0f - 1.0f, float(cellY+0) / float(m_gridSize) * 2.0f - 1.0f, 0.0f, 0.0f); data[ndx * 6 * 2 + 9] = cellColor;
4200 data[ndx * 6 * 2 + 10] = tcu::Vec4(float(cellX+1) / float(m_gridSize) * 2.0f - 1.0f, float(cellY+1) / float(m_gridSize) * 2.0f - 1.0f, 0.0f, 0.0f); data[ndx * 6 * 2 + 11] = cellColor;
4204 data[ndx * 6 * 2 + 2*vtxNdx].z() = rnd.getFloat(0.0f, 1.0);
4208 data[ndx * 6 * 2 + 2*vtxNdx].w() = rnd.getFloat(0.0f, 1.0);
4919 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
4920 cellOrder[ndx] = ndx;
4924 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
4926 const int cellNdx = cellOrder[ndx];
4933 data[ndx * 3 + 0] = tcu::Vec4(float(cellX+0) / float(gridSize), (float(cellY+0) / float(gridSize)) * 2.0f - 1.0f, 0.0f, 1.0f);
4934 data[ndx * 3 + 1] = tcu::Vec4(float(cellX+1) / float(gridSize), (float(cellY+1) / float(gridSize)) * 2.0f - 1.0f, 0.0f, 1.0f);
4935 data[ndx * 3 + 2] = tcu::Vec4(float(cellX+0) / float(gridSize), (float(cellY+1) / float(gridSize)) * 2.0f - 1.0f, 0.0f, 1.0f);
4939 data[ndx * 3 + 0] = tcu::Vec4(float(cellX+0) / float(gridSize), (float(cellY+0) / float(gridSize)) * 2.0f - 1.0f, 0.0f, 1.0f);
4940 data[ndx * 3 + 1] = tcu::Vec4(float(cellX+1) / float(gridSize), (float(cellY+0) / float(gridSize)) * 2.0f - 1.0f, 0.0f, 1.0f);
4941 data[ndx * 3 + 2] = tcu::Vec4(float(cellX+1) / float(gridSize), (float(cellY+1) / float(gridSize)) * 2.0f - 1.0f, 0.0f, 1.0f);