diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-12 17:23:58 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-12 17:23:58 +0000 |
commit | b273e43cebe9f829f9e871bc27ddf5cea4feef28 (patch) | |
tree | 2db79f311c3f080d44dc1f99fc5548b4beaf6112 /gpu/command_buffer/docs | |
parent | d382b18cd1dafdadc6e55843e48cb78f0f99a1b9 (diff) | |
download | chromium_src-b273e43cebe9f829f9e871bc27ddf5cea4feef28.zip chromium_src-b273e43cebe9f829f9e871bc27ddf5cea4feef28.tar.gz chromium_src-b273e43cebe9f829f9e871bc27ddf5cea4feef28.tar.bz2 |
Adds stubs for glShaderBinary and glReleaseShaderCompiler.
Also handles certain GLES2 enums passed to glGetXXX that
have no corresponding OpenGL enums
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/1609016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44254 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/docs')
-rw-r--r-- | gpu/command_buffer/docs/gles2_cmd_format_docs.txt | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/gpu/command_buffer/docs/gles2_cmd_format_docs.txt b/gpu/command_buffer/docs/gles2_cmd_format_docs.txt index 15fafc4..8d1b360 100644 --- a/gpu/command_buffer/docs/gles2_cmd_format_docs.txt +++ b/gpu/command_buffer/docs/gles2_cmd_format_docs.txt @@ -29,7 +29,7 @@ //! A 3rd way of passing data is through Buckets. Buckets are indentified by //! number. You create a bucket with the command SetBucketSize, you can then //! fill the bucket with SetBucketData commands. Once you've sent all your -//! data you can then issue a command that uses the bucket and takes a bucket +//! data you can then issue a command that uses the bucket and takes a bucket //! id for which bucket to use. //! //! Receiving data works similarly. Some commands return their data to shared @@ -74,7 +74,7 @@ struct CommandHeader { //! Used for some glGetXXX commands that return a result through a pointer. We //! need to know if the command succeeded or not and the size of the result. If -//! the command failed its result size will 0. You must set the size to 0 +//! the command failed its result size will 0. You must set the size to 0 //! before issuing the command. //! //! To retreive the data you might do something like this pseudo code: @@ -1429,6 +1429,13 @@ struct ReadPixels { uint32 result_shm_offset; //!< uint32 }; +//! Command that corresponds to glReleaseShaderCompiler. +struct ReleaseShaderCompiler { + static const CommandId kCmdId = 437; + + CommandHeader header; +}; + //! Command that corresponds to glRenderbufferStorage. struct RenderbufferStorage { static const CommandId kCmdId = 364; @@ -1460,6 +1467,20 @@ struct Scissor { int32 height; //!< GLsizei }; +//! Command that corresponds to glShaderBinary. +struct ShaderBinary { + static const CommandId kCmdId = 436; + + CommandHeader header; + int32 n; //!< GLsizei + uint32 shaders_shm_id; //!< uint32 + uint32 shaders_shm_offset; //!< uint32 + uint32 binaryformat; //!< GLenum + uint32 binary_shm_id; //!< uint32 + uint32 binary_shm_offset; //!< uint32 + int32 length; //!< GLsizei +}; + //! Command that corresponds to glShaderSource. struct ShaderSource { static const CommandId kCmdId = 367; |