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

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

Issue 1275773003: gpu: support GL_TEXTURE_CUBE_MAP destination target to Copy(Sub)TextureCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build Created 5 years, 4 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
1 Name 1 Name
2 2
3 CHROMIUM_copy_texture 3 CHROMIUM_copy_texture
4 4
5 Name Strings 5 Name Strings
6 6
7 GL_CHROMIUM_copy_texture 7 GL_CHROMIUM_copy_texture
8 8
9 Version 9 Version
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 If <unpack_premultiply_alpha> and <unpack_unmultiply_alpha> are true, 75 If <unpack_premultiply_alpha> and <unpack_unmultiply_alpha> are true,
76 no alpha processing occurs. This is the equivalent of having neither flag 76 no alpha processing occurs. This is the equivalent of having neither flag
77 set. 77 set.
78 78
79 INVALID_OPERATION is generated if <internal_format> is not one of the valid formats 79 INVALID_OPERATION is generated if <internal_format> is not one of the valid formats
80 described above. 80 described above.
81 81
82 INVALID_OPERATION is generated if the internal format of <source_id> is not one of 82 INVALID_OPERATION is generated if the internal format of <source_id> is not one of
83 formats from the table above. 83 formats from the table above.
84 84
85 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D. 85 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D,
86 GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X,
87 GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y,
88 GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z.
86 89
87 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture 90 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture
88 objects. 91 objects.
89 92
90 INVALID_VALUE is generated if textures corresponding to <dest_id> have not 93 INVALID_VALUE is generated if textures corresponding to <dest_id> have not
91 been bound as GL_TEXTURE_2D object. 94 been bound as GL_TEXTURE_2D object.
piman 2015/08/06 20:43:23 Please update here (allow for GL_TEXTURE_CUBE_MAP
dshwang 2015/08/10 08:04:17 Done.
92 95
93 INVALID_VALUE is generated if textures corresponding to <source_id> have not 96 INVALID_VALUE is generated if textures corresponding to <source_id> have not
94 been bound as GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE_ARB or 97 been bound as GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE_ARB or
95 GL_TEXTURE_EXTERNAL_OES objects. 98 GL_TEXTURE_EXTERNAL_OES objects.
96 99
97 INVALID_VALUE is generated if level 0 of the source texture is not defined. 100 INVALID_VALUE is generated if level 0 of the source texture is not defined.
98 101
99 The command 102 The command
100 103
101 void glCopySubTextureCHROMIUM (GLenum target, GLenum source_id, 104 void glCopySubTextureCHROMIUM (GLenum target, GLenum source_id,
(...skipping 17 matching lines...) Expand all
119 <x> and <y> specify specify a texel offset in the x and y direction 122 <x> and <y> specify specify a texel offset in the x and y direction
120 respectively within the source texture. 123 respectively within the source texture.
121 124
122 <width> specifies the width of the texture subimage. 125 <width> specifies the width of the texture subimage.
123 126
124 <height> specifies the width of the texture subimage. 127 <height> specifies the width of the texture subimage.
125 128
126 INVALID_OPERATION is generated if source internal_format and destination 129 INVALID_OPERATION is generated if source internal_format and destination
127 internal_format are not one of the valid formats described above. 130 internal_format are not one of the valid formats described above.
128 131
129 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D. 132 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D,
133 GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X,
134 GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y,
135 GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z.
130 136
131 INVALID_OPERATION is generated if the destination texture has not been 137 INVALID_OPERATION is generated if the destination texture has not been
132 defined. 138 defined.
133 139
134 INVALID_VALUE is generated if level 0 of the source texture or 140 INVALID_VALUE is generated if level 0 of the source texture or
135 the destination texture is not defined. 141 the destination texture is not defined.
136 142
137 INVALID_VALUE is generated if <xoffset> < 0 , or <yoffset> < 0. 143 INVALID_VALUE is generated if <xoffset> < 0 , or <yoffset> < 0.
138 144
139 INVALID_VALUE is generated if (<xoffset> + source_width) > dest_width, 145 INVALID_VALUE is generated if (<xoffset> + source_width) > dest_width,
(...skipping 16 matching lines...) Expand all
156 162
157 None. 163 None.
158 164
159 Revision History 165 Revision History
160 166
161 8/1/2011 Documented the extension 167 8/1/2011 Documented the extension
162 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM() 168 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM()
163 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target 169 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target
164 19/6/2015 Add arguments unpack_flip_y, unpack_premultiply_alpha, and 170 19/6/2015 Add arguments unpack_flip_y, unpack_premultiply_alpha, and
165 unpack_unmultiply_alpha to both commands. 171 unpack_unmultiply_alpha to both commands.
172 6/8/2015 support GL_TEXTURE_CUBE_MAP destination target.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698