Lines Matching defs:height

454 	void				setData					(const ConstPixelBufferAccess& src, int width, int height, deUint32 internalFormat, bool useMipmap);
457 void setSubData (const ConstPixelBufferAccess& src, int xOff, int yOff, int width, int height) const;
463 int getApproxMemUsageDiff (int width, int height, deUint32 internalFormat, bool useMipmap) const;
495 int Texture::getApproxMemUsageDiff (const int width, const int height, const deUint32 internalFormat, const bool useMipmap) const
497 const int numLevels = useMipmap ? deLog2Floor32(de::max(width, height))+1 : 1;
505 memUsageApproxAfter += de::max(1, width>>level) * de::max(1, height>>level) * pixelSize * (m_type == TEXTURETYPE_CUBE ? 6 : 1);
510 void Texture::setData (const ConstPixelBufferAccess& src, const int width, const int height, const deUint32 internalFormat, const bool useMipmap)
512 DE_ASSERT(m_type != TEXTURETYPE_CUBE || width == height);
513 DE_ASSERT(!useMipmap || (deIsPowerOfTwo32(width) && deIsPowerOfTwo32(height)));
518 m_numMipLevels = useMipmap ? deLog2Floor32(de::max(width, height))+1 : 1;
521 m_dataSizeApprox = width * height * format.getPixelSize() * (m_type == TEXTURETYPE_CUBE ? 6 : 1);
525 DE_ASSERT(width <= src.getWidth() && height <= src.getHeight());
537 const int levelHei = de::max(1, height>>level);
550 const int levelHei = de::max(1, height>>level);
560 void Texture::setSubData (const ConstPixelBufferAccess& src, const int xOff, const int yOff, const int width, const int height) const
567 DE_ASSERT(width <= src.getWidth() && height <= src.getHeight());
575 glTexSubImage2D(GL_TEXTURE_2D, level, xOff>>level, yOff>>level, de::max(1, width>>level), de::max(1, height>>level), transfer.format, transfer.dataType, src.getDataPtr());
583 glTexSubImage2D(cubeFaceToGLFace((CubeFace)face), level, xOff>>level, yOff>>level, de::max(1, width>>level), de::max(1, height>>level), transfer.format, transfer.dataType, src.getDataPtr());
1166 if (unusedTex->getWidth() < spec.width || unusedTex->getHeight() < spec.height)
1168 unusedTex->setSize(spec.width, spec.height);
1314 m_textures->removeGarbageUntilUnder(m_maxTexMemoryUsageBytes - texture.getApproxMemUsageDiff(spec.width, spec.height, spec.internalFormat, spec.useMipmap), m_rnd);
1317 texture.setData(programResources.unusedTextures[texNdx]->getAccess(), spec.width, spec.height, spec.internalFormat, spec.useMipmap);
1319 texture.setSubData(programResources.unusedTextures[texNdx]->getAccess(), 0, 0, spec.width, spec.height);