diff options
author | petersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-26 02:39:33 +0000 |
---|---|---|
committer | petersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-26 02:39:33 +0000 |
commit | e73d4f7b1f150436dae5d589fd73c8d17c2dcb56 (patch) | |
tree | abdc8f4fba62512c716f14b67badd7993c0394fe /o3d/command_buffer/common/cross/resource.h | |
parent | a4369599f7e9c15c66bcf66cc1c9bd158666eea4 (diff) | |
download | chromium_src-e73d4f7b1f150436dae5d589fd73c8d17c2dcb56.zip chromium_src-e73d4f7b1f150436dae5d589fd73c8d17c2dcb56.tar.gz chromium_src-e73d4f7b1f150436dae5d589fd73c8d17c2dcb56.tar.bz2 |
Created new build target for opengl command buffer service, fixed various bugs in opengl command buffers service code until unit tests passed on windows.
Review URL: http://codereview.chromium.org/165279
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24415 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/command_buffer/common/cross/resource.h')
-rw-r--r-- | o3d/command_buffer/common/cross/resource.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/o3d/command_buffer/common/cross/resource.h b/o3d/command_buffer/common/cross/resource.h index 861d24f..215aa52 100644 --- a/o3d/command_buffer/common/cross/resource.h +++ b/o3d/command_buffer/common/cross/resource.h @@ -71,7 +71,8 @@ enum Flags { namespace vertex_struct { // Semantics for input data. enum Semantic { - POSITION, + UNKNOWN_SEMANTIC = -1, + POSITION = 0, NORMAL, COLOR, TEX_COORD, @@ -129,6 +130,8 @@ struct Desc { // the terminating nul character. Will always be // set even if the semantic doesn't fit into the // buffer. + Uint32 num_elements; // the number of entries if the parameter is an array + // 0 otherwise. DataType data_type; // the data type of the parameter. Uint32 data_size; // the size of the parameter data, in bytes. }; @@ -136,6 +139,12 @@ struct Desc { namespace effect_stream { struct Desc { + Desc() + : semantic(vertex_struct::UNKNOWN_SEMANTIC), + semantic_index(0) {} + Desc(Uint32 semantic, Uint32 semantic_index) + : semantic(semantic), + semantic_index(semantic_index) {} Uint32 semantic; // the semantic type Uint32 semantic_index; }; |