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

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

Issue 2443023002: gpu: Add CHROMIUM_copy_image extension.
Patch Set: rebase Created 4 years, 1 month 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 | « cc/test/test_web_graphics_context_3d.h ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Name
2
3 CHROMIUM_copy_image
4
5 Name Strings
6
7 GL_CHROMIUM_copy_image
8
9 Version
10
11 Last Modified Date: October 9, 2016
12
13 Dependencies
14
15 OpenGL ES 2.0 is required.
16
17 Requires the CHROMIUM_image extension.
18
19 Requires the CHROMIUM_fence extension.
20
21 Overview
22
23 This extension provides a mechanism for copying images to texture targets.
24
25 Issues
26
27 None
28
29 New Tokens
30
31 None
32
33 New Procedures and Functions
34
35 The command
36
37 void CopyImageSubData(GLint source_image_id,
38 GLint dest_texture_id,
39 GLint xoffset, GLint yoffset,
40 GLint x, GLint y,
41 GLsizei width, GLsizei height,
42 GLint in_fence_id, GLint out_fence_id);
43
44 may be used to copy a region of image to a texture object.
45
46 CopyImageSubData does not perform general-purpose conversions
47 such as scaling, resizing, blending, color-space, or format
48 conversions. It should be considered to operate in a manner
49 similar to a CPU memcpy.
50
51 If <in_fence_id> is non-zero then the copy operation is deferred
52 until the condition of the sync object referenced by
53 <in_fence_id> is satisfied. If <out_fence_id> is non-zero then
54 the sync object referenced by <out_fence_id> will be signaled
55 when copy operation has completed.
56
57 <xoffset> and <yoffset> specify a texel offset in the x and y
58 direction respectively within the destination texture.
59
60 <x> and <y> specify an offset in the x and y direction
61 respectively within the source image.
62
63 <width> specifies the width of the subimage.
64
65 <height> specifies the width of the subimage.
66
67 INVALID_OPERATION is generated if <image_id> is not a valid image id.
68
69 INVALID_OPERATION is generated if image format and destination
70 Internal format are not one of the valid formats described above.
71
72 INVALID_OPERATION is generated if the destination texture has not been
73 defined.
74
75 INVALID_VALUE is generated if <dest_texture_id> texture is not defined.
76
77 INVALID_VALUE is generated if <dest_texture_id> texture is not bound as
78 GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_ARB.
79
80 INVALID_VALUE is generated if <xoffset> < 0 , or <yoffset> < 0.
81
82 INVALID_VALUE is generated if (<xoffset> + <width>) > dest_width,
83 or (<yoffset> + <height>) > dest_height.
84
85
86 Errors
87
88 None.
89
90 New State
91
92 None.
93
94 Revision History
95
96 10/9/2016 Documented the extension
OLDNEW
« no previous file with comments | « cc/test/test_web_graphics_context_3d.h ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698