 Chromium Code Reviews
 Chromium Code Reviews Issue 1119723003:
  Add glCopyCompressedTextureCHROMIUM  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 1119723003:
  Add glCopyCompressedTextureCHROMIUM  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| OLD | NEW | 
|---|---|
| (Empty) | |
| 1 Name | |
| 2 | |
| 3 CHROMIUM_copy_compressed_texture | |
| 4 | |
| 5 Name Strings | |
| 6 | |
| 7 GL_CHROMIUM_copy_compressed_texture | |
| 8 | |
| 9 Version | |
| 10 | |
| 11 Last Modifed Date: May 28, 2015 | |
| 12 | |
| 13 Dependencies | |
| 14 | |
| 15 OpenGL ES 2.0 is required. | |
| 16 | |
| 17 GL_AMD_compressed_ATC_texture, GL_ATI_texture_compression_atitc, | |
| 18 GL_EXT_texture_compression_dxt1, GL_ANGLE_texture_compression_dxt5, | |
| 19 GL_EXT_texture_compression_s3tc and GL_OES_compressed_ETC1_RGB8_texture | |
| 20 affects the definition of this extension. | |
| 21 | |
| 22 Overview | |
| 23 | |
| 24 This extension provides functionality for copying compressed textures. It | |
| 25 adds a new function glCopyCompressedTextureCHROMIUM that works similarily | |
| 26 to glCopyTexImage2D, but for compressed textures. | |
| 
piman
2015/05/28 20:34:27
You mean, similar to glCopyTextureCHROMIUM?
glCopy
 
christiank
2015/06/05 12:53:31
Yes, maybe that's a better reference. I was thinki
 | |
| 27 | |
| 28 This extension does not respect pixel-storage modifiers like | |
| 29 UNPACK_FLIP_Y_CHROMIUM, GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM and | |
| 30 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM. | |
| 
reveman
2015/05/28 14:06:48
think that's implicit by not mentioning them.
 
christiank
2015/06/05 12:53:31
Done.
 | |
| 31 | |
| 32 Which compressed texture formats that this extension supports depends on | |
| 33 the supported texture compression formats of the host GPU. | |
| 34 | |
| 35 Issues | |
| 36 | |
| 37 glCopyCompressedTextureCHROMIUM will first try to perform the copy using | |
| 38 the GLImage object. If that operation fails glCopyCompressedTextureCHROMIUM | |
| 39 will fallback to using glGetCompressedTexImage. | |
| 
reveman
2015/05/28 14:06:48
I think that's too implementation specific to be m
 
christiank
2015/06/05 12:53:31
Done.
 | |
| 40 | |
| 41 Depending on platform support, glGetCompressedTexImage may not be | |
| 42 available. In that case glCopyCompressedTextureCHROMIUM will return | |
| 43 INVALID_OPERATION. | |
| 
reveman
2015/05/28 14:06:48
Please make sure the requirements to always guaran
 
christiank
2015/05/28 14:40:29
Do you have any suggestion on how I can formally s
 
reveman
2015/05/28 16:33:08
I don't think we can have such a dependency. We ca
 
christiank
2015/06/05 12:53:31
This should now be addressed since the operation w
 | |
| 44 | |
| 45 New Procedures and Functions | |
| 46 | |
| 47 The command | |
| 48 | |
| 49 void glCopyCompressedTextureCHROMIUM (GLenum target, GLenum source_id, | |
| 50 GLenum dest_id, | |
| 51 GLint internal_format, | |
| 52 GLenum dest_type, | |
| 
piman
2015/05/28 20:34:27
What is dest_type? Compressed texture data doesn't
 
christiank
2015/06/05 12:53:31
It was included because I modeled this function of
 | |
| 53 GLsizei source_size) | |
| 
reveman
2015/05/28 14:06:48
glCompressedCopyTextureCHROMIUM? to match the Comp
 
christiank
2015/05/28 14:40:29
Ahh I see. Should I perhaps rename this document t
 
reveman
2015/05/28 16:33:08
Sounds good.
 
piman
2015/05/28 20:34:27
Similarly, I don't think there's a good argument f
 
christiank
2015/06/05 12:53:31
Alright, I'll try to get rid of the source_size pa
 | |
| 54 | |
| 55 Copies the contents of a compressed texture referred to by <source_id> to | |
| 56 <dest_id> texture. | |
| 57 | |
| 58 Texture level 0 is copied from the source image to level 0 of the | |
| 59 destination texture. | |
| 60 | |
| 61 The internal format of the source and destination texture must be | |
| 62 compressed, and they must match. The <internal_format> must be one of the | |
| 63 following symbolic constants: GL_ATC_RGB_AMD, | |
| 64 GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD, GL_COMPRESSED_RGB_S3TC_DXT1_EXT, | |
| 65 GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, GL_ETC1_RGB8_OES | |
| 66 | |
| 67 <target> uses the same parameters as TexImage2D. | |
| 68 | |
| 69 INVALID_OPERATION is generated if the current platform does not support | |
| 70 copying compressed textures. | |
| 
reveman
2015/05/28 14:06:48
I think that should be handled by the availability
 
christiank
2015/06/05 12:53:31
Done.
 | |
| 71 | |
| 72 INVALID_OPERATION is generated if <internal_format> is not one of the valid | |
| 73 formats described above. | |
| 74 | |
| 75 INVALID_OPERATION is generated if internal format of source and destination | |
| 76 texture doesn't match. | |
| 77 | |
| 78 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture | |
| 79 objects. | |
| 80 | |
| 81 INVALID_VALUE is generated if textures corresponding to <dest_id> have not | |
| 82 been bound as GL_TEXTURE_2D object. | |
| 83 | |
| 84 INVALID_VALUE is generated if level 0 of the source texture is not defined. | |
| 85 | |
| 86 Errors | |
| 87 | |
| 88 None. | |
| 89 | |
| 90 New Tokens | |
| 91 | |
| 92 None. | |
| 93 | |
| 94 New State | |
| 95 | |
| 96 None. | |
| 97 | |
| 98 Revision History | |
| 99 | |
| 100 28/5/2015 Documented the extension. | |
| OLD | NEW |