Lines Matching refs:IVec3
65 using tcu::IVec3;
242 ImageInfo (deUint32 format, deUint32 target, const IVec3& size);
246 const IVec3& getSize (void) const { return m_size; }
251 IVec3 m_size;
254 ImageInfo::ImageInfo (deUint32 format, deUint32 target, const IVec3& size)
281 const IVec3 size = info.getSize();
340 IVec3 getTexelBlockPixelSize (deUint32 format)
345 return IVec3(1, 1, 1);
348 IVec3 getLevelSize (deUint32 target, const IVec3& baseSize, int level)
350 IVec3 size;
482 IVec3 divRoundUp (const IVec3& a, const IVec3& b)
484 IVec3 res;
518 const IVec3& size,
578 const IVec3 texelBlockPixelSize = getTexelBlockPixelSize(info.getFormat());
594 const IVec3 levelPixelSize = getLevelSize(info.getTarget(), info.getSize(), levelNdx);
595 const IVec3 levelTexelBlockSize = divRoundUp(levelPixelSize, texelBlockPixelSize);
630 const IVec3 size = info.getSize();
722 IVec3 getTexelBlockStride (const ImageInfo& info, int level)
724 const IVec3 size = getLevelSize(info.getTarget(), info.getSize(), level);
726 const IVec3 texelBlockPixelSize = getTexelBlockPixelSize(info.getFormat());
727 const IVec3 textureTexelBlockSize = divRoundUp(size, texelBlockPixelSize);
729 return IVec3(texelBlockSize, textureTexelBlockSize.x() * texelBlockSize, textureTexelBlockSize.x() * textureTexelBlockSize.y() * texelBlockSize);
732 int sumComponents (const IVec3& v)
745 const IVec3& dstPos,
750 const IVec3& srcPos,
752 const IVec3& copySize)
757 const IVec3 srcTexelBlockPixelSize = getTexelBlockPixelSize(srcImageInfo.getFormat());
759 const IVec3 srcTexelPos = srcPos / srcTexelBlockPixelSize;
760 const IVec3 srcTexelBlockStride = getTexelBlockStride(srcImageInfo, srcLevel);
762 const IVec3 dstTexelBlockPixelSize = getTexelBlockPixelSize(dstImageInfo.getFormat());
764 const IVec3 dstTexelPos = dstPos / dstTexelBlockPixelSize;
765 const IVec3 dstTexelBlockStride = getTexelBlockStride(dstImageInfo, dstLevel);
767 const IVec3 copyTexelBlockCount = copySize / srcTexelBlockPixelSize;
784 const IVec3 blockPos (0, y, z);
796 const IVec3 size = info.getSize();
804 const IVec3 levelSize = getLevelSize(info.getTarget(), size, level);
817 const IVec3 size = info.getSize();
819 const IVec3 texelBlockPixelSize = getTexelBlockPixelSize(info.getFormat());
827 const IVec3 levelPixelSize = getLevelSize(info.getTarget(), size, level);
828 const IVec3 levelTexelBlockSize = divRoundUp(levelPixelSize, texelBlockPixelSize);
844 const IVec3& dstPos,
850 const IVec3& srcPos,
852 const IVec3& copySize)
898 const IVec3 levelSize = getLevelSize(info.getTarget(), info.getSize(), level);
943 const IVec3& levelPixelSize,
960 const IVec3 size = info.getSize();
979 const IVec3 levelPixelSize = getLevelSize(info.getTarget(), size, level);
1053 const IVec3 levelSize = getLevelSize(info.getTarget(), info.getSize(), level);
1069 computeQuadTexCoord3D(texCoord, tcu::Vec3(0.0f, 0.0f, r), tcu::Vec3(1.0f, 1.0f, r), tcu::IVec3(0, 1, 2));
1162 const IVec3 levelSize = getLevelSize(info.getTarget(), info.getSize(), level);
1225 const IVec3 texelBlockPixelSize = getTexelBlockPixelSize(info.getFormat());
1252 const IVec3 levelPixelSize = getLevelSize(info.getTarget(), info.getSize(), level);
1253 const IVec3 levelTexelBlockSize = divRoundUp(levelPixelSize, texelBlockPixelSize);
1335 const IVec3 levelSize = getLevelSize(info.getTarget(), info.getSize(), level);
1460 const IVec3 size = info.getSize();
1793 Copy (const IVec3& srcPos_,
1796 const IVec3& dstPos_,
1799 const IVec3& size_)
1809 IVec3 srcPos;
1811 IVec3 dstPos;
1813 IVec3 size;
1819 const IVec3 blockPixelSize = getTexelBlockPixelSize(info.getFormat());
1823 const IVec3 levelSize = getLevelSize(info.getTarget(), info.getSize(), level);
1843 const IVec3 srcBlockPixelSize = getTexelBlockPixelSize(srcInfo.getFormat());
1844 const IVec3 dstBlockPixelSize = getTexelBlockPixelSize(dstInfo.getFormat());
1856 const IVec3 srcSize = getLevelSize(srcInfo.getTarget(), srcInfo.getSize(), srcLevel);
1857 const IVec3 dstSize = getLevelSize(dstInfo.getTarget(), dstInfo.getSize(), dstLevel);
1860 const IVec3 srcCompleteBlockSize = IVec3(srcSize.x() / srcBlockPixelSize.x(), srcSize.y() / srcBlockPixelSize.y(), (srcIsCube ? 6 : srcSize.z() / srcBlockPixelSize.z()));
1861 const IVec3 dstCompleteBlockSize = IVec3(dstSize.x() / dstBlockPixelSize.x(), dstSize.y() / dstBlockPixelSize.y(), (dstIsCube ? 6 : dstSize.z() / dstBlockPixelSize.z()));
1863 const IVec3 maxCopyBlockSize = tcu::min(srcCompleteBlockSize, dstCompleteBlockSize);
1872 const IVec3 copyBlockSize (copyBlockWidth, copyBlockHeight, copyBlockDepth);
1873 const IVec3 srcBlockPos (srcCompleteBlockSize - copyBlockSize);
1874 const IVec3 dstBlockPos (0, 0, 0);
1876 const IVec3 srcPos (srcBlockPos * srcBlockPixelSize);
1877 const IVec3 dstPos (dstBlockPos * dstBlockPixelSize);
1878 const IVec3 copySize (copyBlockSize * srcBlockPixelSize);
1885 const IVec3 copyBlockSize (copyBlockWidth, copyBlockHeight, copyBlockDepth);
1886 const IVec3 srcBlockPos (0, 0, 0);
1887 const IVec3 dstBlockPos (dstCompleteBlockSize - copyBlockSize);
1889 const IVec3 srcPos (srcBlockPos * srcBlockPixelSize);
1890 const IVec3 dstPos (dstBlockPos * dstBlockPixelSize);
1891 const IVec3 copySize (copyBlockSize * srcBlockPixelSize);
1898 const IVec3 copyBlockSize (copyBlockWidth, copyBlockHeight, copyBlockDepth);
1899 const IVec3 srcBlockPos (tcu::max((srcCompleteBlockSize / 4) * 4 - copyBlockSize, IVec3(0)));
1900 const IVec3 dstBlockPos (tcu::max((dstCompleteBlockSize / 4) * 4 - copyBlockSize, IVec3(0)));
1902 const IVec3 srcPos (srcBlockPos * srcBlockPixelSize);
1903 const IVec3 dstPos (dstBlockPos * dstBlockPixelSize);
1904 const IVec3 copySize (copyBlockSize * srcBlockPixelSize);
2013 IVec3 getTestedSize (deUint32 target, deUint32 format, const IVec3& targetSize)
2015 const IVec3 texelBlockPixelSize = getTexelBlockPixelSize(format);
2024 return IVec3(size, size, 1);
2035 return IVec3(width, height, 1);
2085 const IVec3 targetSize2D (128, 128, 1);
2086 const IVec3 targetSize3D (128, 128, 16);
2088 const IVec3 srcSize = getTestedSize(srcTarget, srcFormat, (srcIs3D ? targetSize3D : targetSize2D));
2089 const IVec3 dstSize = getTestedSize(dstTarget, dstFormat, (dstIs3D ? targetSize3D : targetSize2D));