Lines Matching refs:targetSize
263 RandomizedRenderGrid (const IVec2& targetSize, const IVec2& cellSize, int maxCellCount, deUint32 seed);
272 static IVec2 getRandomOffset (deUint32 seed, IVec2 targetSize, IVec2 cellSize, IVec2 grid, int cellCount);
282 RandomizedRenderGrid::RandomizedRenderGrid (const IVec2& targetSize, const IVec2& cellSize, int maxCellCount, deUint32 seed)
283 : m_targetSize (targetSize)
285 , m_grid (targetSize / cellSize)
288 , m_cellCount (deMin32(maxCellCount, ((targetSize.y() % cellSize.y()) == 0) && m_grid.y() > 1 ? m_grid.x() * (m_grid.y() - 1) : m_grid.x() * m_grid.y()))
289 , m_baseRandomOffset (getRandomOffset(seed, targetSize, cellSize, m_grid, m_cellCount))
293 IVec2 RandomizedRenderGrid::getRandomOffset (deUint32 seed, IVec2 targetSize, IVec2 cellSize, IVec2 grid, int cellCount)
297 IVec2 extraSpace = targetSize - (cellSize * grid);
304 DE_ASSERT(targetSize.x() > cellSize.x() && targetSize.y() > cellSize.y());
307 DE_ASSERT(extraSpace.x() + grid.x() * cellSize.x() == targetSize.x());
2336 IVec3 getTestedSize (deUint32 target, deUint32 format, const IVec3& targetSize)
2345 const int size = (1 + (targetSize.x() / multiplier)) * multiplier;
2351 return (1 + (targetSize / texelBlockPixelSize)) * texelBlockPixelSize;
2355 const int width = (1 + targetSize.x() / texelBlockPixelSize.x()) * texelBlockPixelSize.x();
2356 const int height = ((targetSize.y() / texelBlockPixelSize.y()) - 1) * texelBlockPixelSize.y();
2410 const IVec3 targetSize = isCompressedCase ? IVec3(128, 128, 16) : IVec3(64, 64, 8);
2411 const IVec3 srcSize = getTestedSize(srcTarget, srcFormat, targetSize);
2412 const IVec3 dstSize = getTestedSize(dstTarget, dstFormat, targetSize);