Chromium Code Reviews| Index: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_subscribe_uniform.txt |
| diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_subscribe_uniform.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_subscribe_uniform.txt |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..15489ca59689495ace113a54af332d7ec91119a7 |
| --- /dev/null |
| +++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_subscribe_uniform.txt |
| @@ -0,0 +1,63 @@ |
| +Name |
| + |
| + CHROMIUM_subscribe_uniform |
| + |
| +Name Strings |
| + |
| + CHROMIUM_subscribe_uniform |
| + |
| +Version |
| + |
| + Last Modifed Date: October 15, 2014 |
| + |
| +Dependencies |
| + |
| + OpenGL ES 2.0 is required. |
| + |
| +Overview |
| + |
| + Allows clients to subscribe to a set of input uniforms which will be |
| + populated in their shaders any time they bind a program or call |
| + glPopulateUniformSubscriptionCHROMIUM. |
| + Decreases percieved latency for operations performed against these |
| + uniforms. |
| + |
| +New Tokens |
| + |
| + Accepted by the <target> parameter of SubscribeUniformChromium: |
| + |
| + MOUSE_POSITION 0x924B |
|
piman
2014/10/21 20:00:40
nit: MOUSE_POSITION_CHROMIUM
orglofch
2014/10/22 23:10:21
Done.
|
| + |
| +New Procedures and Functions |
| + |
| + The command |
| + |
| + void glSubscribeUniformCHROMIUM (GLint location, GLenum target) |
| + |
| + Associates an internal uniform with the uniform specified be location |
| + in the current bound program. |
| + <location> Is the location of the uniform they wish to have populated |
| + in the currently bound program. |
| + <target> Is the uniform the client wants to have populated. |
| + |
| + The command |
| + |
| + void glPopulateUniformSubscriptionCHROMIUM () |
| + |
| + Activates the pending uniform state and updates the current program. |
| + Subsequent calls to glUseProgram will use the updated uniform |
| + state to populate their subscribed uniforms. |
| + Clients should populate the uniform once per frame to maintain per |
| + frame uniform consistency. |
| + |
| +Errors |
| + |
| + None. |
| + |
| +New State |
| + |
| + None. |
| + |
| +Revision History |
| + |
| + 10/17/2014 Documented the extension |