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

Side by Side Diff: command_buffer/common/cross/resource.h

Issue 147237: Adding GetStreamInfo functionality (and passing corresponding unit test). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // buffer. 127 // buffer.
128 Uint32 semantic_size; // the size of the parameter semantic, including 128 Uint32 semantic_size; // the size of the parameter semantic, including
129 // the terminating nul character. Will always be 129 // the terminating nul character. Will always be
130 // set even if the semantic doesn't fit into the 130 // set even if the semantic doesn't fit into the
131 // buffer. 131 // buffer.
132 DataType data_type; // the data type of the parameter. 132 DataType data_type; // the data type of the parameter.
133 Uint32 data_size; // the size of the parameter data, in bytes. 133 Uint32 data_size; // the size of the parameter data, in bytes.
134 }; 134 };
135 } // namespace effect_param 135 } // namespace effect_param
136 136
137 namespace effect_stream {
138 struct Desc {
139 Uint32 semantic; // the semantic type
140 Uint32 semantic_index;
141 };
142 } // namespace effect_stream
143
137 namespace texture { 144 namespace texture {
138 // Texture flags. 145 // Texture flags.
139 enum Flags { 146 enum Flags {
140 DYNAMIC = 0x01, // This texture is dynamic and is expected to have 147 DYNAMIC = 0x01, // This texture is dynamic and is expected to have
141 // its data updated often. 148 // its data updated often.
142 }; 149 };
143 150
144 // Texel formats. 151 // Texel formats.
145 enum Format { 152 enum Format {
146 XRGB8, 153 XRGB8,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 POINT, 207 POINT,
201 LINEAR, 208 LINEAR,
202 NUM_FILTERING_MODE 209 NUM_FILTERING_MODE
203 }; 210 };
204 } // namespace sampler 211 } // namespace sampler
205 212
206 } // namespace command_buffer 213 } // namespace command_buffer
207 } // namespace o3d 214 } // namespace o3d
208 215
209 #endif // O3D_COMMAND_BUFFER_COMMON_CROSS_RESOURCE_H__ 216 #endif // O3D_COMMAND_BUFFER_COMMON_CROSS_RESOURCE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698