Home | History | Annotate | Download | only in glshared

Lines Matching full:internalformat

212 static inline bool isMatchingGLInternalFormat (const deUint32 internalFormat, const TextureFormat& texFormat)
214 switch (internalFormat)
233 default: return glu::mapGLInternalFormat(internalFormat) == texFormat;
454 void setData (const ConstPixelBufferAccess& src, int width, int height, deUint32 internalFormat, bool useMipmap);
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
498 const int pixelSize = internalFormat == GL_RGBA ? 4
499 : internalFormat == GL_RGB ? 3
500 : internalFormat == GL_ALPHA ? 1
501 : glu::mapGLInternalFormat(internalFormat).getPixelSize();
510 void Texture::setData (const ConstPixelBufferAccess& src, const int width, const int height, const deUint32 internalFormat, const bool useMipmap)
520 m_internalFormat = internalFormat;
524 DE_ASSERT(isMatchingGLInternalFormat(internalFormat, format));
539 glTexImage2D(GL_TEXTURE_2D, level, internalFormat, levelWid, levelHei, 0, transfer.format, transfer.dataType, src.getDataPtr());
553 glTexImage2D(cubeFaceToGLFace((CubeFace)face), level, internalFormat, levelWid, levelHei, 0, transfer.format, transfer.dataType, src.getDataPtr());
1314 internalFormat, spec.useMipmap), m_rnd);
1317 texture.setData(programResources.dummyTextures[texNdx]->getAccess(), spec.width, spec.height, spec.internalFormat, spec.useMipmap);