Lines Matching refs:gridSize
1166 const int gridSize = 16; in iterate() local
1167 std::vector<tcu::Vec4> gridVertices (gridSize * gridSize); in iterate()
1168 std::vector<tcu::Vec2> gridTexCoords (gridSize * gridSize); in iterate()
1169 std::vector<deUint16> indices ((gridSize - 1) * (gridSize - 1) * 6); in iterate()
1173 for (int x = 0; x < gridSize; ++x) in iterate()
1174 for (int y = 0; y < gridSize; ++y) in iterate()
1176 …const float posX = (float)x / ((float)gridSize - 1.0f) * 2.0f - 1.0f; // map from [0, gridSize - … in iterate()
1177 const float posY = (float)y / ((float)gridSize - 1.0f) * 2.0f - 1.0f; in iterate()
1178 const float texCoordX = deFloatPow(2.0f, (float)x - (float)gridSize / 2.0f); in iterate()
1179 const float texCoordY = deFloatPow(2.0f, (float)y - (float)gridSize / 2.0f); in iterate()
1181 gridVertices[x * gridSize + y] = tcu::Vec4(posX, posY, 0.0f, 1.0f); in iterate()
1182 gridTexCoords[x * gridSize + y] = tcu::Vec2(texCoordX, texCoordY); in iterate()
1186 for (int x = 0; x < gridSize - 1; ++x) in iterate()
1187 for (int y = 0; y < gridSize - 1; ++y) in iterate()
1189 const int baseNdx = (x * (gridSize - 1) + y) * 6; in iterate()
1191 indices[baseNdx + 0] = (deUint16)((x+0) * gridSize + (y+0)); in iterate()
1192 indices[baseNdx + 1] = (deUint16)((x+1) * gridSize + (y+1)); in iterate()
1193 indices[baseNdx + 2] = (deUint16)((x+1) * gridSize + (y+0)); in iterate()
1195 indices[baseNdx + 3] = (deUint16)((x+0) * gridSize + (y+0)); in iterate()
1196 indices[baseNdx + 4] = (deUint16)((x+1) * gridSize + (y+1)); in iterate()
1197 indices[baseNdx + 5] = (deUint16)((x+0) * gridSize + (y+1)); in iterate()