Lines Matching refs:size
107 static tcu::IVec4 getViewportBoundingBoxArea (const ProjectedBBox& bbox, const tcu::IVec2& viewportSize, float size = 0.0f)
117 pixelBox.x() = deFloorFloatToInt32(vertexBox.x() - size/2.0f);
118 pixelBox.y() = deFloorFloatToInt32(vertexBox.y() - size/2.0f);
119 pixelBox.z() = deCeilFloatToInt32(vertexBox.z() + size/2.0f);
120 pixelBox.w() = deCeilFloatToInt32(vertexBox.w() + size/2.0f);
335 for (int caseNdx = 0; caseNdx < (int)cases.size(); ++caseNdx)
795 gl.bufferData(GL_ARRAY_BUFFER, (int)(data.size() * sizeof(tcu::Vec4)), &data[0], GL_STATIC_DRAW);
821 std::string() + "Iteration " + de::toString((int)m_iteration+1) + "/" + de::toString((int)m_iterationConfigs.size()));
831 if (++m_iteration < (int)m_iterationConfigs.size())
860 // increase bbox size
871 // reduce bbox size
1066 << "Grid cells are in random order, varying grid size and location for each iteration.\n"
1332 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
1337 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
1568 << "Line segments are in random order, varying pattern size and location for each iteration.\n"
1818 // Avoid too narrow viewports, lines could merge together. Require viewport is at least 2.5x the size of the line bodies.
1842 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
1846 data.resize(cellOrder.size() * 4);
1847 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
2455 int size;
2521 // Enable program point size for desktop GL
2527 // point size range
2533 throw tcu::NotSupportedError("Test requires point size 5.0");
2541 << "Points are in random order, varying pattern size and location for each iteration.\n"
2850 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
2854 m_attribData.resize(cellOrder.size() * 2);
2855 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
2995 currentPoints.resize(m_attribData.size() / 2);
2996 for (int ndx = 0; ndx < (int)currentPoints.size(); ++ndx)
3000 currentPoints[ndx].size = ((m_isWidePointCase) ? ((currentPoints[ndx].even) ? 5 : 3) : 1);
3008 tessellatedPoints.resize(currentPoints.size() * 4);
3009 for (int ndx = 0; ndx < (int)currentPoints.size(); ++ndx)
3014 tessellatedPoints[4 * ndx + 0].size = currentPoints[ndx].size;
3018 tessellatedPoints[4 * ndx + 1].size = currentPoints[ndx].size;
3022 tessellatedPoints[4 * ndx + 2].size = currentPoints[ndx].size;
3026 tessellatedPoints[4 * ndx + 3].size = currentPoints[ndx].size;
3038 geometryShadedPoints.resize(currentPoints.size() * 3);
3039 for (int ndx = 0; ndx < (int)currentPoints.size(); ++ndx)
3044 geometryShadedPoints[3 * ndx + 0].size = currentPoints[ndx].size;
3048 geometryShadedPoints[3 * ndx + 1].size = currentPoints[ndx].size;
3052 geometryShadedPoints[3 * ndx + 2].size = currentPoints[ndx].size;
3063 for (int ndx = 0; ndx < (int)currentPoints.size(); ++ndx)
3074 for (int pointNdx = 0; pointNdx < (int)refPoints.size(); ++pointNdx)
3136 for (int pointNdx = 0; pointNdx < (int)refPoints.size(); ++pointNdx)
3148 else if (refPoint.center.x() >= bbox.min.x() + (float)refPoint.size / 2.0f &&
3149 refPoint.center.y() >= bbox.min.y() - (float)refPoint.size / 2.0f &&
3150 refPoint.center.x() <= bbox.max.x() + (float)refPoint.size / 2.0f &&
3151 refPoint.center.y() <= bbox.max.y() - (float)refPoint.size / 2.0f)
3164 const int halfPointSizeCeil = (refPoint.size + 1) / 2;
3165 const int halfPointSizeFloor = (refPoint.size + 1) / 2;
3166 const tcu::IVec4 viewportBBoxArea = getViewportBoundingBoxArea(bbox, tcu::IVec2(viewport.getWidth(), viewport.getHeight()), (float)refPoint.size);
3223 const int expectedPointSize = refPoint.size;
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)
3315 for (int y = 0; y < (int)widths.size() - expectedPointSize + 1; ++y)
3643 const tcu::ScopedLogSection section (m_testCtx.getLog(), "Iteration" + de::toString(m_iteration), "Iteration " + de::toString(m_iteration+1) + " / " + de::toString((int)m_iterations.size()));
3683 return (++m_iteration == (int)m_iterations.size()) ? (STOP) : (CONTINUE);
3918 gl.bufferData(GL_ARRAY_BUFFER, (int)(sizeof(tcu::Vec4) * data.size()), &data[0], GL_STATIC_DRAW);
4183 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
4188 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
4423 drawObject.firstNdx = (int)m_objectVertices.size();
4441 gl.bufferData(GL_ARRAY_BUFFER, (int)(m_objectVertices.size() * sizeof(tcu::Vec4)), &m_objectVertices[0], GL_STATIC_DRAW);
4519 const int drawObjNdx = (m_drawTriangles) ? (rnd.getInt(0, (int)m_drawObjects.size() - 1)) : (0);
4919 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
4924 for (int ndx = 0; ndx < (int)cellOrder.size(); ++ndx)
4953 gl.bufferData(GL_ARRAY_BUFFER, (int)(data.size() * sizeof(tcu::Vec4)), &data[0], GL_STATIC_DRAW);
4956 m_numVertices = (int)data.size();