Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 any time they bind a program or call | |
| 21 glPopulateUniformSubscriptionCHROMIUM. | |
| 22 Decreases percieved latency for operations performed against these | |
| 23 uniforms. | |
| 24 | |
| 25 New Tokens | |
| 26 | |
| 27 Accepted by the <target> parameter of SubscribeUniformChromium: | |
| 28 | |
| 29 MOUSE_POSITION 0x924B | |
|
piman
2014/10/21 20:00:40
nit: MOUSE_POSITION_CHROMIUM
orglofch
2014/10/22 23:10:21
Done.
| |
| 30 | |
| 31 New Procedures and Functions | |
| 32 | |
| 33 The command | |
| 34 | |
| 35 void glSubscribeUniformCHROMIUM (GLint location, GLenum target) | |
| 36 | |
| 37 Associates an internal uniform with the uniform specified be location | |
| 38 in the current bound program. | |
| 39 <location> Is the location of the uniform they wish to have populated | |
| 40 in the currently bound program. | |
| 41 <target> Is the uniform the client wants to have populated. | |
| 42 | |
| 43 The command | |
| 44 | |
| 45 void glPopulateUniformSubscriptionCHROMIUM () | |
| 46 | |
| 47 Activates the pending uniform state and updates the current program. | |
| 48 Subsequent calls to glUseProgram will use the updated uniform | |
| 49 state to populate their subscribed uniforms. | |
| 50 Clients should populate the uniform once per frame to maintain per | |
| 51 frame uniform consistency. | |
| 52 | |
| 53 Errors | |
| 54 | |
| 55 None. | |
| 56 | |
| 57 New State | |
| 58 | |
| 59 None. | |
| 60 | |
| 61 Revision History | |
| 62 | |
| 63 10/17/2014 Documented the extension | |
| OLD | NEW |