Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_compressed_copy_texture.txt

Issue 1119723003: Add glCopyCompressedTextureCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address issues Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 glCompressedCopyTextureCHROMIUM that works similarily
26 to glCopyTextureCHROMIUM, but for compressed textures.
27
28 Which compressed texture formats that this extension supports depends on
29 the supported texture compression formats of the host GPU.
30
31 Issues
32
33 glCompressedCopyTextureCHROMIUM will first try to copy into a compressed
34 texture of the same format as the source texture. If unsucessful, the
35 destination texture format will be changed to GL_RGBA and the texture will
36 be stored uncompressed.
37
38 New Procedures and Functions
39
40 The command
41
42 void glCompressedCopyTextureCHROMIUM (GLenum target, GLenum source_id,
43 GLenum dest_id)
44
45 Copies the contents of a compressed texture referred to by <source_id> to
46 <dest_id> texture.
47
48 Texture level 0 is copied from the source image to level 0 of the
49 destination texture.
50
51 The internal format of the source and destination texture must be
52 compressed, and they must match. The format must be one of the following
piman 2015/06/12 19:50:29 "The internal format of the source and destination
christiank 2015/06/15 09:42:41 Ah yes you're right. I have now rephrased the text
53 symbolic constants: GL_ATC_RGB_AMD,
54 GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD, GL_COMPRESSED_RGB_S3TC_DXT1_EXT,
55 GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, GL_ETC1_RGB8_OES
56
57 <target> uses the same parameters as TexImage2D.
58
59 INVALID_OPERATION is generated if internal format of source and destination
piman 2015/06/12 19:50:29 "source and destination" -> "source" per the above
christiank 2015/06/15 09:42:41 Done.
60 texture is not one of the valid formats described above.
61
62 INVALID_OPERATION is generated if internal format of source and destination
63 texture doesn't match.
piman 2015/06/12 19:50:29 Please add the INVALID_OPERATION error case if the
piman 2015/06/12 19:50:30 Remove, per the above.
christiank 2015/06/15 09:42:42 Done.
64
65 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture
66 objects.
67
68 INVALID_VALUE is generated if textures corresponding to <dest_id> have not
69 been bound as GL_TEXTURE_2D object.
70
71 INVALID_VALUE is generated if level 0 of the source texture is not defined.
72
73 Errors
74
75 None.
76
77 New Tokens
78
79 None.
80
81 New State
82
83 None.
84
85 Revision History
86
87 28/5/2015 Documented the extension.
OLDNEW
« no previous file with comments | « gpu/BUILD.gn ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | gpu/GLES2/gl2extchromium.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698