Lines Matching refs:levelNdx
2464 …getCubeArrayFaceAccess (const ConstPixelBufferAccess* const levels, int levelNdx, int slice, CubeF… in getCubeArrayFaceAccess() argument
2466 const ConstPixelBufferAccess& level = levels[levelNdx]; in getCubeArrayFaceAccess()
2651 inline int getMipPyramidLevelSize (int baseLevelSize, int levelNdx) in getMipPyramidLevelSize() argument
2653 return de::max(baseLevelSize >> levelNdx, 1); in getMipPyramidLevelSize()
2670 for (int levelNdx = 0; levelNdx < other.getNumLevels(); levelNdx++) in TextureLevelPyramid() local
2672 if (!other.isLevelEmpty(levelNdx)) in TextureLevelPyramid()
2674 const tcu::ConstPixelBufferAccess& srcLevel = other.getLevel(levelNdx); in TextureLevelPyramid()
2676 m_data[levelNdx] = other.m_data[levelNdx]; in TextureLevelPyramid()
2677 …m_access[levelNdx] = PixelBufferAccess(srcLevel.getFormat(), srcLevel.getWidth(), srcLevel.getHeig… in TextureLevelPyramid()
2691 for (int levelNdx = 0; levelNdx < other.getNumLevels(); levelNdx++) in operator =() local
2693 if (!other.isLevelEmpty(levelNdx)) in operator =()
2695 const tcu::ConstPixelBufferAccess& srcLevel = other.getLevel(levelNdx); in operator =()
2697 m_data[levelNdx] = other.m_data[levelNdx]; in operator =()
2698 …m_access[levelNdx] = PixelBufferAccess(srcLevel.getFormat(), srcLevel.getWidth(), srcLevel.getHeig… in operator =()
2700 else if (!isLevelEmpty(levelNdx)) in operator =()
2701 clearLevel(levelNdx); in operator =()
2711 void TextureLevelPyramid::allocLevel (int levelNdx, int width, int height, int depth) in allocLevel() argument
2715 DE_ASSERT(isLevelEmpty(levelNdx)); in allocLevel()
2717 m_data[levelNdx].setStorage(size); in allocLevel()
2718 m_access[levelNdx] = PixelBufferAccess(m_format, width, height, depth, m_data[levelNdx].getPtr()); in allocLevel()
2721 void TextureLevelPyramid::clearLevel (int levelNdx) in clearLevel() argument
2723 DE_ASSERT(!isLevelEmpty(levelNdx)); in clearLevel()
2725 m_data[levelNdx].clear(); in clearLevel()
2726 m_access[levelNdx] = PixelBufferAccess(); in clearLevel()
2762 void Texture1D::allocLevel (int levelNdx) in allocLevel() argument
2764 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
2766 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
2768 TextureLevelPyramid::allocLevel(levelNdx, width, 1, 1); in allocLevel()
2807 void Texture2D::allocLevel (int levelNdx) in allocLevel() argument
2809 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
2811 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
2812 const int height = getMipPyramidLevelSize(m_height, levelNdx); in allocLevel()
2814 TextureLevelPyramid::allocLevel(levelNdx, width, height, 1); in allocLevel()
2941 for (int levelNdx = 0; levelNdx < numLevels; levelNdx++) in TextureCube() local
2945 if (!other.isLevelEmpty((CubeFace)face, levelNdx)) in TextureCube()
2947 allocLevel((CubeFace)face, levelNdx); in TextureCube()
2948 copy(getLevelFace(levelNdx, (CubeFace)face), in TextureCube()
2949 other.getLevelFace(levelNdx, (CubeFace)face)); in TextureCube()
2974 for (int levelNdx = 0; levelNdx < numLevels; levelNdx++) in operator =() local
2978 if (!isLevelEmpty((CubeFace)face, levelNdx)) in operator =()
2979 clearLevel((CubeFace)face, levelNdx); in operator =()
2981 if (!other.isLevelEmpty((CubeFace)face, levelNdx)) in operator =()
2983 allocLevel((CubeFace)face, levelNdx); in operator =()
2984 copy(getLevelFace(levelNdx, (CubeFace)face), in operator =()
2985 other.getLevelFace(levelNdx, (CubeFace)face)); in operator =()
2997 void TextureCube::allocLevel (tcu::CubeFace face, int levelNdx) in allocLevel() argument
2999 const int size = getMipPyramidLevelSize(m_size, levelNdx); in allocLevel()
3001 DE_ASSERT(isLevelEmpty(face, levelNdx)); in allocLevel()
3003 m_data[face][levelNdx].setStorage(dataSize); in allocLevel()
3004 …m_access[face][levelNdx] = PixelBufferAccess(m_format, size, size, 1, m_data[face][levelNdx].getPt… in allocLevel()
3007 void TextureCube::clearLevel (tcu::CubeFace face, int levelNdx) in clearLevel() argument
3009 DE_ASSERT(!isLevelEmpty(face, levelNdx)); in clearLevel()
3010 m_data[face][levelNdx].clear(); in clearLevel()
3011 m_access[face][levelNdx] = PixelBufferAccess(); in clearLevel()
3128 void Texture1DArray::allocLevel (int levelNdx) in allocLevel() argument
3130 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3132 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
3134 TextureLevelPyramid::allocLevel(levelNdx, width, m_numLayers, 1); in allocLevel()
3176 void Texture2DArray::allocLevel (int levelNdx) in allocLevel() argument
3178 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3180 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
3181 const int height = getMipPyramidLevelSize(m_height, levelNdx); in allocLevel()
3183 TextureLevelPyramid::allocLevel(levelNdx, width, height, m_numLayers); in allocLevel()
3233 void Texture3D::allocLevel (int levelNdx) in allocLevel() argument
3235 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3237 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
3238 const int height = getMipPyramidLevelSize(m_height, levelNdx); in allocLevel()
3239 const int depth = getMipPyramidLevelSize(m_depth, levelNdx); in allocLevel()
3241 TextureLevelPyramid::allocLevel(levelNdx, width, height, depth); in allocLevel()
3328 void TextureCubeArray::allocLevel (int levelNdx) in allocLevel() argument
3330 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3332 const int size = getMipPyramidLevelSize(m_size, levelNdx); in allocLevel()
3334 TextureLevelPyramid::allocLevel(levelNdx, size, size, m_depth); in allocLevel()