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

Unified 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, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/GLES2/gl2chromium_autogen.h » ('j') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2cf5b294f5df08e777926b04c9fc34794fa29e38
--- /dev/null
+++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_subscribe_uniform.txt
@@ -0,0 +1,74 @@
+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 when they call
+ glPopulateUniformSubscriptionCHROMIUM and on subsequent calls to
+ useProgram if the uniform state is dirty.
+
+ Decreases percieved latency for operations performed against these
+ uniforms.
+
+New Tokens
+
+ Accepted by the <target> parameter of SubscribeUniformChromium:
+
+ MOUSE_POSITION_CHROMIUM 0x924B
+
+New Procedures and Functions
+
+ The command
+
+ void glSubscribeUniformCHROMIUM (GLint location, GLenum target)
+
+ Associates an internal uniform with the uniform specified by 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 glUnsubscribeUniformCHROMIUM (GLint location)
+
+ Unsubscribed the uniform specified by location in the current bound
+ program.
+ <location> Is the location of the uniform they wish to unsubscribe
+ from in the currently bound program.
+
+ 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
« 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