• Home
  • Raw
  • Download

Lines Matching refs:levelNdx

2916 …getCubeArrayFaceAccess (const ConstPixelBufferAccess* const levels, int levelNdx, int slice, CubeF…  in getCubeArrayFaceAccess()  argument
2918 const ConstPixelBufferAccess& level = levels[levelNdx]; in getCubeArrayFaceAccess()
3103 inline int getMipPyramidLevelSize (int baseLevelSize, int levelNdx) in getMipPyramidLevelSize() argument
3105 return de::max(baseLevelSize >> levelNdx, 1); in getMipPyramidLevelSize()
3122 for (int levelNdx = 0; levelNdx < other.getNumLevels(); levelNdx++) in TextureLevelPyramid() local
3124 if (!other.isLevelEmpty(levelNdx)) in TextureLevelPyramid()
3126 const tcu::ConstPixelBufferAccess& srcLevel = other.getLevel(levelNdx); in TextureLevelPyramid()
3128 m_data[levelNdx] = other.m_data[levelNdx]; in TextureLevelPyramid()
3129 …m_access[levelNdx] = PixelBufferAccess(srcLevel.getFormat(), srcLevel.getWidth(), srcLevel.getHeig… in TextureLevelPyramid()
3143 for (int levelNdx = 0; levelNdx < other.getNumLevels(); levelNdx++) in operator =() local
3145 if (!other.isLevelEmpty(levelNdx)) in operator =()
3147 const tcu::ConstPixelBufferAccess& srcLevel = other.getLevel(levelNdx); in operator =()
3149 m_data[levelNdx] = other.m_data[levelNdx]; in operator =()
3150 …m_access[levelNdx] = PixelBufferAccess(srcLevel.getFormat(), srcLevel.getWidth(), srcLevel.getHeig… in operator =()
3152 else if (!isLevelEmpty(levelNdx)) in operator =()
3153 clearLevel(levelNdx); in operator =()
3163 void TextureLevelPyramid::allocLevel (int levelNdx, int width, int height, int depth) in allocLevel() argument
3167 DE_ASSERT(isLevelEmpty(levelNdx)); in allocLevel()
3169 m_data[levelNdx].setStorage(size); in allocLevel()
3170 m_access[levelNdx] = PixelBufferAccess(m_format, width, height, depth, m_data[levelNdx].getPtr()); in allocLevel()
3173 void TextureLevelPyramid::clearLevel (int levelNdx) in clearLevel() argument
3175 DE_ASSERT(!isLevelEmpty(levelNdx)); in clearLevel()
3177 m_data[levelNdx].clear(); in clearLevel()
3178 m_access[levelNdx] = PixelBufferAccess(); in clearLevel()
3214 void Texture1D::allocLevel (int levelNdx) in allocLevel() argument
3216 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3218 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
3220 TextureLevelPyramid::allocLevel(levelNdx, width, 1, 1); in allocLevel()
3267 void Texture2D::allocLevel (int levelNdx) in allocLevel() argument
3269 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3271 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
3272 const int height = getMipPyramidLevelSize(m_height, levelNdx); in allocLevel()
3274 TextureLevelPyramid::allocLevel(levelNdx, width, height, 1); in allocLevel()
3401 for (int levelNdx = 0; levelNdx < numLevels; levelNdx++) in TextureCube() local
3405 if (!other.isLevelEmpty((CubeFace)face, levelNdx)) in TextureCube()
3407 allocLevel((CubeFace)face, levelNdx); in TextureCube()
3408 copy(getLevelFace(levelNdx, (CubeFace)face), in TextureCube()
3409 other.getLevelFace(levelNdx, (CubeFace)face)); in TextureCube()
3434 for (int levelNdx = 0; levelNdx < numLevels; levelNdx++) in operator =() local
3438 if (!isLevelEmpty((CubeFace)face, levelNdx)) in operator =()
3439 clearLevel((CubeFace)face, levelNdx); in operator =()
3441 if (!other.isLevelEmpty((CubeFace)face, levelNdx)) in operator =()
3443 allocLevel((CubeFace)face, levelNdx); in operator =()
3444 copy(getLevelFace(levelNdx, (CubeFace)face), in operator =()
3445 other.getLevelFace(levelNdx, (CubeFace)face)); in operator =()
3457 void TextureCube::allocLevel (tcu::CubeFace face, int levelNdx) in allocLevel() argument
3459 const int size = getMipPyramidLevelSize(m_size, levelNdx); in allocLevel()
3461 DE_ASSERT(isLevelEmpty(face, levelNdx)); in allocLevel()
3463 m_data[face][levelNdx].setStorage(dataSize); in allocLevel()
3464 …m_access[face][levelNdx] = PixelBufferAccess(m_format, size, size, 1, m_data[face][levelNdx].getPt… in allocLevel()
3467 void TextureCube::clearLevel (tcu::CubeFace face, int levelNdx) in clearLevel() argument
3469 DE_ASSERT(!isLevelEmpty(face, levelNdx)); in clearLevel()
3470 m_data[face][levelNdx].clear(); in clearLevel()
3471 m_access[face][levelNdx] = PixelBufferAccess(); in clearLevel()
3588 void Texture1DArray::allocLevel (int levelNdx) in allocLevel() argument
3590 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3592 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
3594 TextureLevelPyramid::allocLevel(levelNdx, width, m_numLayers, 1); in allocLevel()
3636 void Texture2DArray::allocLevel (int levelNdx) in allocLevel() argument
3638 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3640 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
3641 const int height = getMipPyramidLevelSize(m_height, levelNdx); in allocLevel()
3643 TextureLevelPyramid::allocLevel(levelNdx, width, height, m_numLayers); in allocLevel()
3693 void Texture3D::allocLevel (int levelNdx) in allocLevel() argument
3695 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3697 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
3698 const int height = getMipPyramidLevelSize(m_height, levelNdx); in allocLevel()
3699 const int depth = getMipPyramidLevelSize(m_depth, levelNdx); in allocLevel()
3701 TextureLevelPyramid::allocLevel(levelNdx, width, height, depth); in allocLevel()
3788 void TextureCubeArray::allocLevel (int levelNdx) in allocLevel() argument
3790 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3792 const int size = getMipPyramidLevelSize(m_size, levelNdx); in allocLevel()
3794 TextureLevelPyramid::allocLevel(levelNdx, size, size, m_depth); in allocLevel()