OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file defines the GLES2 command buffer commands. | 5 // This file defines the GLES2 command buffer commands. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
9 | 9 |
10 | 10 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 // GetTransformFeedbackVaringCHROMIUM. | 174 // GetTransformFeedbackVaringCHROMIUM. |
175 struct TransformFeedbackVaryingInfo { | 175 struct TransformFeedbackVaryingInfo { |
176 uint32_t size; | 176 uint32_t size; |
177 uint32_t type; | 177 uint32_t type; |
178 uint32_t name_offset; // offset from Header to start of name. | 178 uint32_t name_offset; // offset from Header to start of name. |
179 uint32_t name_length; // including the null terminator. | 179 uint32_t name_length; // including the null terminator. |
180 }; | 180 }; |
181 | 181 |
182 // The format of the bucket filled out by GetTransformFeedbackVaryingsCHROMIUM | 182 // The format of the bucket filled out by GetTransformFeedbackVaryingsCHROMIUM |
183 struct TransformFeedbackVaryingsHeader { | 183 struct TransformFeedbackVaryingsHeader { |
| 184 uint32_t transform_feedback_buffer_mode; |
184 uint32_t num_transform_feedback_varyings; | 185 uint32_t num_transform_feedback_varyings; |
185 // TransformFeedbackVaryingInfo varyings[num_transform_feedback_varyings]; | 186 // TransformFeedbackVaryingInfo varyings[num_transform_feedback_varyings]; |
186 }; | 187 }; |
187 | 188 |
188 // Parameters of a uniform that can be queried through glGetActiveUniformsiv, | 189 // Parameters of a uniform that can be queried through glGetActiveUniformsiv, |
189 // but not through glGetActiveUniform. | 190 // but not through glGetActiveUniform. |
190 struct UniformES3Info { | 191 struct UniformES3Info { |
191 int32_t block_index; | 192 int32_t block_index; |
192 int32_t offset; | 193 int32_t offset; |
193 int32_t array_stride; | 194 int32_t array_stride; |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 "offset of CreateAndConsumeTextureCHROMIUMImmediate.client_id should be 8"); | 372 "offset of CreateAndConsumeTextureCHROMIUMImmediate.client_id should be 8"); |
372 | 373 |
373 | 374 |
374 #pragma pack(pop) | 375 #pragma pack(pop) |
375 | 376 |
376 } // namespace cmd | 377 } // namespace cmd |
377 } // namespace gles2 | 378 } // namespace gles2 |
378 } // namespace gpu | 379 } // namespace gpu |
379 | 380 |
380 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 381 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
OLD | NEW |