• Home
  • Raw
  • Download

Lines Matching refs:gridWidth

397 static void renderFloatReference (const tcu::PixelBufferAccess& dst, int gridWidth, int gridHeight,…  in renderFloatReference()  argument
400 const float cellW = (float)dst.getWidth() / (float)(gridWidth-1); in renderFloatReference()
407 const int cellX = de::clamp(deFloorFloatToInt32((float)x / cellW), 0, gridWidth-2); in renderFloatReference()
411 …const Vec4 v00 = readVec4(vertices + ((cellY+0)*gridWidth + cellX+0)*numComponents, numComponent… in renderFloatReference()
412 …const Vec4 v01 = readVec4(vertices + ((cellY+1)*gridWidth + cellX+0)*numComponents, numComponent… in renderFloatReference()
413 …const Vec4 v10 = readVec4(vertices + ((cellY+0)*gridWidth + cellX+1)*numComponents, numComponent… in renderFloatReference()
414 …const Vec4 v11 = readVec4(vertices + ((cellY+1)*gridWidth + cellX+1)*numComponents, numComponent… in renderFloatReference()
428 static void renderIntReference (const tcu::PixelBufferAccess& dst, int gridWidth, int gridHeight, i… in renderIntReference() argument
430 float cellW = (float)dst.getWidth() / (float)(gridWidth-1); in renderIntReference()
437 int cellX = de::clamp(deFloorFloatToInt32((float)x / cellW), 0, gridWidth-2); in renderIntReference()
439 IVec4 c = readIVec4(vertices + (cellY*gridWidth + cellX+1)*numComponents, numComponents); in renderIntReference()
553 const int gridWidth = de::clamp(minBufSize.x()/minCellSize, 1, 255)+1; in iterate() local
555 const int numVertices = gridWidth*gridHeight; in iterate()
556 const int numQuads = (gridWidth-1)*(gridHeight-1); in iterate()
597 int quadY = quadNdx / (gridWidth-1); in iterate()
598 int quadX = quadNdx - quadY*(gridWidth-1); in iterate()
600 indices[quadNdx*6+0] = deUint16(quadX + quadY*gridWidth); in iterate()
601 indices[quadNdx*6+1] = deUint16(quadX + (quadY+1)*gridWidth); in iterate()
602 indices[quadNdx*6+2] = deUint16(quadX + quadY*gridWidth + 1); in iterate()
604 indices[quadNdx*6+4] = deUint16(quadX + (quadY+1)*gridWidth + 1); in iterate()
610 for (int x = 0; x < gridWidth; x++) in iterate()
612 float xf = (float)x / (float)(gridWidth-1); in iterate()
615 positions[(y*gridWidth + x)*4 + 0] = 2.0f*xf - 1.0f; in iterate()
616 positions[(y*gridWidth + x)*4 + 1] = 2.0f*yf - 1.0f; in iterate()
617 positions[(y*gridWidth + x)*4 + 2] = 0.0f; in iterate()
618 positions[(y*gridWidth + x)*4 + 3] = 1.0f; in iterate()
663 for (int x = 0; x < gridWidth; x++) in iterate()
665 float xf = (float)x / (float)(gridWidth-1); in iterate()
672 float* v = dst + (y*gridWidth + x)*numScalars; in iterate()
700 …const IVec4 rangeDiv = swizzleVec((IVec4(gridWidth, gridHeight, gridWidth, gridHeight)-1), curInVe… in iterate()
706 for (int x = 0; x < gridWidth; x++) in iterate()
708 int ix = gridWidth - x - 1; in iterate()
711 deInt32* v = dst + (y*gridWidth + x)*numScalars; in iterate()
736 …const IVec4 rangeDiv = swizzleVec((IVec4(gridWidth, gridHeight, gridWidth, gridHeight)-1), curInVe… in iterate()
744 for (int x = 0; x < gridWidth; x++) in iterate()
746 int ix = gridWidth - x - 1; in iterate()
749 deUint32* v = dst + (y*gridWidth + x)*numScalars; in iterate()
862 renderIntReference(viewportBuf, gridWidth, gridHeight, scalarSize, (const int*)inputData); in iterate()
864 renderFloatReference(viewportBuf, gridWidth, gridHeight, scalarSize, (const float*)inputData); in iterate()