• Home
  • Raw
  • Download

Lines Matching full:level

327 GLsizei Texture::getDepth(GLenum target, GLint level) const  in getDepth()
332 egl::Image *Texture::createSharedImage(GLenum target, unsigned int level) in createSharedImage() argument
334 egl::Image *image = getRenderTarget(target, level); // Increments reference count in createSharedImage()
355 …relation to width and height is already validated with gl::ComputeCompressedSize() at the API level in setCompressedImage()
382 …relation to width and height is already validated with gl::ComputeCompressedSize() at the API level in subImageCompressed()
498 GLsizei Texture2D::getWidth(GLenum target, GLint level) const in getWidth()
501 return image[level] ? image[level]->getWidth() : 0; in getWidth()
504 GLsizei Texture2D::getHeight(GLenum target, GLint level) const in getHeight()
507 return image[level] ? image[level]->getHeight() : 0; in getHeight()
510 GLint Texture2D::getFormat(GLenum target, GLint level) const in getFormat()
513 return image[level] ? image[level]->getFormat() : GL_NONE; in getFormat()
518 int level = mBaseLevel; in getTopLevel() local
520 while(level < IMPLEMENTATION_MAX_TEXTURE_LEVELS && image[level]) in getTopLevel()
522 level++; in getTopLevel()
525 return level - 1; in getTopLevel()
530 for(int level = 1; level < IMPLEMENTATION_MAX_TEXTURE_LEVELS; level++) in hasNonBaseLevels() local
532 if (image[level]) in hasNonBaseLevels()
543 for(int level = 0; level < IMPLEMENTATION_MAX_TEXTURE_LEVELS; level++) in requiresSync() local
545 if(image[level] && image[level]->requiresSync()) in requiresSync()
554 void Texture2D::setImage(GLint level, GLsizei width, GLsizei height, GLint internalformat, GLenum f… in setImage() argument
556 if(image[level]) in setImage()
558 image[level]->release(); in setImage()
561 image[level] = egl::Image::create(this, width, height, internalformat); in setImage()
563 if(!image[level]) in setImage()
568 Texture::setImage(format, type, unpackParameters, pixels, image[level]); in setImage()
594 void Texture2D::setCompressedImage(GLint level, GLenum format, GLsizei width, GLsizei height, GLsiz… in setCompressedImage() argument
596 if(image[level]) in setCompressedImage()
598 image[level]->release(); in setCompressedImage()
601 image[level] = egl::Image::create(this, width, height, format); in setCompressedImage()
603 if(!image[level]) in setCompressedImage()
608 Texture::setCompressedImage(imageSize, pixels, image[level]); in setCompressedImage()
611 void Texture2D::subImage(GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, … in subImage() argument
613 …Image(xoffset, yoffset, 0, width, height, 1, format, type, unpackParameters, pixels, image[level]); in subImage()
616 void Texture2D::subImageCompressed(GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsize… in subImageCompressed() argument
618 …subImageCompressed(xoffset, yoffset, 0, width, height, 1, format, imageSize, pixels, image[level]); in subImageCompressed()
621 void Texture2D::copyImage(GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsi… in copyImage() argument
623 if(image[level]) in copyImage()
625 image[level]->release(); in copyImage()
628 image[level] = egl::Image::create(this, width, height, internalformat); in copyImage()
630 if(!image[level]) in copyImage()
648 copy(renderTarget, sourceRect, 0, 0, 0, image[level]); in copyImage()
654 void Texture2D::copySubImage(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffse… in copySubImage() argument
656 if(!image[level]) in copySubImage()
661 …if(xoffset + width > image[level]->getWidth() || yoffset + height > image[level]->getHeight() || z… in copySubImage()
679 copy(renderTarget, sourceRect, xoffset, yoffset, zoffset, image[level]); in copySubImage()
758 for(int level = mBaseLevel + 1; level <= q; level++) in isMipmapComplete() local
760 if(!image[level]) in isMipmapComplete()
765 if(image[level]->getFormat() != image[mBaseLevel]->getFormat()) in isMipmapComplete()
770 int i = level - mBaseLevel; in isMipmapComplete()
772 if(image[level]->getWidth() != std::max(1, width >> i)) in isMipmapComplete()
777 if(image[level]->getHeight() != std::max(1, height >> i)) in isMipmapComplete()
786 bool Texture2D::isCompressed(GLenum target, GLint level) const in isCompressed()
788 return IsCompressed(getFormat(target, level)); in isCompressed()
791 bool Texture2D::isDepth(GLenum target, GLint level) const in isDepth()
793 return IsDepthTexture(getFormat(target, level)); in isDepth()
830 egl::Image *Texture2D::getImage(unsigned int level) in getImage() argument
832 return image[level]; in getImage()
835 Renderbuffer *Texture2D::getRenderbuffer(GLenum target, GLint level) in getRenderbuffer() argument
844 mColorbufferProxy = new Renderbuffer(name, new RenderbufferTexture2D(this, level)); in getRenderbuffer()
848 mColorbufferProxy->setLevel(level); in getRenderbuffer()
854 egl::Image *Texture2D::getRenderTarget(GLenum target, unsigned int level) in getRenderTarget() argument
857 ASSERT(level < IMPLEMENTATION_MAX_TEXTURE_LEVELS); in getRenderTarget()
859 if(image[level]) in getRenderTarget()
861 image[level]->addRef(); in getRenderTarget()
864 return image[level]; in getRenderTarget()
867 bool Texture2D::isShared(GLenum target, unsigned int level) const in isShared()
870 ASSERT(level < IMPLEMENTATION_MAX_TEXTURE_LEVELS); in isShared()
877 if(!image[level]) in isShared()
882 return image[level]->isShared(); in isShared()
899 Renderbuffer *Texture2DRect::getRenderbuffer(GLenum target, GLint level) in getRenderbuffer() argument
901 if((target != getTarget()) || (level != 0)) in getRenderbuffer()
998 GLsizei TextureCubeMap::getWidth(GLenum target, GLint level) const in getWidth()
1001 return image[face][level] ? image[face][level]->getWidth() : 0; in getWidth()
1004 GLsizei TextureCubeMap::getHeight(GLenum target, GLint level) const in getHeight()
1007 return image[face][level] ? image[face][level]->getHeight() : 0; in getHeight()
1010 GLint TextureCubeMap::getFormat(GLenum target, GLint level) const in getFormat()
1013 return image[face][level] ? image[face][level]->getFormat() : 0; in getFormat()
1018 int level = mBaseLevel; in getTopLevel() local
1020 while(level < IMPLEMENTATION_MAX_TEXTURE_LEVELS && image[0][level]) in getTopLevel()
1022 level++; in getTopLevel()
1025 return level - 1; in getTopLevel()
1030 for(int level = 1; level < IMPLEMENTATION_MAX_TEXTURE_LEVELS; level++) in hasNonBaseLevels() local
1034 if (image[face][level]) in hasNonBaseLevels()
1046 for(int level = 0; level < IMPLEMENTATION_MAX_TEXTURE_LEVELS; level++) in requiresSync() local
1050 if(image[face][level] && image[face][level]->requiresSync()) in requiresSync()
1060 void TextureCubeMap::setCompressedImage(GLenum target, GLint level, GLenum format, GLsizei width, G… in setCompressedImage() argument
1064 if(image[face][level]) in setCompressedImage()
1066 image[face][level]->release(); in setCompressedImage()
1069 image[face][level] = egl::Image::create(this, width, height, 1, 1, format); in setCompressedImage()
1071 if(!image[face][level]) in setCompressedImage()
1076 Texture::setCompressedImage(imageSize, pixels, image[face][level]); in setCompressedImage()
1079 void TextureCubeMap::subImage(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei wid… in subImage() argument
1081 … 0, width, height, 1, format, type, unpackParameters, pixels, image[CubeFaceIndex(target)][level]); in subImage()
1084 void TextureCubeMap::subImageCompressed(GLenum target, GLint level, GLint xoffset, GLint yoffset, G… in subImageCompressed() argument
1086 …set, yoffset, 0, width, height, 1, format, imageSize, pixels, image[CubeFaceIndex(target)][level]); in subImageCompressed()
1184 for(int level = mBaseLevel + 1; level <= q; level++) in isMipmapCubeComplete() local
1186 if(!image[face][level]) in isMipmapCubeComplete()
1191 if(image[face][level]->getFormat() != image[0][mBaseLevel]->getFormat()) in isMipmapCubeComplete()
1196 int i = level - mBaseLevel; in isMipmapCubeComplete()
1198 if(image[face][level]->getWidth() != std::max(1, size >> i)) in isMipmapCubeComplete()
1208 void TextureCubeMap::updateBorders(int level) in updateBorders() argument
1210 egl::Image *posX = image[CubeFaceIndex(GL_TEXTURE_CUBE_MAP_POSITIVE_X)][level]; in updateBorders()
1211 egl::Image *negX = image[CubeFaceIndex(GL_TEXTURE_CUBE_MAP_NEGATIVE_X)][level]; in updateBorders()
1212 egl::Image *posY = image[CubeFaceIndex(GL_TEXTURE_CUBE_MAP_POSITIVE_Y)][level]; in updateBorders()
1213 egl::Image *negY = image[CubeFaceIndex(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y)][level]; in updateBorders()
1214 egl::Image *posZ = image[CubeFaceIndex(GL_TEXTURE_CUBE_MAP_POSITIVE_Z)][level]; in updateBorders()
1215 egl::Image *negZ = image[CubeFaceIndex(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z)][level]; in updateBorders()
1271 bool TextureCubeMap::isCompressed(GLenum target, GLint level) const in isCompressed()
1273 return IsCompressed(getFormat(target, level)); in isCompressed()
1276 bool TextureCubeMap::isDepth(GLenum target, GLint level) const in isDepth()
1278 return IsDepthTexture(getFormat(target, level)); in isDepth()
1286 void TextureCubeMap::setImage(GLenum target, GLint level, GLsizei width, GLsizei height, GLint inte… in setImage() argument
1290 if(image[face][level]) in setImage()
1292 image[face][level]->release(); in setImage()
1295 image[face][level] = egl::Image::create(this, width, height, 1, 1, internalformat); in setImage()
1297 if(!image[face][level]) in setImage()
1302 Texture::setImage(format, type, unpackParameters, pixels, image[face][level]); in setImage()
1305 void TextureCubeMap::copyImage(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y,… in copyImage() argument
1309 if(image[face][level]) in copyImage()
1311 image[face][level]->release(); in copyImage()
1314 image[face][level] = egl::Image::create(this, width, height, 1, 1, internalformat); in copyImage()
1316 if(!image[face][level]) in copyImage()
1334 copy(renderTarget, sourceRect, 0, 0, 0, image[face][level]); in copyImage()
1340 egl::Image *TextureCubeMap::getImage(int face, unsigned int level) in getImage() argument
1342 return image[face][level]; in getImage()
1345 egl::Image *TextureCubeMap::getImage(GLenum face, unsigned int level) in getImage() argument
1347 return image[CubeFaceIndex(face)][level]; in getImage()
1350 void TextureCubeMap::copySubImage(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint z… in copySubImage() argument
1354 if(!image[face][level]) in copySubImage()
1359 GLsizei size = image[face][level]->getWidth(); in copySubImage()
1379 copy(renderTarget, sourceRect, xoffset, yoffset, zoffset, image[face][level]); in copySubImage()
1418 Renderbuffer *TextureCubeMap::getRenderbuffer(GLenum target, GLint level) in getRenderbuffer() argument
1429 mFaceProxies[face] = new Renderbuffer(name, new RenderbufferTextureCubeMap(this, target, level)); in getRenderbuffer()
1433 mFaceProxies[face]->setLevel(level); in getRenderbuffer()
1439 egl::Image *TextureCubeMap::getRenderTarget(GLenum target, unsigned int level) in getRenderTarget() argument
1442 ASSERT(level < IMPLEMENTATION_MAX_TEXTURE_LEVELS); in getRenderTarget()
1446 if(image[face][level]) in getRenderTarget()
1448 image[face][level]->addRef(); in getRenderTarget()
1451 return image[face][level]; in getRenderTarget()
1454 bool TextureCubeMap::isShared(GLenum target, unsigned int level) const in isShared()
1457 ASSERT(level < IMPLEMENTATION_MAX_TEXTURE_LEVELS); in isShared()
1461 if(!image[face][level]) in isShared()
1466 return image[face][level]->isShared(); in isShared()
1539 GLsizei Texture3D::getWidth(GLenum target, GLint level) const in getWidth()
1542 return image[level] ? image[level]->getWidth() : 0; in getWidth()
1545 GLsizei Texture3D::getHeight(GLenum target, GLint level) const in getHeight()
1548 return image[level] ? image[level]->getHeight() : 0; in getHeight()
1551 GLsizei Texture3D::getDepth(GLenum target, GLint level) const in getDepth()
1554 return image[level] ? image[level]->getDepth() : 0; in getDepth()
1557 GLint Texture3D::getFormat(GLenum target, GLint level) const in getFormat()
1560 return image[level] ? image[level]->getFormat() : GL_NONE; in getFormat()
1565 int level = mBaseLevel; in getTopLevel() local
1567 while(level < IMPLEMENTATION_MAX_TEXTURE_LEVELS && image[level]) in getTopLevel()
1569 level++; in getTopLevel()
1572 return level - 1; in getTopLevel()
1577 for(int level = 1; level < IMPLEMENTATION_MAX_TEXTURE_LEVELS; level++) in hasNonBaseLevels() local
1579 if (image[level]) in hasNonBaseLevels()
1590 for(int level = 0; level < IMPLEMENTATION_MAX_TEXTURE_LEVELS; level++) in requiresSync() local
1592 if(image[level] && image[level]->requiresSync()) in requiresSync()
1601 void Texture3D::setImage(GLint level, GLsizei width, GLsizei height, GLsizei depth, GLint internalf… in setImage() argument
1603 if(image[level]) in setImage()
1605 image[level]->release(); in setImage()
1608 image[level] = egl::Image::create(this, width, height, depth, 0, internalformat); in setImage()
1610 if(!image[level]) in setImage()
1615 Texture::setImage(format, type, unpackParameters, pixels, image[level]); in setImage()
1623 void Texture3D::setCompressedImage(GLint level, GLenum format, GLsizei width, GLsizei height, GLsiz… in setCompressedImage() argument
1625 if(image[level]) in setCompressedImage()
1627 image[level]->release(); in setCompressedImage()
1630 image[level] = egl::Image::create(this, width, height, depth, 0, format); in setCompressedImage()
1632 if(!image[level]) in setCompressedImage()
1637 Texture::setCompressedImage(imageSize, pixels, image[level]); in setCompressedImage()
1640 void Texture3D::subImage(GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, G… in subImage() argument
1642 …set, yoffset, zoffset, width, height, depth, format, type, unpackParameters, pixels, image[level]); in subImage()
1645 void Texture3D::subImageCompressed(GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsize… in subImageCompressed() argument
1647 …mpressed(xoffset, yoffset, zoffset, width, height, depth, format, imageSize, pixels, image[level]); in subImageCompressed()
1650 void Texture3D::copyImage(GLint level, GLenum internalformat, GLint x, GLint y, GLint z, GLsizei wi… in copyImage() argument
1652 if(image[level]) in copyImage()
1654 image[level]->release(); in copyImage()
1657 image[level] = egl::Image::create(this, width, height, depth, 0, internalformat); in copyImage()
1659 if(!image[level]) in copyImage()
1679 copy(renderTarget, sourceRect, 0, 0, sliceZ, image[level]); in copyImage()
1686 void Texture3D::copySubImage(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffse… in copySubImage() argument
1688 if(!image[level]) in copySubImage()
1693 …if(xoffset + width > image[level]->getWidth() || yoffset + height > image[level]->getHeight() || z… in copySubImage()
1711 copy(renderTarget, sourceRect, xoffset, yoffset, zoffset, image[level]); in copySubImage()
1789 for(int level = mBaseLevel + 1; level <= q; level++) in isMipmapComplete() local
1791 if(!image[level]) in isMipmapComplete()
1796 if(image[level]->getFormat() != image[mBaseLevel]->getFormat()) in isMipmapComplete()
1801 int i = level - mBaseLevel; in isMipmapComplete()
1803 if(image[level]->getWidth() != std::max(1, width >> i)) in isMipmapComplete()
1808 if(image[level]->getHeight() != std::max(1, height >> i)) in isMipmapComplete()
1814 if(image[level]->getDepth() != levelDepth) in isMipmapComplete()
1823 bool Texture3D::isCompressed(GLenum target, GLint level) const in isCompressed()
1825 return IsCompressed(getFormat(target, level)); in isCompressed()
1828 bool Texture3D::isDepth(GLenum target, GLint level) const in isDepth()
1830 return IsDepthTexture(getFormat(target, level)); in isDepth()
1867 egl::Image *Texture3D::getImage(unsigned int level) in getImage() argument
1869 return image[level]; in getImage()
1872 Renderbuffer *Texture3D::getRenderbuffer(GLenum target, GLint level) in getRenderbuffer() argument
1881 mColorbufferProxy = new Renderbuffer(name, new RenderbufferTexture3D(this, level)); in getRenderbuffer()
1885 mColorbufferProxy->setLevel(level); in getRenderbuffer()
1891 egl::Image *Texture3D::getRenderTarget(GLenum target, unsigned int level) in getRenderTarget() argument
1894 ASSERT(level < IMPLEMENTATION_MAX_TEXTURE_LEVELS); in getRenderTarget()
1896 if(image[level]) in getRenderTarget()
1898 image[level]->addRef(); in getRenderTarget()
1901 return image[level]; in getRenderTarget()
1904 bool Texture3D::isShared(GLenum target, unsigned int level) const in isShared()
1907 ASSERT(level < IMPLEMENTATION_MAX_TEXTURE_LEVELS); in isShared()
1914 if(!image[level]) in isShared()
1919 return image[level]->isShared(); in isShared()