Lines Matching defs:grid
272 static IVec2 getRandomOffset (deUint32 seed, IVec2 targetSize, IVec2 cellSize, IVec2 grid, int cellCount);
287 // If the grid exactly fits height, take one row for randomization.
293 IVec2 RandomizedRenderGrid::getRandomOffset (deUint32 seed, IVec2 targetSize, IVec2 cellSize, IVec2 grid, int cellCount)
297 IVec2 extraSpace = targetSize - (cellSize * grid);
301 DE_ASSERT(deDivRoundUp32(cellCount, grid.x()) <= grid.y());
302 extraSpace.y() += (grid.y() - deDivRoundUp32(cellCount, grid.x())) * cellSize.y();
305 // If grid fits perfectly just one row of cells, just give up on randomizing.
306 DE_ASSERT(extraSpace.x() > 0 || extraSpace.y() > 0 || grid.y() == 1);
307 DE_ASSERT(extraSpace.x() + grid.x() * cellSize.x() == targetSize.x());
1153 // images if the grid runs out of cells before the texture runs out of images. Advancing one grid cell over the