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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
140 // ProgramInput inputs[num_attribs + num_uniforms]; | 140 // ProgramInput inputs[num_attribs + num_uniforms]; |
141 }; | 141 }; |
142 | 142 |
143 // The format of QuerySync used by EXT_occlusion_query_boolean | 143 // The format of QuerySync used by EXT_occlusion_query_boolean |
144 struct QuerySync { | 144 struct QuerySync { |
145 void Reset() { | 145 void Reset() { |
146 process_count = 0; | 146 process_count = 0; |
147 result = 0; | 147 result = 0; |
148 } | 148 } |
149 | 149 |
150 uint32 process_count; | 150 int32 process_count; |
Dmitry Vyukov
2014/03/04 08:07:56
s/int32/Atomic32/
reveman
2014/03/06 21:05:42
Done.
| |
151 uint64 result; | 151 uint64 result; |
152 }; | 152 }; |
153 | 153 |
154 COMPILE_ASSERT(sizeof(ProgramInput) == 20, ProgramInput_size_not_20); | 154 COMPILE_ASSERT(sizeof(ProgramInput) == 20, ProgramInput_size_not_20); |
155 COMPILE_ASSERT(offsetof(ProgramInput, type) == 0, | 155 COMPILE_ASSERT(offsetof(ProgramInput, type) == 0, |
156 OffsetOf_ProgramInput_type_not_0); | 156 OffsetOf_ProgramInput_type_not_0); |
157 COMPILE_ASSERT(offsetof(ProgramInput, size) == 4, | 157 COMPILE_ASSERT(offsetof(ProgramInput, size) == 4, |
158 OffsetOf_ProgramInput_size_not_4); | 158 OffsetOf_ProgramInput_size_not_4); |
159 COMPILE_ASSERT(offsetof(ProgramInput, location_offset) == 8, | 159 COMPILE_ASSERT(offsetof(ProgramInput, location_offset) == 8, |
160 OffsetOf_ProgramInput_location_offset_not_8); | 160 OffsetOf_ProgramInput_location_offset_not_8); |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
439 CommandHeader header; | 439 CommandHeader header; |
440 }; | 440 }; |
441 | 441 |
442 #pragma pack(pop) | 442 #pragma pack(pop) |
443 | 443 |
444 } // namespace cmd | 444 } // namespace cmd |
445 } // namespace gles2 | 445 } // namespace gles2 |
446 } // namespace gpu | 446 } // namespace gpu |
447 | 447 |
448 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 448 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
OLD | NEW |