Lines Matching full:level
218 egl::Image *Texture::createSharedImage(GLenum target, unsigned int level) in createSharedImage() argument
220 egl::Image *image = getRenderTarget(target, level); // Increments reference count in createSharedImage()
242 …relation to width and height is already validated with gl::ComputeCompressedSize() at the API level in setCompressedImage()
270 …relation to width and height is already validated with gl::ComputeCompressedSize() at the API level in subImageCompressed()
392 GLsizei Texture2D::getWidth(GLenum target, GLint level) const in getWidth()
395 return image[level] ? image[level]->getWidth() : 0; in getWidth()
398 GLsizei Texture2D::getHeight(GLenum target, GLint level) const in getHeight()
401 return image[level] ? image[level]->getHeight() : 0; in getHeight()
404 GLint Texture2D::getFormat(GLenum target, GLint level) const in getFormat()
407 return image[level] ? image[level]->getFormat() : GL_NONE; in getFormat()
413 int level = 0; in getTopLevel() local
415 while(level < IMPLEMENTATION_MAX_TEXTURE_LEVELS && image[level]) in getTopLevel()
417 level++; in getTopLevel()
420 return level - 1; in getTopLevel()
423 void Texture2D::setImage(GLint level, GLsizei width, GLsizei height, GLint internalformat, GLenum f… in setImage() argument
425 if(image[level]) in setImage()
427 image[level]->release(); in setImage()
430 image[level] = egl::Image::create(this, width, height, internalformat); in setImage()
432 if(!image[level]) in setImage()
437 Texture::setImage(format, type, unpackAlignment, pixels, image[level]); in setImage()
442 for(int level = 0; level < IMPLEMENTATION_MAX_TEXTURE_LEVELS; level++) in bindTexImage() local
444 if(image[level]) in bindTexImage()
446 image[level]->release(); in bindTexImage()
447 image[level] = nullptr; in bindTexImage()
461 for(int level = 0; level < IMPLEMENTATION_MAX_TEXTURE_LEVELS; level++) in releaseTexImage() local
463 if(image[level]) in releaseTexImage()
465 image[level]->release(); in releaseTexImage()
466 image[level] = nullptr; in releaseTexImage()
471 void Texture2D::setCompressedImage(GLint level, GLenum format, GLsizei width, GLsizei height, GLsiz… in setCompressedImage() argument
473 if(image[level]) in setCompressedImage()
475 image[level]->release(); in setCompressedImage()
478 image[level] = egl::Image::create(this, width, height, format); in setCompressedImage()
480 if(!image[level]) in setCompressedImage()
485 Texture::setCompressedImage(imageSize, pixels, image[level]); in setCompressedImage()
488 void Texture2D::subImage(GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, … in subImage() argument
490 …re::subImage(xoffset, yoffset, width, height, format, type, unpackAlignment, pixels, image[level]); in subImage()
493 void Texture2D::subImageCompressed(GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsize… in subImageCompressed() argument
495 …ture::subImageCompressed(xoffset, yoffset, width, height, format, imageSize, pixels, image[level]); in subImageCompressed()
498 void Texture2D::copyImage(GLint level, GLenum format, GLint x, GLint y, GLsizei width, GLsizei heig… in copyImage() argument
500 if(image[level]) in copyImage()
502 image[level]->release(); in copyImage()
505 image[level] = egl::Image::create(this, width, height, format); in copyImage()
507 if(!image[level]) in copyImage()
525 copy(renderTarget, sourceRect, format, 0, 0, image[level]); in copyImage()
531 void Texture2D::copySubImage(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLi… in copySubImage() argument
533 if(!image[level]) in copySubImage()
538 if(xoffset + width > image[level]->getWidth() || yoffset + height > image[level]->getHeight()) in copySubImage()
554 copy(renderTarget, sourceRect, image[level]->getFormat(), xoffset, yoffset, image[level]); in copySubImage()
606 for(int level = 1; level <= q; level++) in isMipmapComplete() local
608 if(!image[level]) in isMipmapComplete()
613 if(image[level]->getFormat() != image[0]->getFormat()) in isMipmapComplete()
618 if(image[level]->getWidth() != std::max(1, width >> level)) in isMipmapComplete()
623 if(image[level]->getHeight() != std::max(1, height >> level)) in isMipmapComplete()
632 bool Texture2D::isCompressed(GLenum target, GLint level) const in isCompressed()
634 return IsCompressed(getFormat(target, level)); in isCompressed()
637 bool Texture2D::isDepth(GLenum target, GLint level) const in isDepth()
639 return IsDepthTexture(getFormat(target, level)); in isDepth()
678 egl::Image *Texture2D::getImage(unsigned int level) in getImage() argument
680 return image[level]; in getImage()
683 Renderbuffer *Texture2D::getRenderbuffer(GLenum target, GLint level) in getRenderbuffer() argument
692 mColorbufferProxy = new Renderbuffer(name, new RenderbufferTexture2D(this, level)); in getRenderbuffer()
696 mColorbufferProxy->setLevel(level); in getRenderbuffer()
702 egl::Image *Texture2D::getRenderTarget(GLenum target, unsigned int level) in getRenderTarget() argument
705 ASSERT(level < IMPLEMENTATION_MAX_TEXTURE_LEVELS); in getRenderTarget()
707 if(image[level]) in getRenderTarget()
709 image[level]->addRef(); in getRenderTarget()
712 return image[level]; in getRenderTarget()
715 bool Texture2D::isShared(GLenum target, unsigned int level) const in isShared()
718 ASSERT(level < IMPLEMENTATION_MAX_TEXTURE_LEVELS); in isShared()
725 if(!image[level]) in isShared()
730 return image[level]->isShared(); in isShared()