Lines Matching refs:internalFormat
95 bool Texture::updateLayout(uint32_t width, uint32_t height, GLint internalFormat,
100 && mInternalFormat == internalFormat
107 mInternalFormat = internalFormat;
109 notifySizeChanged(mWidth * mHeight * bytesPerPixel(internalFormat));
120 void Texture::upload(GLint internalFormat, uint32_t width, uint32_t height,
127 bool needsAlloc = updateLayout(width, height, internalFormat, format, GL_TEXTURE_2D);
135 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, mWidth, mHeight, 0,
138 glTexSubImage2D(GL_TEXTURE_2D, 0, internalFormat, mWidth, mHeight, 0,
155 static void uploadToTexture(bool resize, GLint internalFormat, GLenum format, GLenum type,
166 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, width, height, 0, format, type, data);
190 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, width, height, 0, format, type, temp);
300 GLint internalFormat, format, type;
302 needSRGB && hasLinearBlending, &internalFormat, &format, &type);
307 && internalFormat != GL_RGBA16F;
310 if (internalFormat == GL_RGBA16F) {
318 if (!mIsLinear && internalFormat != GL_ALPHA && !rgba16fNeedsConversion) {
341 if (needSRGB && internalFormat == GL_RGBA
343 internalFormat = GL_SRGB8_ALPHA8;
351 needsAlloc |= updateLayout(bitmap.width(), bitmap.height(), internalFormat, format, target);
362 uploadToTexture(needsAlloc, internalFormat, format, type, rgbaBitmap.rowBytesAsPixels(),
368 uploadToTexture(needsAlloc, internalFormat, format, type, bitmap.rowBytesAsPixels(),
386 GLint internalFormat, GLint format, GLenum target) {
391 mInternalFormat = internalFormat;