OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 15120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15131 } | 15131 } |
15132 | 15132 |
15133 gpu::CommandHeader header; | 15133 gpu::CommandHeader header; |
15134 }; | 15134 }; |
15135 | 15135 |
15136 static_assert(sizeof(BlendBarrierKHR) == 4, | 15136 static_assert(sizeof(BlendBarrierKHR) == 4, |
15137 "size of BlendBarrierKHR should be 4"); | 15137 "size of BlendBarrierKHR should be 4"); |
15138 static_assert(offsetof(BlendBarrierKHR, header) == 0, | 15138 static_assert(offsetof(BlendBarrierKHR, header) == 0, |
15139 "offset of BlendBarrierKHR header should be 0"); | 15139 "offset of BlendBarrierKHR header should be 0"); |
15140 | 15140 |
| 15141 struct BindFragDataLocationIndexedEXTBucket { |
| 15142 typedef BindFragDataLocationIndexedEXTBucket ValueType; |
| 15143 static const CommandId kCmdId = kBindFragDataLocationIndexedEXTBucket; |
| 15144 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15145 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15146 |
| 15147 static uint32_t ComputeSize() { |
| 15148 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15149 } |
| 15150 |
| 15151 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15152 |
| 15153 void Init(GLuint _program, |
| 15154 GLuint _colorNumber, |
| 15155 GLuint _index, |
| 15156 uint32_t _name_bucket_id) { |
| 15157 SetHeader(); |
| 15158 program = _program; |
| 15159 colorNumber = _colorNumber; |
| 15160 index = _index; |
| 15161 name_bucket_id = _name_bucket_id; |
| 15162 } |
| 15163 |
| 15164 void* Set(void* cmd, |
| 15165 GLuint _program, |
| 15166 GLuint _colorNumber, |
| 15167 GLuint _index, |
| 15168 uint32_t _name_bucket_id) { |
| 15169 static_cast<ValueType*>(cmd) |
| 15170 ->Init(_program, _colorNumber, _index, _name_bucket_id); |
| 15171 return NextCmdAddress<ValueType>(cmd); |
| 15172 } |
| 15173 |
| 15174 gpu::CommandHeader header; |
| 15175 uint32_t program; |
| 15176 uint32_t colorNumber; |
| 15177 uint32_t index; |
| 15178 uint32_t name_bucket_id; |
| 15179 }; |
| 15180 |
| 15181 static_assert(sizeof(BindFragDataLocationIndexedEXTBucket) == 20, |
| 15182 "size of BindFragDataLocationIndexedEXTBucket should be 20"); |
| 15183 static_assert( |
| 15184 offsetof(BindFragDataLocationIndexedEXTBucket, header) == 0, |
| 15185 "offset of BindFragDataLocationIndexedEXTBucket header should be 0"); |
| 15186 static_assert( |
| 15187 offsetof(BindFragDataLocationIndexedEXTBucket, program) == 4, |
| 15188 "offset of BindFragDataLocationIndexedEXTBucket program should be 4"); |
| 15189 static_assert( |
| 15190 offsetof(BindFragDataLocationIndexedEXTBucket, colorNumber) == 8, |
| 15191 "offset of BindFragDataLocationIndexedEXTBucket colorNumber should be 8"); |
| 15192 static_assert( |
| 15193 offsetof(BindFragDataLocationIndexedEXTBucket, index) == 12, |
| 15194 "offset of BindFragDataLocationIndexedEXTBucket index should be 12"); |
| 15195 static_assert(offsetof(BindFragDataLocationIndexedEXTBucket, name_bucket_id) == |
| 15196 16, |
| 15197 "offset of BindFragDataLocationIndexedEXTBucket name_bucket_id " |
| 15198 "should be 16"); |
| 15199 |
| 15200 struct BindFragDataLocationEXTBucket { |
| 15201 typedef BindFragDataLocationEXTBucket ValueType; |
| 15202 static const CommandId kCmdId = kBindFragDataLocationEXTBucket; |
| 15203 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15204 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15205 |
| 15206 static uint32_t ComputeSize() { |
| 15207 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15208 } |
| 15209 |
| 15210 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15211 |
| 15212 void Init(GLuint _program, GLuint _colorNumber, uint32_t _name_bucket_id) { |
| 15213 SetHeader(); |
| 15214 program = _program; |
| 15215 colorNumber = _colorNumber; |
| 15216 name_bucket_id = _name_bucket_id; |
| 15217 } |
| 15218 |
| 15219 void* Set(void* cmd, |
| 15220 GLuint _program, |
| 15221 GLuint _colorNumber, |
| 15222 uint32_t _name_bucket_id) { |
| 15223 static_cast<ValueType*>(cmd)->Init(_program, _colorNumber, _name_bucket_id); |
| 15224 return NextCmdAddress<ValueType>(cmd); |
| 15225 } |
| 15226 |
| 15227 gpu::CommandHeader header; |
| 15228 uint32_t program; |
| 15229 uint32_t colorNumber; |
| 15230 uint32_t name_bucket_id; |
| 15231 }; |
| 15232 |
| 15233 static_assert(sizeof(BindFragDataLocationEXTBucket) == 16, |
| 15234 "size of BindFragDataLocationEXTBucket should be 16"); |
| 15235 static_assert(offsetof(BindFragDataLocationEXTBucket, header) == 0, |
| 15236 "offset of BindFragDataLocationEXTBucket header should be 0"); |
| 15237 static_assert(offsetof(BindFragDataLocationEXTBucket, program) == 4, |
| 15238 "offset of BindFragDataLocationEXTBucket program should be 4"); |
| 15239 static_assert( |
| 15240 offsetof(BindFragDataLocationEXTBucket, colorNumber) == 8, |
| 15241 "offset of BindFragDataLocationEXTBucket colorNumber should be 8"); |
| 15242 static_assert( |
| 15243 offsetof(BindFragDataLocationEXTBucket, name_bucket_id) == 12, |
| 15244 "offset of BindFragDataLocationEXTBucket name_bucket_id should be 12"); |
| 15245 |
| 15246 struct GetFragDataIndexEXT { |
| 15247 typedef GetFragDataIndexEXT ValueType; |
| 15248 static const CommandId kCmdId = kGetFragDataIndexEXT; |
| 15249 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15250 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15251 |
| 15252 typedef GLint Result; |
| 15253 |
| 15254 static uint32_t ComputeSize() { |
| 15255 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15256 } |
| 15257 |
| 15258 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15259 |
| 15260 void Init(GLuint _program, |
| 15261 uint32_t _name_bucket_id, |
| 15262 uint32_t _index_shm_id, |
| 15263 uint32_t _index_shm_offset) { |
| 15264 SetHeader(); |
| 15265 program = _program; |
| 15266 name_bucket_id = _name_bucket_id; |
| 15267 index_shm_id = _index_shm_id; |
| 15268 index_shm_offset = _index_shm_offset; |
| 15269 } |
| 15270 |
| 15271 void* Set(void* cmd, |
| 15272 GLuint _program, |
| 15273 uint32_t _name_bucket_id, |
| 15274 uint32_t _index_shm_id, |
| 15275 uint32_t _index_shm_offset) { |
| 15276 static_cast<ValueType*>(cmd) |
| 15277 ->Init(_program, _name_bucket_id, _index_shm_id, _index_shm_offset); |
| 15278 return NextCmdAddress<ValueType>(cmd); |
| 15279 } |
| 15280 |
| 15281 gpu::CommandHeader header; |
| 15282 uint32_t program; |
| 15283 uint32_t name_bucket_id; |
| 15284 uint32_t index_shm_id; |
| 15285 uint32_t index_shm_offset; |
| 15286 }; |
| 15287 |
| 15288 static_assert(sizeof(GetFragDataIndexEXT) == 20, |
| 15289 "size of GetFragDataIndexEXT should be 20"); |
| 15290 static_assert(offsetof(GetFragDataIndexEXT, header) == 0, |
| 15291 "offset of GetFragDataIndexEXT header should be 0"); |
| 15292 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, |
| 15293 "offset of GetFragDataIndexEXT program should be 4"); |
| 15294 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, |
| 15295 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); |
| 15296 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, |
| 15297 "offset of GetFragDataIndexEXT index_shm_id should be 12"); |
| 15298 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, |
| 15299 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); |
| 15300 |
15141 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15301 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |