Lines Matching defs: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,
123 bool needsAlloc = updateLayout(width, height, internalFormat, format, GL_TEXTURE_2D);
131 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, mWidth, mHeight, 0,
134 glTexSubImage2D(GL_TEXTURE_2D, 0, internalFormat, mWidth, mHeight, 0,
151 static void uploadToTexture(bool resize, GLint internalFormat, GLenum format, GLenum type,
162 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, width, height, 0, format, type, data);
186 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, width, height, 0, format, type, temp);
303 GLint internalFormat, format, type;
305 needSRGB && hasLinearBlending, &internalFormat, &format, &type);
310 && internalFormat != GL_RGBA16F;
316 if (internalFormat != GL_RGBA16F && internalFormat != GL_ALPHA && !rgba16fNeedsConversion) {
339 if (needSRGB && internalFormat == GL_RGBA
341 internalFormat = GL_SRGB8_ALPHA8;
349 needsAlloc |= updateLayout(bitmap.width(), bitmap.height(), internalFormat, format, target);
360 uploadToTexture(needsAlloc, internalFormat, format, type, rgbaBitmap.rowBytesAsPixels(),
366 uploadToTexture(needsAlloc, internalFormat, format, type, bitmap.rowBytesAsPixels(),
384 GLint internalFormat, GLint format, GLenum target) {
389 mInternalFormat = internalFormat;