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 3356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3367 static_assert(offsetof(GetActiveUniform::Result, success) == 0, | 3367 static_assert(offsetof(GetActiveUniform::Result, success) == 0, |
3368 "offset of GetActiveUniform Result success should be " | 3368 "offset of GetActiveUniform Result success should be " |
3369 "0"); | 3369 "0"); |
3370 static_assert(offsetof(GetActiveUniform::Result, size) == 4, | 3370 static_assert(offsetof(GetActiveUniform::Result, size) == 4, |
3371 "offset of GetActiveUniform Result size should be " | 3371 "offset of GetActiveUniform Result size should be " |
3372 "4"); | 3372 "4"); |
3373 static_assert(offsetof(GetActiveUniform::Result, type) == 8, | 3373 static_assert(offsetof(GetActiveUniform::Result, type) == 8, |
3374 "offset of GetActiveUniform Result type should be " | 3374 "offset of GetActiveUniform Result type should be " |
3375 "8"); | 3375 "8"); |
3376 | 3376 |
| 3377 struct GetActiveUniformBlockiv { |
| 3378 typedef GetActiveUniformBlockiv ValueType; |
| 3379 static const CommandId kCmdId = kGetActiveUniformBlockiv; |
| 3380 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3381 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3382 |
| 3383 typedef SizedResult<GLint> Result; |
| 3384 |
| 3385 static uint32_t ComputeSize() { |
| 3386 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3387 } |
| 3388 |
| 3389 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3390 |
| 3391 void Init(GLuint _program, |
| 3392 GLuint _index, |
| 3393 GLenum _pname, |
| 3394 uint32_t _params_shm_id, |
| 3395 uint32_t _params_shm_offset) { |
| 3396 SetHeader(); |
| 3397 program = _program; |
| 3398 index = _index; |
| 3399 pname = _pname; |
| 3400 params_shm_id = _params_shm_id; |
| 3401 params_shm_offset = _params_shm_offset; |
| 3402 } |
| 3403 |
| 3404 void* Set(void* cmd, |
| 3405 GLuint _program, |
| 3406 GLuint _index, |
| 3407 GLenum _pname, |
| 3408 uint32_t _params_shm_id, |
| 3409 uint32_t _params_shm_offset) { |
| 3410 static_cast<ValueType*>(cmd) |
| 3411 ->Init(_program, _index, _pname, _params_shm_id, _params_shm_offset); |
| 3412 return NextCmdAddress<ValueType>(cmd); |
| 3413 } |
| 3414 |
| 3415 gpu::CommandHeader header; |
| 3416 uint32_t program; |
| 3417 uint32_t index; |
| 3418 uint32_t pname; |
| 3419 uint32_t params_shm_id; |
| 3420 uint32_t params_shm_offset; |
| 3421 }; |
| 3422 |
| 3423 static_assert(sizeof(GetActiveUniformBlockiv) == 24, |
| 3424 "size of GetActiveUniformBlockiv should be 24"); |
| 3425 static_assert(offsetof(GetActiveUniformBlockiv, header) == 0, |
| 3426 "offset of GetActiveUniformBlockiv header should be 0"); |
| 3427 static_assert(offsetof(GetActiveUniformBlockiv, program) == 4, |
| 3428 "offset of GetActiveUniformBlockiv program should be 4"); |
| 3429 static_assert(offsetof(GetActiveUniformBlockiv, index) == 8, |
| 3430 "offset of GetActiveUniformBlockiv index should be 8"); |
| 3431 static_assert(offsetof(GetActiveUniformBlockiv, pname) == 12, |
| 3432 "offset of GetActiveUniformBlockiv pname should be 12"); |
| 3433 static_assert(offsetof(GetActiveUniformBlockiv, params_shm_id) == 16, |
| 3434 "offset of GetActiveUniformBlockiv params_shm_id should be 16"); |
| 3435 static_assert( |
| 3436 offsetof(GetActiveUniformBlockiv, params_shm_offset) == 20, |
| 3437 "offset of GetActiveUniformBlockiv params_shm_offset should be 20"); |
| 3438 |
3377 struct GetActiveUniformBlockName { | 3439 struct GetActiveUniformBlockName { |
3378 typedef GetActiveUniformBlockName ValueType; | 3440 typedef GetActiveUniformBlockName ValueType; |
3379 static const CommandId kCmdId = kGetActiveUniformBlockName; | 3441 static const CommandId kCmdId = kGetActiveUniformBlockName; |
3380 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3442 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
3381 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3443 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
3382 | 3444 |
3383 typedef int32_t Result; | 3445 typedef int32_t Result; |
3384 | 3446 |
3385 static uint32_t ComputeSize() { | 3447 static uint32_t ComputeSize() { |
3386 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3448 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3430 "offset of GetActiveUniformBlockName index should be 8"); | 3492 "offset of GetActiveUniformBlockName index should be 8"); |
3431 static_assert( | 3493 static_assert( |
3432 offsetof(GetActiveUniformBlockName, name_bucket_id) == 12, | 3494 offsetof(GetActiveUniformBlockName, name_bucket_id) == 12, |
3433 "offset of GetActiveUniformBlockName name_bucket_id should be 12"); | 3495 "offset of GetActiveUniformBlockName name_bucket_id should be 12"); |
3434 static_assert(offsetof(GetActiveUniformBlockName, result_shm_id) == 16, | 3496 static_assert(offsetof(GetActiveUniformBlockName, result_shm_id) == 16, |
3435 "offset of GetActiveUniformBlockName result_shm_id should be 16"); | 3497 "offset of GetActiveUniformBlockName result_shm_id should be 16"); |
3436 static_assert( | 3498 static_assert( |
3437 offsetof(GetActiveUniformBlockName, result_shm_offset) == 20, | 3499 offsetof(GetActiveUniformBlockName, result_shm_offset) == 20, |
3438 "offset of GetActiveUniformBlockName result_shm_offset should be 20"); | 3500 "offset of GetActiveUniformBlockName result_shm_offset should be 20"); |
3439 | 3501 |
| 3502 struct GetActiveUniformsiv { |
| 3503 typedef GetActiveUniformsiv ValueType; |
| 3504 static const CommandId kCmdId = kGetActiveUniformsiv; |
| 3505 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3506 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3507 |
| 3508 typedef SizedResult<GLint> Result; |
| 3509 |
| 3510 static uint32_t ComputeSize() { |
| 3511 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3512 } |
| 3513 |
| 3514 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3515 |
| 3516 void Init(GLuint _program, |
| 3517 uint32_t _indices_bucket_id, |
| 3518 GLenum _pname, |
| 3519 uint32_t _params_shm_id, |
| 3520 uint32_t _params_shm_offset) { |
| 3521 SetHeader(); |
| 3522 program = _program; |
| 3523 indices_bucket_id = _indices_bucket_id; |
| 3524 pname = _pname; |
| 3525 params_shm_id = _params_shm_id; |
| 3526 params_shm_offset = _params_shm_offset; |
| 3527 } |
| 3528 |
| 3529 void* Set(void* cmd, |
| 3530 GLuint _program, |
| 3531 uint32_t _indices_bucket_id, |
| 3532 GLenum _pname, |
| 3533 uint32_t _params_shm_id, |
| 3534 uint32_t _params_shm_offset) { |
| 3535 static_cast<ValueType*>(cmd)->Init(_program, _indices_bucket_id, _pname, |
| 3536 _params_shm_id, _params_shm_offset); |
| 3537 return NextCmdAddress<ValueType>(cmd); |
| 3538 } |
| 3539 |
| 3540 gpu::CommandHeader header; |
| 3541 uint32_t program; |
| 3542 uint32_t indices_bucket_id; |
| 3543 uint32_t pname; |
| 3544 uint32_t params_shm_id; |
| 3545 uint32_t params_shm_offset; |
| 3546 }; |
| 3547 |
| 3548 static_assert(sizeof(GetActiveUniformsiv) == 24, |
| 3549 "size of GetActiveUniformsiv should be 24"); |
| 3550 static_assert(offsetof(GetActiveUniformsiv, header) == 0, |
| 3551 "offset of GetActiveUniformsiv header should be 0"); |
| 3552 static_assert(offsetof(GetActiveUniformsiv, program) == 4, |
| 3553 "offset of GetActiveUniformsiv program should be 4"); |
| 3554 static_assert(offsetof(GetActiveUniformsiv, indices_bucket_id) == 8, |
| 3555 "offset of GetActiveUniformsiv indices_bucket_id should be 8"); |
| 3556 static_assert(offsetof(GetActiveUniformsiv, pname) == 12, |
| 3557 "offset of GetActiveUniformsiv pname should be 12"); |
| 3558 static_assert(offsetof(GetActiveUniformsiv, params_shm_id) == 16, |
| 3559 "offset of GetActiveUniformsiv params_shm_id should be 16"); |
| 3560 static_assert(offsetof(GetActiveUniformsiv, params_shm_offset) == 20, |
| 3561 "offset of GetActiveUniformsiv params_shm_offset should be 20"); |
| 3562 |
3440 struct GetAttachedShaders { | 3563 struct GetAttachedShaders { |
3441 typedef GetAttachedShaders ValueType; | 3564 typedef GetAttachedShaders ValueType; |
3442 static const CommandId kCmdId = kGetAttachedShaders; | 3565 static const CommandId kCmdId = kGetAttachedShaders; |
3443 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3566 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
3444 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3567 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
3445 | 3568 |
3446 typedef SizedResult<GLuint> Result; | 3569 typedef SizedResult<GLuint> Result; |
3447 | 3570 |
3448 static uint32_t ComputeSize() { | 3571 static uint32_t ComputeSize() { |
3449 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3572 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4572 "offset of GetTexParameteriv header should be 0"); | 4695 "offset of GetTexParameteriv header should be 0"); |
4573 static_assert(offsetof(GetTexParameteriv, target) == 4, | 4696 static_assert(offsetof(GetTexParameteriv, target) == 4, |
4574 "offset of GetTexParameteriv target should be 4"); | 4697 "offset of GetTexParameteriv target should be 4"); |
4575 static_assert(offsetof(GetTexParameteriv, pname) == 8, | 4698 static_assert(offsetof(GetTexParameteriv, pname) == 8, |
4576 "offset of GetTexParameteriv pname should be 8"); | 4699 "offset of GetTexParameteriv pname should be 8"); |
4577 static_assert(offsetof(GetTexParameteriv, params_shm_id) == 12, | 4700 static_assert(offsetof(GetTexParameteriv, params_shm_id) == 12, |
4578 "offset of GetTexParameteriv params_shm_id should be 12"); | 4701 "offset of GetTexParameteriv params_shm_id should be 12"); |
4579 static_assert(offsetof(GetTexParameteriv, params_shm_offset) == 16, | 4702 static_assert(offsetof(GetTexParameteriv, params_shm_offset) == 16, |
4580 "offset of GetTexParameteriv params_shm_offset should be 16"); | 4703 "offset of GetTexParameteriv params_shm_offset should be 16"); |
4581 | 4704 |
| 4705 struct GetTransformFeedbackVarying { |
| 4706 typedef GetTransformFeedbackVarying ValueType; |
| 4707 static const CommandId kCmdId = kGetTransformFeedbackVarying; |
| 4708 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4709 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4710 |
| 4711 struct Result { |
| 4712 int32_t success; |
| 4713 int32_t size; |
| 4714 uint32_t type; |
| 4715 }; |
| 4716 |
| 4717 static uint32_t ComputeSize() { |
| 4718 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4719 } |
| 4720 |
| 4721 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4722 |
| 4723 void Init(GLuint _program, |
| 4724 GLuint _index, |
| 4725 uint32_t _name_bucket_id, |
| 4726 uint32_t _result_shm_id, |
| 4727 uint32_t _result_shm_offset) { |
| 4728 SetHeader(); |
| 4729 program = _program; |
| 4730 index = _index; |
| 4731 name_bucket_id = _name_bucket_id; |
| 4732 result_shm_id = _result_shm_id; |
| 4733 result_shm_offset = _result_shm_offset; |
| 4734 } |
| 4735 |
| 4736 void* Set(void* cmd, |
| 4737 GLuint _program, |
| 4738 GLuint _index, |
| 4739 uint32_t _name_bucket_id, |
| 4740 uint32_t _result_shm_id, |
| 4741 uint32_t _result_shm_offset) { |
| 4742 static_cast<ValueType*>(cmd)->Init(_program, _index, _name_bucket_id, |
| 4743 _result_shm_id, _result_shm_offset); |
| 4744 return NextCmdAddress<ValueType>(cmd); |
| 4745 } |
| 4746 |
| 4747 gpu::CommandHeader header; |
| 4748 uint32_t program; |
| 4749 uint32_t index; |
| 4750 uint32_t name_bucket_id; |
| 4751 uint32_t result_shm_id; |
| 4752 uint32_t result_shm_offset; |
| 4753 }; |
| 4754 |
| 4755 static_assert(sizeof(GetTransformFeedbackVarying) == 24, |
| 4756 "size of GetTransformFeedbackVarying should be 24"); |
| 4757 static_assert(offsetof(GetTransformFeedbackVarying, header) == 0, |
| 4758 "offset of GetTransformFeedbackVarying header should be 0"); |
| 4759 static_assert(offsetof(GetTransformFeedbackVarying, program) == 4, |
| 4760 "offset of GetTransformFeedbackVarying program should be 4"); |
| 4761 static_assert(offsetof(GetTransformFeedbackVarying, index) == 8, |
| 4762 "offset of GetTransformFeedbackVarying index should be 8"); |
| 4763 static_assert( |
| 4764 offsetof(GetTransformFeedbackVarying, name_bucket_id) == 12, |
| 4765 "offset of GetTransformFeedbackVarying name_bucket_id should be 12"); |
| 4766 static_assert( |
| 4767 offsetof(GetTransformFeedbackVarying, result_shm_id) == 16, |
| 4768 "offset of GetTransformFeedbackVarying result_shm_id should be 16"); |
| 4769 static_assert( |
| 4770 offsetof(GetTransformFeedbackVarying, result_shm_offset) == 20, |
| 4771 "offset of GetTransformFeedbackVarying result_shm_offset should be 20"); |
| 4772 static_assert(offsetof(GetTransformFeedbackVarying::Result, success) == 0, |
| 4773 "offset of GetTransformFeedbackVarying Result success should be " |
| 4774 "0"); |
| 4775 static_assert(offsetof(GetTransformFeedbackVarying::Result, size) == 4, |
| 4776 "offset of GetTransformFeedbackVarying Result size should be " |
| 4777 "4"); |
| 4778 static_assert(offsetof(GetTransformFeedbackVarying::Result, type) == 8, |
| 4779 "offset of GetTransformFeedbackVarying Result type should be " |
| 4780 "8"); |
| 4781 |
4582 struct GetUniformBlockIndex { | 4782 struct GetUniformBlockIndex { |
4583 typedef GetUniformBlockIndex ValueType; | 4783 typedef GetUniformBlockIndex ValueType; |
4584 static const CommandId kCmdId = kGetUniformBlockIndex; | 4784 static const CommandId kCmdId = kGetUniformBlockIndex; |
4585 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 4785 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
4586 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 4786 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
4587 | 4787 |
4588 typedef GLuint Result; | 4788 typedef GLuint Result; |
4589 | 4789 |
4590 static uint32_t ComputeSize() { | 4790 static uint32_t ComputeSize() { |
4591 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 4791 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4735 "offset of GetUniformiv header should be 0"); | 4935 "offset of GetUniformiv header should be 0"); |
4736 static_assert(offsetof(GetUniformiv, program) == 4, | 4936 static_assert(offsetof(GetUniformiv, program) == 4, |
4737 "offset of GetUniformiv program should be 4"); | 4937 "offset of GetUniformiv program should be 4"); |
4738 static_assert(offsetof(GetUniformiv, location) == 8, | 4938 static_assert(offsetof(GetUniformiv, location) == 8, |
4739 "offset of GetUniformiv location should be 8"); | 4939 "offset of GetUniformiv location should be 8"); |
4740 static_assert(offsetof(GetUniformiv, params_shm_id) == 12, | 4940 static_assert(offsetof(GetUniformiv, params_shm_id) == 12, |
4741 "offset of GetUniformiv params_shm_id should be 12"); | 4941 "offset of GetUniformiv params_shm_id should be 12"); |
4742 static_assert(offsetof(GetUniformiv, params_shm_offset) == 16, | 4942 static_assert(offsetof(GetUniformiv, params_shm_offset) == 16, |
4743 "offset of GetUniformiv params_shm_offset should be 16"); | 4943 "offset of GetUniformiv params_shm_offset should be 16"); |
4744 | 4944 |
| 4945 struct GetUniformIndices { |
| 4946 typedef GetUniformIndices ValueType; |
| 4947 static const CommandId kCmdId = kGetUniformIndices; |
| 4948 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 4949 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 4950 |
| 4951 typedef SizedResult<GLuint> Result; |
| 4952 |
| 4953 static uint32_t ComputeSize() { |
| 4954 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 4955 } |
| 4956 |
| 4957 void SetHeader() { header.SetCmd<ValueType>(); } |
| 4958 |
| 4959 void Init(GLuint _program, |
| 4960 uint32_t _names_bucket_id, |
| 4961 uint32_t _indices_shm_id, |
| 4962 uint32_t _indices_shm_offset) { |
| 4963 SetHeader(); |
| 4964 program = _program; |
| 4965 names_bucket_id = _names_bucket_id; |
| 4966 indices_shm_id = _indices_shm_id; |
| 4967 indices_shm_offset = _indices_shm_offset; |
| 4968 } |
| 4969 |
| 4970 void* Set(void* cmd, |
| 4971 GLuint _program, |
| 4972 uint32_t _names_bucket_id, |
| 4973 uint32_t _indices_shm_id, |
| 4974 uint32_t _indices_shm_offset) { |
| 4975 static_cast<ValueType*>(cmd)->Init(_program, _names_bucket_id, |
| 4976 _indices_shm_id, _indices_shm_offset); |
| 4977 return NextCmdAddress<ValueType>(cmd); |
| 4978 } |
| 4979 |
| 4980 gpu::CommandHeader header; |
| 4981 uint32_t program; |
| 4982 uint32_t names_bucket_id; |
| 4983 uint32_t indices_shm_id; |
| 4984 uint32_t indices_shm_offset; |
| 4985 }; |
| 4986 |
| 4987 static_assert(sizeof(GetUniformIndices) == 20, |
| 4988 "size of GetUniformIndices should be 20"); |
| 4989 static_assert(offsetof(GetUniformIndices, header) == 0, |
| 4990 "offset of GetUniformIndices header should be 0"); |
| 4991 static_assert(offsetof(GetUniformIndices, program) == 4, |
| 4992 "offset of GetUniformIndices program should be 4"); |
| 4993 static_assert(offsetof(GetUniformIndices, names_bucket_id) == 8, |
| 4994 "offset of GetUniformIndices names_bucket_id should be 8"); |
| 4995 static_assert(offsetof(GetUniformIndices, indices_shm_id) == 12, |
| 4996 "offset of GetUniformIndices indices_shm_id should be 12"); |
| 4997 static_assert(offsetof(GetUniformIndices, indices_shm_offset) == 16, |
| 4998 "offset of GetUniformIndices indices_shm_offset should be 16"); |
| 4999 |
4745 struct GetUniformLocation { | 5000 struct GetUniformLocation { |
4746 typedef GetUniformLocation ValueType; | 5001 typedef GetUniformLocation ValueType; |
4747 static const CommandId kCmdId = kGetUniformLocation; | 5002 static const CommandId kCmdId = kGetUniformLocation; |
4748 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5003 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
4749 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5004 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
4750 | 5005 |
4751 typedef GLint Result; | 5006 typedef GLint Result; |
4752 | 5007 |
4753 static uint32_t ComputeSize() { | 5008 static uint32_t ComputeSize() { |
4754 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5009 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
(...skipping 3561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8316 | 8571 |
8317 static_assert(sizeof(Uniform4uivImmediate) == 12, | 8572 static_assert(sizeof(Uniform4uivImmediate) == 12, |
8318 "size of Uniform4uivImmediate should be 12"); | 8573 "size of Uniform4uivImmediate should be 12"); |
8319 static_assert(offsetof(Uniform4uivImmediate, header) == 0, | 8574 static_assert(offsetof(Uniform4uivImmediate, header) == 0, |
8320 "offset of Uniform4uivImmediate header should be 0"); | 8575 "offset of Uniform4uivImmediate header should be 0"); |
8321 static_assert(offsetof(Uniform4uivImmediate, location) == 4, | 8576 static_assert(offsetof(Uniform4uivImmediate, location) == 4, |
8322 "offset of Uniform4uivImmediate location should be 4"); | 8577 "offset of Uniform4uivImmediate location should be 4"); |
8323 static_assert(offsetof(Uniform4uivImmediate, count) == 8, | 8578 static_assert(offsetof(Uniform4uivImmediate, count) == 8, |
8324 "offset of Uniform4uivImmediate count should be 8"); | 8579 "offset of Uniform4uivImmediate count should be 8"); |
8325 | 8580 |
| 8581 struct UniformBlockBinding { |
| 8582 typedef UniformBlockBinding ValueType; |
| 8583 static const CommandId kCmdId = kUniformBlockBinding; |
| 8584 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 8585 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 8586 |
| 8587 static uint32_t ComputeSize() { |
| 8588 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 8589 } |
| 8590 |
| 8591 void SetHeader() { header.SetCmd<ValueType>(); } |
| 8592 |
| 8593 void Init(GLuint _program, GLuint _index, GLuint _binding) { |
| 8594 SetHeader(); |
| 8595 program = _program; |
| 8596 index = _index; |
| 8597 binding = _binding; |
| 8598 } |
| 8599 |
| 8600 void* Set(void* cmd, GLuint _program, GLuint _index, GLuint _binding) { |
| 8601 static_cast<ValueType*>(cmd)->Init(_program, _index, _binding); |
| 8602 return NextCmdAddress<ValueType>(cmd); |
| 8603 } |
| 8604 |
| 8605 gpu::CommandHeader header; |
| 8606 uint32_t program; |
| 8607 uint32_t index; |
| 8608 uint32_t binding; |
| 8609 }; |
| 8610 |
| 8611 static_assert(sizeof(UniformBlockBinding) == 16, |
| 8612 "size of UniformBlockBinding should be 16"); |
| 8613 static_assert(offsetof(UniformBlockBinding, header) == 0, |
| 8614 "offset of UniformBlockBinding header should be 0"); |
| 8615 static_assert(offsetof(UniformBlockBinding, program) == 4, |
| 8616 "offset of UniformBlockBinding program should be 4"); |
| 8617 static_assert(offsetof(UniformBlockBinding, index) == 8, |
| 8618 "offset of UniformBlockBinding index should be 8"); |
| 8619 static_assert(offsetof(UniformBlockBinding, binding) == 12, |
| 8620 "offset of UniformBlockBinding binding should be 12"); |
| 8621 |
8326 struct UniformMatrix2fvImmediate { | 8622 struct UniformMatrix2fvImmediate { |
8327 typedef UniformMatrix2fvImmediate ValueType; | 8623 typedef UniformMatrix2fvImmediate ValueType; |
8328 static const CommandId kCmdId = kUniformMatrix2fvImmediate; | 8624 static const CommandId kCmdId = kUniformMatrix2fvImmediate; |
8329 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 8625 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
8330 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 8626 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
8331 | 8627 |
8332 static uint32_t ComputeDataSize(GLsizei count) { | 8628 static uint32_t ComputeDataSize(GLsizei count) { |
8333 return static_cast<uint32_t>(sizeof(GLfloat) * 4 * count); // NOLINT | 8629 return static_cast<uint32_t>(sizeof(GLfloat) * 4 * count); // NOLINT |
8334 } | 8630 } |
8335 | 8631 |
(...skipping 2326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10662 | 10958 |
10663 static_assert(sizeof(GetUniformBlocksCHROMIUM) == 12, | 10959 static_assert(sizeof(GetUniformBlocksCHROMIUM) == 12, |
10664 "size of GetUniformBlocksCHROMIUM should be 12"); | 10960 "size of GetUniformBlocksCHROMIUM should be 12"); |
10665 static_assert(offsetof(GetUniformBlocksCHROMIUM, header) == 0, | 10961 static_assert(offsetof(GetUniformBlocksCHROMIUM, header) == 0, |
10666 "offset of GetUniformBlocksCHROMIUM header should be 0"); | 10962 "offset of GetUniformBlocksCHROMIUM header should be 0"); |
10667 static_assert(offsetof(GetUniformBlocksCHROMIUM, program) == 4, | 10963 static_assert(offsetof(GetUniformBlocksCHROMIUM, program) == 4, |
10668 "offset of GetUniformBlocksCHROMIUM program should be 4"); | 10964 "offset of GetUniformBlocksCHROMIUM program should be 4"); |
10669 static_assert(offsetof(GetUniformBlocksCHROMIUM, bucket_id) == 8, | 10965 static_assert(offsetof(GetUniformBlocksCHROMIUM, bucket_id) == 8, |
10670 "offset of GetUniformBlocksCHROMIUM bucket_id should be 8"); | 10966 "offset of GetUniformBlocksCHROMIUM bucket_id should be 8"); |
10671 | 10967 |
| 10968 struct GetTransformFeedbackVaryingsCHROMIUM { |
| 10969 typedef GetTransformFeedbackVaryingsCHROMIUM ValueType; |
| 10970 static const CommandId kCmdId = kGetTransformFeedbackVaryingsCHROMIUM; |
| 10971 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10972 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10973 |
| 10974 typedef uint32_t Result; |
| 10975 |
| 10976 static uint32_t ComputeSize() { |
| 10977 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10978 } |
| 10979 |
| 10980 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10981 |
| 10982 void Init(GLuint _program, uint32_t _bucket_id) { |
| 10983 SetHeader(); |
| 10984 program = _program; |
| 10985 bucket_id = _bucket_id; |
| 10986 } |
| 10987 |
| 10988 void* Set(void* cmd, GLuint _program, uint32_t _bucket_id) { |
| 10989 static_cast<ValueType*>(cmd)->Init(_program, _bucket_id); |
| 10990 return NextCmdAddress<ValueType>(cmd); |
| 10991 } |
| 10992 |
| 10993 gpu::CommandHeader header; |
| 10994 uint32_t program; |
| 10995 uint32_t bucket_id; |
| 10996 }; |
| 10997 |
| 10998 static_assert(sizeof(GetTransformFeedbackVaryingsCHROMIUM) == 12, |
| 10999 "size of GetTransformFeedbackVaryingsCHROMIUM should be 12"); |
| 11000 static_assert( |
| 11001 offsetof(GetTransformFeedbackVaryingsCHROMIUM, header) == 0, |
| 11002 "offset of GetTransformFeedbackVaryingsCHROMIUM header should be 0"); |
| 11003 static_assert( |
| 11004 offsetof(GetTransformFeedbackVaryingsCHROMIUM, program) == 4, |
| 11005 "offset of GetTransformFeedbackVaryingsCHROMIUM program should be 4"); |
| 11006 static_assert( |
| 11007 offsetof(GetTransformFeedbackVaryingsCHROMIUM, bucket_id) == 8, |
| 11008 "offset of GetTransformFeedbackVaryingsCHROMIUM bucket_id should be 8"); |
| 11009 |
| 11010 struct GetUniformsES3CHROMIUM { |
| 11011 typedef GetUniformsES3CHROMIUM ValueType; |
| 11012 static const CommandId kCmdId = kGetUniformsES3CHROMIUM; |
| 11013 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11014 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11015 |
| 11016 typedef uint32_t Result; |
| 11017 |
| 11018 static uint32_t ComputeSize() { |
| 11019 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11020 } |
| 11021 |
| 11022 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11023 |
| 11024 void Init(GLuint _program, uint32_t _bucket_id) { |
| 11025 SetHeader(); |
| 11026 program = _program; |
| 11027 bucket_id = _bucket_id; |
| 11028 } |
| 11029 |
| 11030 void* Set(void* cmd, GLuint _program, uint32_t _bucket_id) { |
| 11031 static_cast<ValueType*>(cmd)->Init(_program, _bucket_id); |
| 11032 return NextCmdAddress<ValueType>(cmd); |
| 11033 } |
| 11034 |
| 11035 gpu::CommandHeader header; |
| 11036 uint32_t program; |
| 11037 uint32_t bucket_id; |
| 11038 }; |
| 11039 |
| 11040 static_assert(sizeof(GetUniformsES3CHROMIUM) == 12, |
| 11041 "size of GetUniformsES3CHROMIUM should be 12"); |
| 11042 static_assert(offsetof(GetUniformsES3CHROMIUM, header) == 0, |
| 11043 "offset of GetUniformsES3CHROMIUM header should be 0"); |
| 11044 static_assert(offsetof(GetUniformsES3CHROMIUM, program) == 4, |
| 11045 "offset of GetUniformsES3CHROMIUM program should be 4"); |
| 11046 static_assert(offsetof(GetUniformsES3CHROMIUM, bucket_id) == 8, |
| 11047 "offset of GetUniformsES3CHROMIUM bucket_id should be 8"); |
| 11048 |
10672 struct GetTranslatedShaderSourceANGLE { | 11049 struct GetTranslatedShaderSourceANGLE { |
10673 typedef GetTranslatedShaderSourceANGLE ValueType; | 11050 typedef GetTranslatedShaderSourceANGLE ValueType; |
10674 static const CommandId kCmdId = kGetTranslatedShaderSourceANGLE; | 11051 static const CommandId kCmdId = kGetTranslatedShaderSourceANGLE; |
10675 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11052 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
10676 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11053 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
10677 | 11054 |
10678 static uint32_t ComputeSize() { | 11055 static uint32_t ComputeSize() { |
10679 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11056 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
10680 } | 11057 } |
10681 | 11058 |
(...skipping 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12310 | 12687 |
12311 gpu::CommandHeader header; | 12688 gpu::CommandHeader header; |
12312 }; | 12689 }; |
12313 | 12690 |
12314 static_assert(sizeof(BlendBarrierKHR) == 4, | 12691 static_assert(sizeof(BlendBarrierKHR) == 4, |
12315 "size of BlendBarrierKHR should be 4"); | 12692 "size of BlendBarrierKHR should be 4"); |
12316 static_assert(offsetof(BlendBarrierKHR, header) == 0, | 12693 static_assert(offsetof(BlendBarrierKHR, header) == 0, |
12317 "offset of BlendBarrierKHR header should be 0"); | 12694 "offset of BlendBarrierKHR header should be 0"); |
12318 | 12695 |
12319 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 12696 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |