xref: /aosp_15_r20/external/angle/extensions/CHROMIUM_compressed_copy_texture.txt (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard WorkerName
2*8975f5c5SAndroid Build Coastguard Worker
3*8975f5c5SAndroid Build Coastguard Worker    CHROMIUM_copy_compressed_texture
4*8975f5c5SAndroid Build Coastguard Worker
5*8975f5c5SAndroid Build Coastguard WorkerName Strings
6*8975f5c5SAndroid Build Coastguard Worker
7*8975f5c5SAndroid Build Coastguard Worker    GL_CHROMIUM_copy_compressed_texture
8*8975f5c5SAndroid Build Coastguard Worker
9*8975f5c5SAndroid Build Coastguard WorkerVersion
10*8975f5c5SAndroid Build Coastguard Worker
11*8975f5c5SAndroid Build Coastguard Worker    Last Modifed Date: August 5, 2015
12*8975f5c5SAndroid Build Coastguard Worker
13*8975f5c5SAndroid Build Coastguard WorkerDependencies
14*8975f5c5SAndroid Build Coastguard Worker
15*8975f5c5SAndroid Build Coastguard Worker    OpenGL ES 2.0 is required.
16*8975f5c5SAndroid Build Coastguard Worker
17*8975f5c5SAndroid Build Coastguard Worker    GL_AMD_compressed_ATC_texture, GL_ATI_texture_compression_atitc,
18*8975f5c5SAndroid Build Coastguard Worker    GL_EXT_texture_compression_dxt1, GL_ANGLE_texture_compression_dxt5,
19*8975f5c5SAndroid Build Coastguard Worker    GL_EXT_texture_compression_s3tc and GL_OES_compressed_ETC1_RGB8_texture
20*8975f5c5SAndroid Build Coastguard Worker    affects the definition of this extension.
21*8975f5c5SAndroid Build Coastguard Worker
22*8975f5c5SAndroid Build Coastguard WorkerOverview
23*8975f5c5SAndroid Build Coastguard Worker
24*8975f5c5SAndroid Build Coastguard Worker    This extension provides functionality for copying compressed textures. It
25*8975f5c5SAndroid Build Coastguard Worker    adds a new function glCompressedCopyTextureCHROMIUM that works similarily
26*8975f5c5SAndroid Build Coastguard Worker    to glCopyTextureCHROMIUM, but for compressed textures.
27*8975f5c5SAndroid Build Coastguard Worker
28*8975f5c5SAndroid Build Coastguard Worker    Which compressed texture formats that this extension supports depends on
29*8975f5c5SAndroid Build Coastguard Worker    the supported texture compression formats of the host GPU.
30*8975f5c5SAndroid Build Coastguard Worker
31*8975f5c5SAndroid Build Coastguard WorkerIssues
32*8975f5c5SAndroid Build Coastguard Worker
33*8975f5c5SAndroid Build Coastguard Worker    glCompressedCopyTextureCHROMIUM will first try to copy into a compressed
34*8975f5c5SAndroid Build Coastguard Worker    texture of the same format as the source texture. If unsucessful, the
35*8975f5c5SAndroid Build Coastguard Worker    destination texture format will be changed to GL_RGBA and the texture will
36*8975f5c5SAndroid Build Coastguard Worker    be stored uncompressed.
37*8975f5c5SAndroid Build Coastguard Worker
38*8975f5c5SAndroid Build Coastguard WorkerNew Procedures and Functions
39*8975f5c5SAndroid Build Coastguard Worker
40*8975f5c5SAndroid Build Coastguard Worker    The command
41*8975f5c5SAndroid Build Coastguard Worker
42*8975f5c5SAndroid Build Coastguard Worker        void glCompressedCopyTextureCHROMIUM (GLuint source_id, GLuint dest_id)
43*8975f5c5SAndroid Build Coastguard Worker
44*8975f5c5SAndroid Build Coastguard Worker    Copies the contents of a compressed texture referred to by <source_id> to
45*8975f5c5SAndroid Build Coastguard Worker    <dest_id> texture.
46*8975f5c5SAndroid Build Coastguard Worker
47*8975f5c5SAndroid Build Coastguard Worker    Texture level 0 is copied from the source image to level 0 of the
48*8975f5c5SAndroid Build Coastguard Worker    destination texture.
49*8975f5c5SAndroid Build Coastguard Worker
50*8975f5c5SAndroid Build Coastguard Worker    The internal format of the source texture must be one of the following
51*8975f5c5SAndroid Build Coastguard Worker    symbolic constants: GL_ATC_RGB_AMD, GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD,
52*8975f5c5SAndroid Build Coastguard Worker    GL_COMPRESSED_RGB_S3TC_DXT1_EXT, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT,
53*8975f5c5SAndroid Build Coastguard Worker    GL_ETC1_RGB8_OES
54*8975f5c5SAndroid Build Coastguard Worker
55*8975f5c5SAndroid Build Coastguard Worker    The destination texture will be created or replaced with the same internal
56*8975f5c5SAndroid Build Coastguard Worker    format as the source texture.
57*8975f5c5SAndroid Build Coastguard Worker
58*8975f5c5SAndroid Build Coastguard Worker    INVALID_OPERATION is generated if internal format of source texture is not
59*8975f5c5SAndroid Build Coastguard Worker    one of the valid formats described above.
60*8975f5c5SAndroid Build Coastguard Worker
61*8975f5c5SAndroid Build Coastguard Worker    INVALID_OPERATION is generated if destination texture is immutable.
62*8975f5c5SAndroid Build Coastguard Worker
63*8975f5c5SAndroid Build Coastguard Worker    INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture
64*8975f5c5SAndroid Build Coastguard Worker    objects.
65*8975f5c5SAndroid Build Coastguard Worker
66*8975f5c5SAndroid Build Coastguard Worker    INVALID_VALUE is generated if textures corresponding to <dest_id> have not
67*8975f5c5SAndroid Build Coastguard Worker    been bound as GL_TEXTURE_2D object.
68*8975f5c5SAndroid Build Coastguard Worker
69*8975f5c5SAndroid Build Coastguard Worker    INVALID_VALUE is generated if level 0 of the source texture is not defined.
70*8975f5c5SAndroid Build Coastguard Worker
71*8975f5c5SAndroid Build Coastguard WorkerErrors
72*8975f5c5SAndroid Build Coastguard Worker
73*8975f5c5SAndroid Build Coastguard Worker    None.
74*8975f5c5SAndroid Build Coastguard Worker
75*8975f5c5SAndroid Build Coastguard WorkerNew Tokens
76*8975f5c5SAndroid Build Coastguard Worker
77*8975f5c5SAndroid Build Coastguard Worker    None.
78*8975f5c5SAndroid Build Coastguard Worker
79*8975f5c5SAndroid Build Coastguard WorkerNew State
80*8975f5c5SAndroid Build Coastguard Worker
81*8975f5c5SAndroid Build Coastguard Worker    None.
82*8975f5c5SAndroid Build Coastguard Worker
83*8975f5c5SAndroid Build Coastguard WorkerRevision History
84*8975f5c5SAndroid Build Coastguard Worker
85*8975f5c5SAndroid Build Coastguard Worker    15/6/2015    Documented the extension.
86*8975f5c5SAndroid Build Coastguard Worker    5/8/2015     Added glCompressedCopySubTextureCHROMIUM.
87*8975f5c5SAndroid Build Coastguard Worker    1/6/2016     Remove glCompressedCopySubTextureCHROMIUM.
88*8975f5c5SAndroid Build Coastguard Worker    1/8/2016     Remove <target> argument.
89