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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_format.h

Issue 921023002: Add glGetActiveUniformsiv to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@uniform
Patch Set: Created 5 years, 10 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
OLDNEW
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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 uint32_t name_offset; // offset from Header to start of name. 179 uint32_t name_offset; // offset from Header to start of name.
180 uint32_t name_length; // including the null terminator. 180 uint32_t name_length; // including the null terminator.
181 }; 181 };
182 182
183 // The format of the bucket filled out by GetTransformFeedbackVaryingsCHROMIUM 183 // The format of the bucket filled out by GetTransformFeedbackVaryingsCHROMIUM
184 struct TransformFeedbackVaryingsHeader { 184 struct TransformFeedbackVaryingsHeader {
185 uint32_t num_transform_feedback_varyings; 185 uint32_t num_transform_feedback_varyings;
186 // TransformFeedbackVaryingInfo varyings[num_transform_feedback_varyings]; 186 // TransformFeedbackVaryingInfo varyings[num_transform_feedback_varyings];
187 }; 187 };
188 188
189 // Parameters of a uniform that can be queried through glGetActiveUniformsiv,
190 // but not through glGetActiveUniform.
191 struct UniformES3Info {
192 int32_t block_index;
193 int32_t offset;
194 int32_t array_stride;
195 int32_t matrix_stride;
196 int32_t is_row_major;
197 };
198
199 // The format of the bucket filled out by GetUniformsivES3CHROMIUM
200 struct UniformsES3Header {
201 uint32_t num_uniforms;
202 // UniformES3Info uniforms[num_uniforms];
203 };
204
189 // The format of QuerySync used by EXT_occlusion_query_boolean 205 // The format of QuerySync used by EXT_occlusion_query_boolean
190 struct QuerySync { 206 struct QuerySync {
191 void Reset() { 207 void Reset() {
192 process_count = 0; 208 process_count = 0;
193 result = 0; 209 result = 0;
194 } 210 }
195 211
196 base::subtle::Atomic32 process_count; 212 base::subtle::Atomic32 process_count;
197 uint64_t result; 213 uint64_t result;
198 }; 214 };
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 "offset of CreateAndConsumeTextureCHROMIUMImmediate.client_id should be 8"); 355 "offset of CreateAndConsumeTextureCHROMIUMImmediate.client_id should be 8");
340 356
341 357
342 #pragma pack(pop) 358 #pragma pack(pop)
343 359
344 } // namespace cmd 360 } // namespace cmd
345 } // namespace gles2 361 } // namespace gles2
346 } // namespace gpu 362 } // namespace gpu
347 363
348 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ 364 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/cmd_buffer_functions.txt ('k') | gpu/command_buffer/common/gles2_cmd_format_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698