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

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

Issue 1272153004: Add glCompressedCopySubTextureCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: xoffset and yoffset should be validated against destination texture 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
« no previous file with comments | « no previous file | gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Name 1 Name
2 2
3 CHROMIUM_copy_compressed_texture 3 CHROMIUM_copy_compressed_texture
4 4
5 Name Strings 5 Name Strings
6 6
7 GL_CHROMIUM_copy_compressed_texture 7 GL_CHROMIUM_copy_compressed_texture
8 8
9 Version 9 Version
10 10
11 Last Modifed Date: Jun 15, 2015 11 Last Modifed Date: August 5, 2015
12 12
13 Dependencies 13 Dependencies
14 14
15 OpenGL ES 2.0 is required. 15 OpenGL ES 2.0 is required.
16 16
17 GL_AMD_compressed_ATC_texture, GL_ATI_texture_compression_atitc, 17 GL_AMD_compressed_ATC_texture, GL_ATI_texture_compression_atitc,
18 GL_EXT_texture_compression_dxt1, GL_ANGLE_texture_compression_dxt5, 18 GL_EXT_texture_compression_dxt1, GL_ANGLE_texture_compression_dxt5,
19 GL_EXT_texture_compression_s3tc and GL_OES_compressed_ETC1_RGB8_texture 19 GL_EXT_texture_compression_s3tc and GL_OES_compressed_ETC1_RGB8_texture
20 affects the definition of this extension. 20 affects the definition of this extension.
21 21
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 INVALID_OPERATION is generated if destination texture is immutable. 64 INVALID_OPERATION is generated if destination texture is immutable.
65 65
66 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture 66 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture
67 objects. 67 objects.
68 68
69 INVALID_VALUE is generated if textures corresponding to <dest_id> have not 69 INVALID_VALUE is generated if textures corresponding to <dest_id> have not
70 been bound as GL_TEXTURE_2D object. 70 been bound as GL_TEXTURE_2D object.
71 71
72 INVALID_VALUE is generated if level 0 of the source texture is not defined. 72 INVALID_VALUE is generated if level 0 of the source texture is not defined.
73 73
74 The command
75
76 void glCompressedCopySubTextureCHROMIUM (GLenum target,
77 GLenum source_id,
78 GLenum dest_id,
79 GLint xoffset, GLint yoffset,
80 GLint x, GLint y,
81 GLsizei width, GLsizei height)
82
83 Copies the sub contents of texture referred to by <source_id> to <dest_id>
84 texture without redefining <dest_id> texture.
85
86 <target> uses the same parameters as TexImage2D.
87
88 <xoffset> and <yoffset> specify a texel offset in the x and y direction
89 respectively within the destination texture.
90
91 <x> and <y> specify specify a texel offset in the x and y direction
reveman 2015/08/10 16:00:46 nit: s/specify specify/specify/
92 respectively within the source texture.
93
94 <width> specifies the width of the texture subimage.
95
96 <height> specifies the width of the texture subimage.
97
98 INVALID_OPERATION is generated if internal format of source texture is not
99 one of the following: GL_ATC_RGB_AMD, GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD,
100 GL_COMPRESSED_RGB_S3TC_DXT1_EXT, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT,
101 GL_ETC1_RGB8_OES
102
103 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D.
104
105 INVALID_OPERATION is generated if the destination texture has not been
106 defined.
107
108 INVALID_VALUE is generated if level 0 of the source texture or
109 the destination texture is not defined.
110
111 INVALID_VALUE is generated if <xoffset> < 0 , or <yoffset> < 0.
112
113 INVALID_VALUE is generated if (<xoffset> + <width>) > dest_width,
114 or (<yoffset> + <height>) > dest_height.
115
74 Errors 116 Errors
75 117
76 None. 118 None.
77 119
78 New Tokens 120 New Tokens
79 121
80 None. 122 None.
81 123
82 New State 124 New State
83 125
84 None. 126 None.
85 127
86 Revision History 128 Revision History
87 129
88 15/6/2015 Documented the extension. 130 15/6/2015 Documented the extension.
131 5/8/2015 Added glCompressedCopySubTextureCHROMIUM.
OLDNEW
« no previous file with comments | « no previous file | gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698