OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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. DO NOT EDIT! | 5 // This file is auto-generated. DO NOT EDIT! |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
9 | 9 |
10 struct ActiveTexture { | 10 struct ActiveTexture { |
(...skipping 8303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8314 OffsetOf_Viewport_header_not_0); | 8314 OffsetOf_Viewport_header_not_0); |
8315 COMPILE_ASSERT(offsetof(Viewport, x) == 4, | 8315 COMPILE_ASSERT(offsetof(Viewport, x) == 4, |
8316 OffsetOf_Viewport_x_not_4); | 8316 OffsetOf_Viewport_x_not_4); |
8317 COMPILE_ASSERT(offsetof(Viewport, y) == 8, | 8317 COMPILE_ASSERT(offsetof(Viewport, y) == 8, |
8318 OffsetOf_Viewport_y_not_8); | 8318 OffsetOf_Viewport_y_not_8); |
8319 COMPILE_ASSERT(offsetof(Viewport, width) == 12, | 8319 COMPILE_ASSERT(offsetof(Viewport, width) == 12, |
8320 OffsetOf_Viewport_width_not_12); | 8320 OffsetOf_Viewport_width_not_12); |
8321 COMPILE_ASSERT(offsetof(Viewport, height) == 16, | 8321 COMPILE_ASSERT(offsetof(Viewport, height) == 16, |
8322 OffsetOf_Viewport_height_not_16); | 8322 OffsetOf_Viewport_height_not_16); |
8323 | 8323 |
| 8324 struct BlitFramebufferEXT { |
| 8325 typedef BlitFramebufferEXT ValueType; |
| 8326 static const CommandId kCmdId = kBlitFramebufferEXT; |
| 8327 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8328 |
| 8329 static uint32 ComputeSize() { |
| 8330 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 8331 } |
| 8332 |
| 8333 void SetHeader() { |
| 8334 header.SetCmd<ValueType>(); |
| 8335 } |
| 8336 |
| 8337 void Init( |
| 8338 GLint _srcX0, GLint _srcY0, GLint _srcX1, GLint _srcY1, GLint _dstX0, |
| 8339 GLint _dstY0, GLint _dstX1, GLint _dstY1, GLbitfield _mask, |
| 8340 GLenum _filter) { |
| 8341 SetHeader(); |
| 8342 srcX0 = _srcX0; |
| 8343 srcY0 = _srcY0; |
| 8344 srcX1 = _srcX1; |
| 8345 srcY1 = _srcY1; |
| 8346 dstX0 = _dstX0; |
| 8347 dstY0 = _dstY0; |
| 8348 dstX1 = _dstX1; |
| 8349 dstY1 = _dstY1; |
| 8350 mask = _mask; |
| 8351 filter = _filter; |
| 8352 } |
| 8353 |
| 8354 void* Set( |
| 8355 void* cmd, GLint _srcX0, GLint _srcY0, GLint _srcX1, GLint _srcY1, |
| 8356 GLint _dstX0, GLint _dstY0, GLint _dstX1, GLint _dstY1, GLbitfield _mask, |
| 8357 GLenum _filter) { |
| 8358 static_cast<ValueType*>( |
| 8359 cmd)->Init( |
| 8360 _srcX0, _srcY0, _srcX1, _srcY1, _dstX0, _dstY0, _dstX1, _dstY1, |
| 8361 _mask, _filter); |
| 8362 return NextCmdAddress<ValueType>(cmd); |
| 8363 } |
| 8364 |
| 8365 gpu::CommandHeader header; |
| 8366 int32 srcX0; |
| 8367 int32 srcY0; |
| 8368 int32 srcX1; |
| 8369 int32 srcY1; |
| 8370 int32 dstX0; |
| 8371 int32 dstY0; |
| 8372 int32 dstX1; |
| 8373 int32 dstY1; |
| 8374 uint32 mask; |
| 8375 uint32 filter; |
| 8376 }; |
| 8377 |
| 8378 COMPILE_ASSERT(sizeof(BlitFramebufferEXT) == 44, |
| 8379 Sizeof_BlitFramebufferEXT_is_not_44); |
| 8380 COMPILE_ASSERT(offsetof(BlitFramebufferEXT, header) == 0, |
| 8381 OffsetOf_BlitFramebufferEXT_header_not_0); |
| 8382 COMPILE_ASSERT(offsetof(BlitFramebufferEXT, srcX0) == 4, |
| 8383 OffsetOf_BlitFramebufferEXT_srcX0_not_4); |
| 8384 COMPILE_ASSERT(offsetof(BlitFramebufferEXT, srcY0) == 8, |
| 8385 OffsetOf_BlitFramebufferEXT_srcY0_not_8); |
| 8386 COMPILE_ASSERT(offsetof(BlitFramebufferEXT, srcX1) == 12, |
| 8387 OffsetOf_BlitFramebufferEXT_srcX1_not_12); |
| 8388 COMPILE_ASSERT(offsetof(BlitFramebufferEXT, srcY1) == 16, |
| 8389 OffsetOf_BlitFramebufferEXT_srcY1_not_16); |
| 8390 COMPILE_ASSERT(offsetof(BlitFramebufferEXT, dstX0) == 20, |
| 8391 OffsetOf_BlitFramebufferEXT_dstX0_not_20); |
| 8392 COMPILE_ASSERT(offsetof(BlitFramebufferEXT, dstY0) == 24, |
| 8393 OffsetOf_BlitFramebufferEXT_dstY0_not_24); |
| 8394 COMPILE_ASSERT(offsetof(BlitFramebufferEXT, dstX1) == 28, |
| 8395 OffsetOf_BlitFramebufferEXT_dstX1_not_28); |
| 8396 COMPILE_ASSERT(offsetof(BlitFramebufferEXT, dstY1) == 32, |
| 8397 OffsetOf_BlitFramebufferEXT_dstY1_not_32); |
| 8398 COMPILE_ASSERT(offsetof(BlitFramebufferEXT, mask) == 36, |
| 8399 OffsetOf_BlitFramebufferEXT_mask_not_36); |
| 8400 COMPILE_ASSERT(offsetof(BlitFramebufferEXT, filter) == 40, |
| 8401 OffsetOf_BlitFramebufferEXT_filter_not_40); |
| 8402 |
| 8403 struct RenderbufferStorageMultisampleEXT { |
| 8404 typedef RenderbufferStorageMultisampleEXT ValueType; |
| 8405 static const CommandId kCmdId = kRenderbufferStorageMultisampleEXT; |
| 8406 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8407 |
| 8408 static uint32 ComputeSize() { |
| 8409 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
| 8410 } |
| 8411 |
| 8412 void SetHeader() { |
| 8413 header.SetCmd<ValueType>(); |
| 8414 } |
| 8415 |
| 8416 void Init( |
| 8417 GLenum _target, GLsizei _samples, GLenum _internalformat, GLsizei _width, |
| 8418 GLsizei _height) { |
| 8419 SetHeader(); |
| 8420 target = _target; |
| 8421 samples = _samples; |
| 8422 internalformat = _internalformat; |
| 8423 width = _width; |
| 8424 height = _height; |
| 8425 } |
| 8426 |
| 8427 void* Set( |
| 8428 void* cmd, GLenum _target, GLsizei _samples, GLenum _internalformat, |
| 8429 GLsizei _width, GLsizei _height) { |
| 8430 static_cast<ValueType*>( |
| 8431 cmd)->Init(_target, _samples, _internalformat, _width, _height); |
| 8432 return NextCmdAddress<ValueType>(cmd); |
| 8433 } |
| 8434 |
| 8435 gpu::CommandHeader header; |
| 8436 uint32 target; |
| 8437 int32 samples; |
| 8438 uint32 internalformat; |
| 8439 int32 width; |
| 8440 int32 height; |
| 8441 }; |
| 8442 |
| 8443 COMPILE_ASSERT(sizeof(RenderbufferStorageMultisampleEXT) == 24, |
| 8444 Sizeof_RenderbufferStorageMultisampleEXT_is_not_24); |
| 8445 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, header) == 0, |
| 8446 OffsetOf_RenderbufferStorageMultisampleEXT_header_not_0); |
| 8447 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, target) == 4, |
| 8448 OffsetOf_RenderbufferStorageMultisampleEXT_target_not_4); |
| 8449 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, samples) == 8, |
| 8450 OffsetOf_RenderbufferStorageMultisampleEXT_samples_not_8); |
| 8451 COMPILE_ASSERT( |
| 8452 offsetof(RenderbufferStorageMultisampleEXT, internalformat) == 12, |
| 8453 OffsetOf_RenderbufferStorageMultisampleEXT_internalformat_not_12)
; // NOLINT |
| 8454 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, width) == 16, |
| 8455 OffsetOf_RenderbufferStorageMultisampleEXT_width_not_16); |
| 8456 COMPILE_ASSERT(offsetof(RenderbufferStorageMultisampleEXT, height) == 20, |
| 8457 OffsetOf_RenderbufferStorageMultisampleEXT_height_not_20); |
| 8458 |
8324 struct SwapBuffers { | 8459 struct SwapBuffers { |
8325 typedef SwapBuffers ValueType; | 8460 typedef SwapBuffers ValueType; |
8326 static const CommandId kCmdId = kSwapBuffers; | 8461 static const CommandId kCmdId = kSwapBuffers; |
8327 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 8462 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
8328 | 8463 |
8329 static uint32 ComputeSize() { | 8464 static uint32 ComputeSize() { |
8330 return static_cast<uint32>(sizeof(ValueType)); // NOLINT | 8465 return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
8331 } | 8466 } |
8332 | 8467 |
8333 void SetHeader() { | 8468 void SetHeader() { |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8616 COMPILE_ASSERT(offsetof(CommandBufferEnable, bucket_id) == 4, | 8751 COMPILE_ASSERT(offsetof(CommandBufferEnable, bucket_id) == 4, |
8617 OffsetOf_CommandBufferEnable_bucket_id_not_4); | 8752 OffsetOf_CommandBufferEnable_bucket_id_not_4); |
8618 COMPILE_ASSERT(offsetof(CommandBufferEnable, result_shm_id) == 8, | 8753 COMPILE_ASSERT(offsetof(CommandBufferEnable, result_shm_id) == 8, |
8619 OffsetOf_CommandBufferEnable_result_shm_id_not_8); | 8754 OffsetOf_CommandBufferEnable_result_shm_id_not_8); |
8620 COMPILE_ASSERT(offsetof(CommandBufferEnable, result_shm_offset) == 12, | 8755 COMPILE_ASSERT(offsetof(CommandBufferEnable, result_shm_offset) == 12, |
8621 OffsetOf_CommandBufferEnable_result_shm_offset_not_12); | 8756 OffsetOf_CommandBufferEnable_result_shm_offset_not_12); |
8622 | 8757 |
8623 | 8758 |
8624 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 8759 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
8625 | 8760 |
OLD | NEW |