Lines Matching defs:gridWidth
263 const int gridWidth = 4;
265 const int numVertices = (gridWidth+1)*(gridHeight+1);
266 const int numIndices = gridWidth*gridHeight * (caseDef.primitiveType == TESSPRIMITIVETYPE_TRIANGLES ? 3*2 : 4);
276 for (int j = 0; j < gridWidth+1; ++j)
278 gridPosComps.push_back(-1.0f + 2.0f * ((float)j + 0.5f) / (float)(gridWidth+1));
280 gridTessParams.push_back((float)(i*(gridWidth+1) + j) / (float)(numVertices-1));
291 for (int j = 0; j < gridWidth; j++)
295 (deUint16)((i+0)*(gridWidth+1) + j+0),
296 (deUint16)((i+0)*(gridWidth+1) + j+1),
297 (deUint16)((i+1)*(gridWidth+1) + j+0),
298 (deUint16)((i+1)*(gridWidth+1) + j+1)
312 for (int j = 0; j < gridWidth; ++j)
316 gridIndices.push_back((deUint16)((i+(i+m)%2)*(gridWidth+1) + j+(j+n)%2));