Lines Matching refs:IVec3
96 IVec3 getBlockPixelSize (CompressedTexFormat format) in getBlockPixelSize()
100 return IVec3(4, 4, 1); in getBlockPixelSize()
106 case COMPRESSEDTEXFORMAT_ASTC_4x4_RGBA: return IVec3(4, 4, 1); in getBlockPixelSize()
107 case COMPRESSEDTEXFORMAT_ASTC_5x4_RGBA: return IVec3(5, 4, 1); in getBlockPixelSize()
108 case COMPRESSEDTEXFORMAT_ASTC_5x5_RGBA: return IVec3(5, 5, 1); in getBlockPixelSize()
109 case COMPRESSEDTEXFORMAT_ASTC_6x5_RGBA: return IVec3(6, 5, 1); in getBlockPixelSize()
110 case COMPRESSEDTEXFORMAT_ASTC_6x6_RGBA: return IVec3(6, 6, 1); in getBlockPixelSize()
111 case COMPRESSEDTEXFORMAT_ASTC_8x5_RGBA: return IVec3(8, 5, 1); in getBlockPixelSize()
112 case COMPRESSEDTEXFORMAT_ASTC_8x6_RGBA: return IVec3(8, 6, 1); in getBlockPixelSize()
113 case COMPRESSEDTEXFORMAT_ASTC_8x8_RGBA: return IVec3(8, 8, 1); in getBlockPixelSize()
114 case COMPRESSEDTEXFORMAT_ASTC_10x5_RGBA: return IVec3(10, 5, 1); in getBlockPixelSize()
115 case COMPRESSEDTEXFORMAT_ASTC_10x6_RGBA: return IVec3(10, 6, 1); in getBlockPixelSize()
116 case COMPRESSEDTEXFORMAT_ASTC_10x8_RGBA: return IVec3(10, 8, 1); in getBlockPixelSize()
117 case COMPRESSEDTEXFORMAT_ASTC_10x10_RGBA: return IVec3(10, 10, 1); in getBlockPixelSize()
118 case COMPRESSEDTEXFORMAT_ASTC_12x10_RGBA: return IVec3(12, 10, 1); in getBlockPixelSize()
119 case COMPRESSEDTEXFORMAT_ASTC_12x12_RGBA: return IVec3(12, 12, 1); in getBlockPixelSize()
120 case COMPRESSEDTEXFORMAT_ASTC_4x4_SRGB8_ALPHA8: return IVec3(4, 4, 1); in getBlockPixelSize()
121 case COMPRESSEDTEXFORMAT_ASTC_5x4_SRGB8_ALPHA8: return IVec3(5, 4, 1); in getBlockPixelSize()
122 case COMPRESSEDTEXFORMAT_ASTC_5x5_SRGB8_ALPHA8: return IVec3(5, 5, 1); in getBlockPixelSize()
123 case COMPRESSEDTEXFORMAT_ASTC_6x5_SRGB8_ALPHA8: return IVec3(6, 5, 1); in getBlockPixelSize()
124 case COMPRESSEDTEXFORMAT_ASTC_6x6_SRGB8_ALPHA8: return IVec3(6, 6, 1); in getBlockPixelSize()
125 case COMPRESSEDTEXFORMAT_ASTC_8x5_SRGB8_ALPHA8: return IVec3(8, 5, 1); in getBlockPixelSize()
126 case COMPRESSEDTEXFORMAT_ASTC_8x6_SRGB8_ALPHA8: return IVec3(8, 6, 1); in getBlockPixelSize()
127 case COMPRESSEDTEXFORMAT_ASTC_8x8_SRGB8_ALPHA8: return IVec3(8, 8, 1); in getBlockPixelSize()
128 case COMPRESSEDTEXFORMAT_ASTC_10x5_SRGB8_ALPHA8: return IVec3(10, 5, 1); in getBlockPixelSize()
129 case COMPRESSEDTEXFORMAT_ASTC_10x6_SRGB8_ALPHA8: return IVec3(10, 6, 1); in getBlockPixelSize()
130 case COMPRESSEDTEXFORMAT_ASTC_10x8_SRGB8_ALPHA8: return IVec3(10, 8, 1); in getBlockPixelSize()
131 case COMPRESSEDTEXFORMAT_ASTC_10x10_SRGB8_ALPHA8: return IVec3(10, 10, 1); in getBlockPixelSize()
132 case COMPRESSEDTEXFORMAT_ASTC_12x10_SRGB8_ALPHA8: return IVec3(12, 10, 1); in getBlockPixelSize()
133 case COMPRESSEDTEXFORMAT_ASTC_12x12_SRGB8_ALPHA8: return IVec3(12, 12, 1); in getBlockPixelSize()
137 return IVec3(); in getBlockPixelSize()
142 return IVec3(4, 4, 1); in getBlockPixelSize()
147 return IVec3(-1); in getBlockPixelSize()
345 CompressedTexFormat getAstcFormatByBlockSize (const IVec3& size, bool isSRGB) in getAstcFormatByBlockSize()
2491 int componentSum (const IVec3& vec) in componentSum()
2501 const IVec3 blockPixelSize (getBlockPixelSize(fmt)); in decompress()
2502 const IVec3 blockCount (deDivRoundUp32(dst.getWidth(), blockPixelSize.x()), in decompress()
2505 …const IVec3 blockPitches (blockSize, blockSize * blockCount.x(), blockSize * blockCount.x() * … in decompress()
2516 const IVec3 blockPos (blockX, blockY, blockZ); in decompress()
2518 …const IVec3 copySize (de::min(blockPixelSize.x(), dst.getWidth() - blockPos.x() * blockPixelSi… in decompress()
2521 const IVec3 dstPixelPos = blockPos * blockPixelSize; in decompress()
2559 const IVec3 blockPixelSize = getBlockPixelSize(m_format); in setStorage()