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

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

Issue 659903002: Add subscribeUniform extension pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: piman@ review + merge uniform_subscription_manager with program_manager Created 6 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
OLDNEW
(Empty)
1 Name
2
3 CHROMIUM_subscribe_uniform
4
5 Name Strings
6
7 CHROMIUM_subscribe_uniform
8
9 Version
10
11 Last Modifed Date: October 15, 2014
12
13 Dependencies
14
15 OpenGL ES 2.0 is required.
16
17 Overview
18
19 Allows clients to subscribe to a set of input uniforms which will be
20 populated in their shaders when they call
21 glPopulateUniformSubscriptionCHROMIUM and on subsequent calls to
22 useProgram if the uniform state is dirty.
23
24 Decreases percieved latency for operations performed against these
25 uniforms.
26
27 New Tokens
28
29 Accepted by the <target> parameter of SubscribeUniformChromium:
30
31 MOUSE_POSITION_CHROMIUM 0x924B
32
33 New Procedures and Functions
34
35 The command
36
37 void glSubscribeUniformCHROMIUM (GLint location, GLenum target)
38
39 Associates an internal uniform with the uniform specified by location
40 in the current bound program.
41 <location> Is the location of the uniform they wish to have populated
42 in the currently bound program.
43 <target> Is the uniform the client wants to have populated.
44
45 The command
46
47 void glUnsubscribeUniformCHROMIUM (GLint location)
48
49 Unsubscribed the uniform specified by location in the current bound
50 program.
51 <location> Is the location of the uniform they wish to unsubscribe
52 from in the currently bound program.
53
54 The command
55
56 void glPopulateUniformSubscriptionCHROMIUM ()
57
58 Activates the pending uniform state and updates the current program.
59 Subsequent calls to glUseProgram will use the updated uniform
60 state to populate their subscribed uniforms.
61 Clients should populate the uniform once per frame to maintain per
62 frame uniform consistency.
63
64 Errors
65
66 None.
67
68 New State
69
70 None.
71
72 Revision History
73
74 10/17/2014 Documented the extension
OLDNEW
« no previous file with comments | « no previous file | gpu/GLES2/gl2chromium_autogen.h » ('j') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698