Path: blob/main_old/extensions/CHROMIUM_compressed_copy_texture.txt
1693 views
Name12CHROMIUM_copy_compressed_texture34Name Strings56GL_CHROMIUM_copy_compressed_texture78Version910Last Modifed Date: August 5, 20151112Dependencies1314OpenGL ES 2.0 is required.1516GL_AMD_compressed_ATC_texture, GL_ATI_texture_compression_atitc,17GL_EXT_texture_compression_dxt1, GL_ANGLE_texture_compression_dxt5,18GL_EXT_texture_compression_s3tc and GL_OES_compressed_ETC1_RGB8_texture19affects the definition of this extension.2021Overview2223This extension provides functionality for copying compressed textures. It24adds a new function glCompressedCopyTextureCHROMIUM that works similarily25to glCopyTextureCHROMIUM, but for compressed textures.2627Which compressed texture formats that this extension supports depends on28the supported texture compression formats of the host GPU.2930Issues3132glCompressedCopyTextureCHROMIUM will first try to copy into a compressed33texture of the same format as the source texture. If unsucessful, the34destination texture format will be changed to GL_RGBA and the texture will35be stored uncompressed.3637New Procedures and Functions3839The command4041void glCompressedCopyTextureCHROMIUM (GLuint source_id, GLuint dest_id)4243Copies the contents of a compressed texture referred to by <source_id> to44<dest_id> texture.4546Texture level 0 is copied from the source image to level 0 of the47destination texture.4849The internal format of the source texture must be one of the following50symbolic constants: GL_ATC_RGB_AMD, GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD,51GL_COMPRESSED_RGB_S3TC_DXT1_EXT, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT,52GL_ETC1_RGB8_OES5354The destination texture will be created or replaced with the same internal55format as the source texture.5657INVALID_OPERATION is generated if internal format of source texture is not58one of the valid formats described above.5960INVALID_OPERATION is generated if destination texture is immutable.6162INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture63objects.6465INVALID_VALUE is generated if textures corresponding to <dest_id> have not66been bound as GL_TEXTURE_2D object.6768INVALID_VALUE is generated if level 0 of the source texture is not defined.6970Errors7172None.7374New Tokens7576None.7778New State7980None.8182Revision History838415/6/2015 Documented the extension.855/8/2015 Added glCompressedCopySubTextureCHROMIUM.861/6/2016 Remove glCompressedCopySubTextureCHROMIUM.871/8/2016 Remove <target> argument.888990