• Home
  • Raw
  • Download

Lines Matching refs:levelNdx

2979 …getCubeArrayFaceAccess (const ConstPixelBufferAccess* const levels, int levelNdx, int slice, CubeF…  in getCubeArrayFaceAccess()  argument
2981 const ConstPixelBufferAccess& level = levels[levelNdx]; in getCubeArrayFaceAccess()
3166 inline int getMipPyramidLevelSize (int baseLevelSize, int levelNdx) in getMipPyramidLevelSize() argument
3168 return de::max(baseLevelSize >> levelNdx, 1); in getMipPyramidLevelSize()
3185 for (int levelNdx = 0; levelNdx < other.getNumLevels(); levelNdx++) in TextureLevelPyramid() local
3187 if (!other.isLevelEmpty(levelNdx)) in TextureLevelPyramid()
3189 const tcu::ConstPixelBufferAccess& srcLevel = other.getLevel(levelNdx); in TextureLevelPyramid()
3191 m_data[levelNdx] = other.m_data[levelNdx]; in TextureLevelPyramid()
3192 …m_access[levelNdx] = PixelBufferAccess(srcLevel.getFormat(), srcLevel.getWidth(), srcLevel.getHeig… in TextureLevelPyramid()
3206 for (int levelNdx = 0; levelNdx < other.getNumLevels(); levelNdx++) in operator =() local
3208 if (!other.isLevelEmpty(levelNdx)) in operator =()
3210 const tcu::ConstPixelBufferAccess& srcLevel = other.getLevel(levelNdx); in operator =()
3212 m_data[levelNdx] = other.m_data[levelNdx]; in operator =()
3213 …m_access[levelNdx] = PixelBufferAccess(srcLevel.getFormat(), srcLevel.getWidth(), srcLevel.getHeig… in operator =()
3215 else if (!isLevelEmpty(levelNdx)) in operator =()
3216 clearLevel(levelNdx); in operator =()
3226 void TextureLevelPyramid::allocLevel (int levelNdx, int width, int height, int depth) in allocLevel() argument
3230 DE_ASSERT(isLevelEmpty(levelNdx)); in allocLevel()
3232 m_data[levelNdx].setStorage(size); in allocLevel()
3233 m_access[levelNdx] = PixelBufferAccess(m_format, width, height, depth, m_data[levelNdx].getPtr()); in allocLevel()
3236 void TextureLevelPyramid::clearLevel (int levelNdx) in clearLevel() argument
3238 DE_ASSERT(!isLevelEmpty(levelNdx)); in clearLevel()
3240 m_data[levelNdx].clear(); in clearLevel()
3241 m_access[levelNdx] = PixelBufferAccess(); in clearLevel()
3277 void Texture1D::allocLevel (int levelNdx) in allocLevel() argument
3279 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3281 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
3283 TextureLevelPyramid::allocLevel(levelNdx, width, 1, 1); in allocLevel()
3330 void Texture2D::allocLevel (int levelNdx) in allocLevel() argument
3332 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3334 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
3335 const int height = getMipPyramidLevelSize(m_height, levelNdx); in allocLevel()
3337 TextureLevelPyramid::allocLevel(levelNdx, width, height, 1); in allocLevel()
3464 for (int levelNdx = 0; levelNdx < numLevels; levelNdx++) in TextureCube() local
3468 if (!other.isLevelEmpty((CubeFace)face, levelNdx)) in TextureCube()
3470 allocLevel((CubeFace)face, levelNdx); in TextureCube()
3471 copy(getLevelFace(levelNdx, (CubeFace)face), in TextureCube()
3472 other.getLevelFace(levelNdx, (CubeFace)face)); in TextureCube()
3497 for (int levelNdx = 0; levelNdx < numLevels; levelNdx++) in operator =() local
3501 if (!isLevelEmpty((CubeFace)face, levelNdx)) in operator =()
3502 clearLevel((CubeFace)face, levelNdx); in operator =()
3504 if (!other.isLevelEmpty((CubeFace)face, levelNdx)) in operator =()
3506 allocLevel((CubeFace)face, levelNdx); in operator =()
3507 copy(getLevelFace(levelNdx, (CubeFace)face), in operator =()
3508 other.getLevelFace(levelNdx, (CubeFace)face)); in operator =()
3520 void TextureCube::allocLevel (tcu::CubeFace face, int levelNdx) in allocLevel() argument
3522 const int size = getMipPyramidLevelSize(m_size, levelNdx); in allocLevel()
3524 DE_ASSERT(isLevelEmpty(face, levelNdx)); in allocLevel()
3526 m_data[face][levelNdx].setStorage(dataSize); in allocLevel()
3527 …m_access[face][levelNdx] = PixelBufferAccess(m_format, size, size, 1, m_data[face][levelNdx].getPt… in allocLevel()
3530 void TextureCube::clearLevel (tcu::CubeFace face, int levelNdx) in clearLevel() argument
3532 DE_ASSERT(!isLevelEmpty(face, levelNdx)); in clearLevel()
3533 m_data[face][levelNdx].clear(); in clearLevel()
3534 m_access[face][levelNdx] = PixelBufferAccess(); in clearLevel()
3651 void Texture1DArray::allocLevel (int levelNdx) in allocLevel() argument
3653 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3655 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
3657 TextureLevelPyramid::allocLevel(levelNdx, width, m_numLayers, 1); in allocLevel()
3699 void Texture2DArray::allocLevel (int levelNdx) in allocLevel() argument
3701 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3703 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
3704 const int height = getMipPyramidLevelSize(m_height, levelNdx); in allocLevel()
3706 TextureLevelPyramid::allocLevel(levelNdx, width, height, m_numLayers); in allocLevel()
3756 void Texture3D::allocLevel (int levelNdx) in allocLevel() argument
3758 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3760 const int width = getMipPyramidLevelSize(m_width, levelNdx); in allocLevel()
3761 const int height = getMipPyramidLevelSize(m_height, levelNdx); in allocLevel()
3762 const int depth = getMipPyramidLevelSize(m_depth, levelNdx); in allocLevel()
3764 TextureLevelPyramid::allocLevel(levelNdx, width, height, depth); in allocLevel()
3851 void TextureCubeArray::allocLevel (int levelNdx) in allocLevel() argument
3853 DE_ASSERT(de::inBounds(levelNdx, 0, getNumLevels())); in allocLevel()
3855 const int size = getMipPyramidLevelSize(m_size, levelNdx); in allocLevel()
3857 TextureLevelPyramid::allocLevel(levelNdx, size, size, m_depth); in allocLevel()