| 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 9487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9498 | 9498 |
| 9499 static uint32_t ComputeSize(GLsizei count) { | 9499 static uint32_t ComputeSize(GLsizei count) { |
| 9500 return static_cast<uint32_t>(sizeof(ValueType) + | 9500 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9501 ComputeDataSize(count)); // NOLINT | 9501 ComputeDataSize(count)); // NOLINT |
| 9502 } | 9502 } |
| 9503 | 9503 |
| 9504 void SetHeader(GLsizei count) { | 9504 void SetHeader(GLsizei count) { |
| 9505 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); | 9505 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); |
| 9506 } | 9506 } |
| 9507 | 9507 |
| 9508 void Init(GLint _location, GLsizei _count, const GLfloat* _value) { | 9508 void Init(GLint _location, |
| 9509 GLsizei _count, |
| 9510 GLboolean _transpose, |
| 9511 const GLfloat* _value) { |
| 9509 SetHeader(_count); | 9512 SetHeader(_count); |
| 9510 location = _location; | 9513 location = _location; |
| 9511 count = _count; | 9514 count = _count; |
| 9515 transpose = _transpose; |
| 9512 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); | 9516 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); |
| 9513 } | 9517 } |
| 9514 | 9518 |
| 9515 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _value) { | 9519 void* Set(void* cmd, |
| 9516 static_cast<ValueType*>(cmd)->Init(_location, _count, _value); | 9520 GLint _location, |
| 9521 GLsizei _count, |
| 9522 GLboolean _transpose, |
| 9523 const GLfloat* _value) { |
| 9524 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); |
| 9517 const uint32_t size = ComputeSize(_count); | 9525 const uint32_t size = ComputeSize(_count); |
| 9518 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 9526 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 9519 } | 9527 } |
| 9520 | 9528 |
| 9521 gpu::CommandHeader header; | 9529 gpu::CommandHeader header; |
| 9522 int32_t location; | 9530 int32_t location; |
| 9523 int32_t count; | 9531 int32_t count; |
| 9524 static const uint32_t transpose = false; | 9532 uint32_t transpose; |
| 9525 }; | 9533 }; |
| 9526 | 9534 |
| 9527 static_assert(sizeof(UniformMatrix2fvImmediate) == 12, | 9535 static_assert(sizeof(UniformMatrix2fvImmediate) == 16, |
| 9528 "size of UniformMatrix2fvImmediate should be 12"); | 9536 "size of UniformMatrix2fvImmediate should be 16"); |
| 9529 static_assert(offsetof(UniformMatrix2fvImmediate, header) == 0, | 9537 static_assert(offsetof(UniformMatrix2fvImmediate, header) == 0, |
| 9530 "offset of UniformMatrix2fvImmediate header should be 0"); | 9538 "offset of UniformMatrix2fvImmediate header should be 0"); |
| 9531 static_assert(offsetof(UniformMatrix2fvImmediate, location) == 4, | 9539 static_assert(offsetof(UniformMatrix2fvImmediate, location) == 4, |
| 9532 "offset of UniformMatrix2fvImmediate location should be 4"); | 9540 "offset of UniformMatrix2fvImmediate location should be 4"); |
| 9533 static_assert(offsetof(UniformMatrix2fvImmediate, count) == 8, | 9541 static_assert(offsetof(UniformMatrix2fvImmediate, count) == 8, |
| 9534 "offset of UniformMatrix2fvImmediate count should be 8"); | 9542 "offset of UniformMatrix2fvImmediate count should be 8"); |
| 9543 static_assert(offsetof(UniformMatrix2fvImmediate, transpose) == 12, |
| 9544 "offset of UniformMatrix2fvImmediate transpose should be 12"); |
| 9535 | 9545 |
| 9536 struct UniformMatrix2x3fvImmediate { | 9546 struct UniformMatrix2x3fvImmediate { |
| 9537 typedef UniformMatrix2x3fvImmediate ValueType; | 9547 typedef UniformMatrix2x3fvImmediate ValueType; |
| 9538 static const CommandId kCmdId = kUniformMatrix2x3fvImmediate; | 9548 static const CommandId kCmdId = kUniformMatrix2x3fvImmediate; |
| 9539 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9549 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9540 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9550 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9541 | 9551 |
| 9542 static uint32_t ComputeDataSize(GLsizei count) { | 9552 static uint32_t ComputeDataSize(GLsizei count) { |
| 9543 return static_cast<uint32_t>(sizeof(GLfloat) * 6 * count); // NOLINT | 9553 return static_cast<uint32_t>(sizeof(GLfloat) * 6 * count); // NOLINT |
| 9544 } | 9554 } |
| 9545 | 9555 |
| 9546 static uint32_t ComputeSize(GLsizei count) { | 9556 static uint32_t ComputeSize(GLsizei count) { |
| 9547 return static_cast<uint32_t>(sizeof(ValueType) + | 9557 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9548 ComputeDataSize(count)); // NOLINT | 9558 ComputeDataSize(count)); // NOLINT |
| 9549 } | 9559 } |
| 9550 | 9560 |
| 9551 void SetHeader(GLsizei count) { | 9561 void SetHeader(GLsizei count) { |
| 9552 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); | 9562 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); |
| 9553 } | 9563 } |
| 9554 | 9564 |
| 9555 void Init(GLint _location, GLsizei _count, const GLfloat* _value) { | 9565 void Init(GLint _location, |
| 9566 GLsizei _count, |
| 9567 GLboolean _transpose, |
| 9568 const GLfloat* _value) { |
| 9556 SetHeader(_count); | 9569 SetHeader(_count); |
| 9557 location = _location; | 9570 location = _location; |
| 9558 count = _count; | 9571 count = _count; |
| 9572 transpose = _transpose; |
| 9559 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); | 9573 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); |
| 9560 } | 9574 } |
| 9561 | 9575 |
| 9562 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _value) { | 9576 void* Set(void* cmd, |
| 9563 static_cast<ValueType*>(cmd)->Init(_location, _count, _value); | 9577 GLint _location, |
| 9578 GLsizei _count, |
| 9579 GLboolean _transpose, |
| 9580 const GLfloat* _value) { |
| 9581 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); |
| 9564 const uint32_t size = ComputeSize(_count); | 9582 const uint32_t size = ComputeSize(_count); |
| 9565 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 9583 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 9566 } | 9584 } |
| 9567 | 9585 |
| 9568 gpu::CommandHeader header; | 9586 gpu::CommandHeader header; |
| 9569 int32_t location; | 9587 int32_t location; |
| 9570 int32_t count; | 9588 int32_t count; |
| 9571 static const uint32_t transpose = false; | 9589 uint32_t transpose; |
| 9572 }; | 9590 }; |
| 9573 | 9591 |
| 9574 static_assert(sizeof(UniformMatrix2x3fvImmediate) == 12, | 9592 static_assert(sizeof(UniformMatrix2x3fvImmediate) == 16, |
| 9575 "size of UniformMatrix2x3fvImmediate should be 12"); | 9593 "size of UniformMatrix2x3fvImmediate should be 16"); |
| 9576 static_assert(offsetof(UniformMatrix2x3fvImmediate, header) == 0, | 9594 static_assert(offsetof(UniformMatrix2x3fvImmediate, header) == 0, |
| 9577 "offset of UniformMatrix2x3fvImmediate header should be 0"); | 9595 "offset of UniformMatrix2x3fvImmediate header should be 0"); |
| 9578 static_assert(offsetof(UniformMatrix2x3fvImmediate, location) == 4, | 9596 static_assert(offsetof(UniformMatrix2x3fvImmediate, location) == 4, |
| 9579 "offset of UniformMatrix2x3fvImmediate location should be 4"); | 9597 "offset of UniformMatrix2x3fvImmediate location should be 4"); |
| 9580 static_assert(offsetof(UniformMatrix2x3fvImmediate, count) == 8, | 9598 static_assert(offsetof(UniformMatrix2x3fvImmediate, count) == 8, |
| 9581 "offset of UniformMatrix2x3fvImmediate count should be 8"); | 9599 "offset of UniformMatrix2x3fvImmediate count should be 8"); |
| 9600 static_assert(offsetof(UniformMatrix2x3fvImmediate, transpose) == 12, |
| 9601 "offset of UniformMatrix2x3fvImmediate transpose should be 12"); |
| 9582 | 9602 |
| 9583 struct UniformMatrix2x4fvImmediate { | 9603 struct UniformMatrix2x4fvImmediate { |
| 9584 typedef UniformMatrix2x4fvImmediate ValueType; | 9604 typedef UniformMatrix2x4fvImmediate ValueType; |
| 9585 static const CommandId kCmdId = kUniformMatrix2x4fvImmediate; | 9605 static const CommandId kCmdId = kUniformMatrix2x4fvImmediate; |
| 9586 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9606 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9587 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9607 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9588 | 9608 |
| 9589 static uint32_t ComputeDataSize(GLsizei count) { | 9609 static uint32_t ComputeDataSize(GLsizei count) { |
| 9590 return static_cast<uint32_t>(sizeof(GLfloat) * 8 * count); // NOLINT | 9610 return static_cast<uint32_t>(sizeof(GLfloat) * 8 * count); // NOLINT |
| 9591 } | 9611 } |
| 9592 | 9612 |
| 9593 static uint32_t ComputeSize(GLsizei count) { | 9613 static uint32_t ComputeSize(GLsizei count) { |
| 9594 return static_cast<uint32_t>(sizeof(ValueType) + | 9614 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9595 ComputeDataSize(count)); // NOLINT | 9615 ComputeDataSize(count)); // NOLINT |
| 9596 } | 9616 } |
| 9597 | 9617 |
| 9598 void SetHeader(GLsizei count) { | 9618 void SetHeader(GLsizei count) { |
| 9599 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); | 9619 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); |
| 9600 } | 9620 } |
| 9601 | 9621 |
| 9602 void Init(GLint _location, GLsizei _count, const GLfloat* _value) { | 9622 void Init(GLint _location, |
| 9623 GLsizei _count, |
| 9624 GLboolean _transpose, |
| 9625 const GLfloat* _value) { |
| 9603 SetHeader(_count); | 9626 SetHeader(_count); |
| 9604 location = _location; | 9627 location = _location; |
| 9605 count = _count; | 9628 count = _count; |
| 9629 transpose = _transpose; |
| 9606 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); | 9630 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); |
| 9607 } | 9631 } |
| 9608 | 9632 |
| 9609 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _value) { | 9633 void* Set(void* cmd, |
| 9610 static_cast<ValueType*>(cmd)->Init(_location, _count, _value); | 9634 GLint _location, |
| 9635 GLsizei _count, |
| 9636 GLboolean _transpose, |
| 9637 const GLfloat* _value) { |
| 9638 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); |
| 9611 const uint32_t size = ComputeSize(_count); | 9639 const uint32_t size = ComputeSize(_count); |
| 9612 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 9640 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 9613 } | 9641 } |
| 9614 | 9642 |
| 9615 gpu::CommandHeader header; | 9643 gpu::CommandHeader header; |
| 9616 int32_t location; | 9644 int32_t location; |
| 9617 int32_t count; | 9645 int32_t count; |
| 9618 static const uint32_t transpose = false; | 9646 uint32_t transpose; |
| 9619 }; | 9647 }; |
| 9620 | 9648 |
| 9621 static_assert(sizeof(UniformMatrix2x4fvImmediate) == 12, | 9649 static_assert(sizeof(UniformMatrix2x4fvImmediate) == 16, |
| 9622 "size of UniformMatrix2x4fvImmediate should be 12"); | 9650 "size of UniformMatrix2x4fvImmediate should be 16"); |
| 9623 static_assert(offsetof(UniformMatrix2x4fvImmediate, header) == 0, | 9651 static_assert(offsetof(UniformMatrix2x4fvImmediate, header) == 0, |
| 9624 "offset of UniformMatrix2x4fvImmediate header should be 0"); | 9652 "offset of UniformMatrix2x4fvImmediate header should be 0"); |
| 9625 static_assert(offsetof(UniformMatrix2x4fvImmediate, location) == 4, | 9653 static_assert(offsetof(UniformMatrix2x4fvImmediate, location) == 4, |
| 9626 "offset of UniformMatrix2x4fvImmediate location should be 4"); | 9654 "offset of UniformMatrix2x4fvImmediate location should be 4"); |
| 9627 static_assert(offsetof(UniformMatrix2x4fvImmediate, count) == 8, | 9655 static_assert(offsetof(UniformMatrix2x4fvImmediate, count) == 8, |
| 9628 "offset of UniformMatrix2x4fvImmediate count should be 8"); | 9656 "offset of UniformMatrix2x4fvImmediate count should be 8"); |
| 9657 static_assert(offsetof(UniformMatrix2x4fvImmediate, transpose) == 12, |
| 9658 "offset of UniformMatrix2x4fvImmediate transpose should be 12"); |
| 9629 | 9659 |
| 9630 struct UniformMatrix3fvImmediate { | 9660 struct UniformMatrix3fvImmediate { |
| 9631 typedef UniformMatrix3fvImmediate ValueType; | 9661 typedef UniformMatrix3fvImmediate ValueType; |
| 9632 static const CommandId kCmdId = kUniformMatrix3fvImmediate; | 9662 static const CommandId kCmdId = kUniformMatrix3fvImmediate; |
| 9633 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9663 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9634 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9664 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9635 | 9665 |
| 9636 static uint32_t ComputeDataSize(GLsizei count) { | 9666 static uint32_t ComputeDataSize(GLsizei count) { |
| 9637 return static_cast<uint32_t>(sizeof(GLfloat) * 9 * count); // NOLINT | 9667 return static_cast<uint32_t>(sizeof(GLfloat) * 9 * count); // NOLINT |
| 9638 } | 9668 } |
| 9639 | 9669 |
| 9640 static uint32_t ComputeSize(GLsizei count) { | 9670 static uint32_t ComputeSize(GLsizei count) { |
| 9641 return static_cast<uint32_t>(sizeof(ValueType) + | 9671 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9642 ComputeDataSize(count)); // NOLINT | 9672 ComputeDataSize(count)); // NOLINT |
| 9643 } | 9673 } |
| 9644 | 9674 |
| 9645 void SetHeader(GLsizei count) { | 9675 void SetHeader(GLsizei count) { |
| 9646 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); | 9676 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); |
| 9647 } | 9677 } |
| 9648 | 9678 |
| 9649 void Init(GLint _location, GLsizei _count, const GLfloat* _value) { | 9679 void Init(GLint _location, |
| 9680 GLsizei _count, |
| 9681 GLboolean _transpose, |
| 9682 const GLfloat* _value) { |
| 9650 SetHeader(_count); | 9683 SetHeader(_count); |
| 9651 location = _location; | 9684 location = _location; |
| 9652 count = _count; | 9685 count = _count; |
| 9686 transpose = _transpose; |
| 9653 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); | 9687 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); |
| 9654 } | 9688 } |
| 9655 | 9689 |
| 9656 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _value) { | 9690 void* Set(void* cmd, |
| 9657 static_cast<ValueType*>(cmd)->Init(_location, _count, _value); | 9691 GLint _location, |
| 9692 GLsizei _count, |
| 9693 GLboolean _transpose, |
| 9694 const GLfloat* _value) { |
| 9695 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); |
| 9658 const uint32_t size = ComputeSize(_count); | 9696 const uint32_t size = ComputeSize(_count); |
| 9659 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 9697 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 9660 } | 9698 } |
| 9661 | 9699 |
| 9662 gpu::CommandHeader header; | 9700 gpu::CommandHeader header; |
| 9663 int32_t location; | 9701 int32_t location; |
| 9664 int32_t count; | 9702 int32_t count; |
| 9665 static const uint32_t transpose = false; | 9703 uint32_t transpose; |
| 9666 }; | 9704 }; |
| 9667 | 9705 |
| 9668 static_assert(sizeof(UniformMatrix3fvImmediate) == 12, | 9706 static_assert(sizeof(UniformMatrix3fvImmediate) == 16, |
| 9669 "size of UniformMatrix3fvImmediate should be 12"); | 9707 "size of UniformMatrix3fvImmediate should be 16"); |
| 9670 static_assert(offsetof(UniformMatrix3fvImmediate, header) == 0, | 9708 static_assert(offsetof(UniformMatrix3fvImmediate, header) == 0, |
| 9671 "offset of UniformMatrix3fvImmediate header should be 0"); | 9709 "offset of UniformMatrix3fvImmediate header should be 0"); |
| 9672 static_assert(offsetof(UniformMatrix3fvImmediate, location) == 4, | 9710 static_assert(offsetof(UniformMatrix3fvImmediate, location) == 4, |
| 9673 "offset of UniformMatrix3fvImmediate location should be 4"); | 9711 "offset of UniformMatrix3fvImmediate location should be 4"); |
| 9674 static_assert(offsetof(UniformMatrix3fvImmediate, count) == 8, | 9712 static_assert(offsetof(UniformMatrix3fvImmediate, count) == 8, |
| 9675 "offset of UniformMatrix3fvImmediate count should be 8"); | 9713 "offset of UniformMatrix3fvImmediate count should be 8"); |
| 9714 static_assert(offsetof(UniformMatrix3fvImmediate, transpose) == 12, |
| 9715 "offset of UniformMatrix3fvImmediate transpose should be 12"); |
| 9676 | 9716 |
| 9677 struct UniformMatrix3x2fvImmediate { | 9717 struct UniformMatrix3x2fvImmediate { |
| 9678 typedef UniformMatrix3x2fvImmediate ValueType; | 9718 typedef UniformMatrix3x2fvImmediate ValueType; |
| 9679 static const CommandId kCmdId = kUniformMatrix3x2fvImmediate; | 9719 static const CommandId kCmdId = kUniformMatrix3x2fvImmediate; |
| 9680 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9720 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9681 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9721 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9682 | 9722 |
| 9683 static uint32_t ComputeDataSize(GLsizei count) { | 9723 static uint32_t ComputeDataSize(GLsizei count) { |
| 9684 return static_cast<uint32_t>(sizeof(GLfloat) * 6 * count); // NOLINT | 9724 return static_cast<uint32_t>(sizeof(GLfloat) * 6 * count); // NOLINT |
| 9685 } | 9725 } |
| 9686 | 9726 |
| 9687 static uint32_t ComputeSize(GLsizei count) { | 9727 static uint32_t ComputeSize(GLsizei count) { |
| 9688 return static_cast<uint32_t>(sizeof(ValueType) + | 9728 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9689 ComputeDataSize(count)); // NOLINT | 9729 ComputeDataSize(count)); // NOLINT |
| 9690 } | 9730 } |
| 9691 | 9731 |
| 9692 void SetHeader(GLsizei count) { | 9732 void SetHeader(GLsizei count) { |
| 9693 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); | 9733 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); |
| 9694 } | 9734 } |
| 9695 | 9735 |
| 9696 void Init(GLint _location, GLsizei _count, const GLfloat* _value) { | 9736 void Init(GLint _location, |
| 9737 GLsizei _count, |
| 9738 GLboolean _transpose, |
| 9739 const GLfloat* _value) { |
| 9697 SetHeader(_count); | 9740 SetHeader(_count); |
| 9698 location = _location; | 9741 location = _location; |
| 9699 count = _count; | 9742 count = _count; |
| 9743 transpose = _transpose; |
| 9700 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); | 9744 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); |
| 9701 } | 9745 } |
| 9702 | 9746 |
| 9703 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _value) { | 9747 void* Set(void* cmd, |
| 9704 static_cast<ValueType*>(cmd)->Init(_location, _count, _value); | 9748 GLint _location, |
| 9749 GLsizei _count, |
| 9750 GLboolean _transpose, |
| 9751 const GLfloat* _value) { |
| 9752 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); |
| 9705 const uint32_t size = ComputeSize(_count); | 9753 const uint32_t size = ComputeSize(_count); |
| 9706 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 9754 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 9707 } | 9755 } |
| 9708 | 9756 |
| 9709 gpu::CommandHeader header; | 9757 gpu::CommandHeader header; |
| 9710 int32_t location; | 9758 int32_t location; |
| 9711 int32_t count; | 9759 int32_t count; |
| 9712 static const uint32_t transpose = false; | 9760 uint32_t transpose; |
| 9713 }; | 9761 }; |
| 9714 | 9762 |
| 9715 static_assert(sizeof(UniformMatrix3x2fvImmediate) == 12, | 9763 static_assert(sizeof(UniformMatrix3x2fvImmediate) == 16, |
| 9716 "size of UniformMatrix3x2fvImmediate should be 12"); | 9764 "size of UniformMatrix3x2fvImmediate should be 16"); |
| 9717 static_assert(offsetof(UniformMatrix3x2fvImmediate, header) == 0, | 9765 static_assert(offsetof(UniformMatrix3x2fvImmediate, header) == 0, |
| 9718 "offset of UniformMatrix3x2fvImmediate header should be 0"); | 9766 "offset of UniformMatrix3x2fvImmediate header should be 0"); |
| 9719 static_assert(offsetof(UniformMatrix3x2fvImmediate, location) == 4, | 9767 static_assert(offsetof(UniformMatrix3x2fvImmediate, location) == 4, |
| 9720 "offset of UniformMatrix3x2fvImmediate location should be 4"); | 9768 "offset of UniformMatrix3x2fvImmediate location should be 4"); |
| 9721 static_assert(offsetof(UniformMatrix3x2fvImmediate, count) == 8, | 9769 static_assert(offsetof(UniformMatrix3x2fvImmediate, count) == 8, |
| 9722 "offset of UniformMatrix3x2fvImmediate count should be 8"); | 9770 "offset of UniformMatrix3x2fvImmediate count should be 8"); |
| 9771 static_assert(offsetof(UniformMatrix3x2fvImmediate, transpose) == 12, |
| 9772 "offset of UniformMatrix3x2fvImmediate transpose should be 12"); |
| 9723 | 9773 |
| 9724 struct UniformMatrix3x4fvImmediate { | 9774 struct UniformMatrix3x4fvImmediate { |
| 9725 typedef UniformMatrix3x4fvImmediate ValueType; | 9775 typedef UniformMatrix3x4fvImmediate ValueType; |
| 9726 static const CommandId kCmdId = kUniformMatrix3x4fvImmediate; | 9776 static const CommandId kCmdId = kUniformMatrix3x4fvImmediate; |
| 9727 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9777 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9728 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9778 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9729 | 9779 |
| 9730 static uint32_t ComputeDataSize(GLsizei count) { | 9780 static uint32_t ComputeDataSize(GLsizei count) { |
| 9731 return static_cast<uint32_t>(sizeof(GLfloat) * 12 * count); // NOLINT | 9781 return static_cast<uint32_t>(sizeof(GLfloat) * 12 * count); // NOLINT |
| 9732 } | 9782 } |
| 9733 | 9783 |
| 9734 static uint32_t ComputeSize(GLsizei count) { | 9784 static uint32_t ComputeSize(GLsizei count) { |
| 9735 return static_cast<uint32_t>(sizeof(ValueType) + | 9785 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9736 ComputeDataSize(count)); // NOLINT | 9786 ComputeDataSize(count)); // NOLINT |
| 9737 } | 9787 } |
| 9738 | 9788 |
| 9739 void SetHeader(GLsizei count) { | 9789 void SetHeader(GLsizei count) { |
| 9740 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); | 9790 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); |
| 9741 } | 9791 } |
| 9742 | 9792 |
| 9743 void Init(GLint _location, GLsizei _count, const GLfloat* _value) { | 9793 void Init(GLint _location, |
| 9794 GLsizei _count, |
| 9795 GLboolean _transpose, |
| 9796 const GLfloat* _value) { |
| 9744 SetHeader(_count); | 9797 SetHeader(_count); |
| 9745 location = _location; | 9798 location = _location; |
| 9746 count = _count; | 9799 count = _count; |
| 9800 transpose = _transpose; |
| 9747 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); | 9801 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); |
| 9748 } | 9802 } |
| 9749 | 9803 |
| 9750 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _value) { | 9804 void* Set(void* cmd, |
| 9751 static_cast<ValueType*>(cmd)->Init(_location, _count, _value); | 9805 GLint _location, |
| 9806 GLsizei _count, |
| 9807 GLboolean _transpose, |
| 9808 const GLfloat* _value) { |
| 9809 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); |
| 9752 const uint32_t size = ComputeSize(_count); | 9810 const uint32_t size = ComputeSize(_count); |
| 9753 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 9811 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 9754 } | 9812 } |
| 9755 | 9813 |
| 9756 gpu::CommandHeader header; | 9814 gpu::CommandHeader header; |
| 9757 int32_t location; | 9815 int32_t location; |
| 9758 int32_t count; | 9816 int32_t count; |
| 9759 static const uint32_t transpose = false; | 9817 uint32_t transpose; |
| 9760 }; | 9818 }; |
| 9761 | 9819 |
| 9762 static_assert(sizeof(UniformMatrix3x4fvImmediate) == 12, | 9820 static_assert(sizeof(UniformMatrix3x4fvImmediate) == 16, |
| 9763 "size of UniformMatrix3x4fvImmediate should be 12"); | 9821 "size of UniformMatrix3x4fvImmediate should be 16"); |
| 9764 static_assert(offsetof(UniformMatrix3x4fvImmediate, header) == 0, | 9822 static_assert(offsetof(UniformMatrix3x4fvImmediate, header) == 0, |
| 9765 "offset of UniformMatrix3x4fvImmediate header should be 0"); | 9823 "offset of UniformMatrix3x4fvImmediate header should be 0"); |
| 9766 static_assert(offsetof(UniformMatrix3x4fvImmediate, location) == 4, | 9824 static_assert(offsetof(UniformMatrix3x4fvImmediate, location) == 4, |
| 9767 "offset of UniformMatrix3x4fvImmediate location should be 4"); | 9825 "offset of UniformMatrix3x4fvImmediate location should be 4"); |
| 9768 static_assert(offsetof(UniformMatrix3x4fvImmediate, count) == 8, | 9826 static_assert(offsetof(UniformMatrix3x4fvImmediate, count) == 8, |
| 9769 "offset of UniformMatrix3x4fvImmediate count should be 8"); | 9827 "offset of UniformMatrix3x4fvImmediate count should be 8"); |
| 9828 static_assert(offsetof(UniformMatrix3x4fvImmediate, transpose) == 12, |
| 9829 "offset of UniformMatrix3x4fvImmediate transpose should be 12"); |
| 9770 | 9830 |
| 9771 struct UniformMatrix4fvImmediate { | 9831 struct UniformMatrix4fvImmediate { |
| 9772 typedef UniformMatrix4fvImmediate ValueType; | 9832 typedef UniformMatrix4fvImmediate ValueType; |
| 9773 static const CommandId kCmdId = kUniformMatrix4fvImmediate; | 9833 static const CommandId kCmdId = kUniformMatrix4fvImmediate; |
| 9774 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9834 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9775 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9835 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9776 | 9836 |
| 9777 static uint32_t ComputeDataSize(GLsizei count) { | 9837 static uint32_t ComputeDataSize(GLsizei count) { |
| 9778 return static_cast<uint32_t>(sizeof(GLfloat) * 16 * count); // NOLINT | 9838 return static_cast<uint32_t>(sizeof(GLfloat) * 16 * count); // NOLINT |
| 9779 } | 9839 } |
| 9780 | 9840 |
| 9781 static uint32_t ComputeSize(GLsizei count) { | 9841 static uint32_t ComputeSize(GLsizei count) { |
| 9782 return static_cast<uint32_t>(sizeof(ValueType) + | 9842 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9783 ComputeDataSize(count)); // NOLINT | 9843 ComputeDataSize(count)); // NOLINT |
| 9784 } | 9844 } |
| 9785 | 9845 |
| 9786 void SetHeader(GLsizei count) { | 9846 void SetHeader(GLsizei count) { |
| 9787 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); | 9847 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); |
| 9788 } | 9848 } |
| 9789 | 9849 |
| 9790 void Init(GLint _location, GLsizei _count, const GLfloat* _value) { | 9850 void Init(GLint _location, |
| 9851 GLsizei _count, |
| 9852 GLboolean _transpose, |
| 9853 const GLfloat* _value) { |
| 9791 SetHeader(_count); | 9854 SetHeader(_count); |
| 9792 location = _location; | 9855 location = _location; |
| 9793 count = _count; | 9856 count = _count; |
| 9857 transpose = _transpose; |
| 9794 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); | 9858 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); |
| 9795 } | 9859 } |
| 9796 | 9860 |
| 9797 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _value) { | 9861 void* Set(void* cmd, |
| 9798 static_cast<ValueType*>(cmd)->Init(_location, _count, _value); | 9862 GLint _location, |
| 9863 GLsizei _count, |
| 9864 GLboolean _transpose, |
| 9865 const GLfloat* _value) { |
| 9866 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); |
| 9799 const uint32_t size = ComputeSize(_count); | 9867 const uint32_t size = ComputeSize(_count); |
| 9800 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 9868 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 9801 } | 9869 } |
| 9802 | 9870 |
| 9803 gpu::CommandHeader header; | 9871 gpu::CommandHeader header; |
| 9804 int32_t location; | 9872 int32_t location; |
| 9805 int32_t count; | 9873 int32_t count; |
| 9806 static const uint32_t transpose = false; | 9874 uint32_t transpose; |
| 9807 }; | 9875 }; |
| 9808 | 9876 |
| 9809 static_assert(sizeof(UniformMatrix4fvImmediate) == 12, | 9877 static_assert(sizeof(UniformMatrix4fvImmediate) == 16, |
| 9810 "size of UniformMatrix4fvImmediate should be 12"); | 9878 "size of UniformMatrix4fvImmediate should be 16"); |
| 9811 static_assert(offsetof(UniformMatrix4fvImmediate, header) == 0, | 9879 static_assert(offsetof(UniformMatrix4fvImmediate, header) == 0, |
| 9812 "offset of UniformMatrix4fvImmediate header should be 0"); | 9880 "offset of UniformMatrix4fvImmediate header should be 0"); |
| 9813 static_assert(offsetof(UniformMatrix4fvImmediate, location) == 4, | 9881 static_assert(offsetof(UniformMatrix4fvImmediate, location) == 4, |
| 9814 "offset of UniformMatrix4fvImmediate location should be 4"); | 9882 "offset of UniformMatrix4fvImmediate location should be 4"); |
| 9815 static_assert(offsetof(UniformMatrix4fvImmediate, count) == 8, | 9883 static_assert(offsetof(UniformMatrix4fvImmediate, count) == 8, |
| 9816 "offset of UniformMatrix4fvImmediate count should be 8"); | 9884 "offset of UniformMatrix4fvImmediate count should be 8"); |
| 9885 static_assert(offsetof(UniformMatrix4fvImmediate, transpose) == 12, |
| 9886 "offset of UniformMatrix4fvImmediate transpose should be 12"); |
| 9817 | 9887 |
| 9818 struct UniformMatrix4x2fvImmediate { | 9888 struct UniformMatrix4x2fvImmediate { |
| 9819 typedef UniformMatrix4x2fvImmediate ValueType; | 9889 typedef UniformMatrix4x2fvImmediate ValueType; |
| 9820 static const CommandId kCmdId = kUniformMatrix4x2fvImmediate; | 9890 static const CommandId kCmdId = kUniformMatrix4x2fvImmediate; |
| 9821 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9891 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9822 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9892 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9823 | 9893 |
| 9824 static uint32_t ComputeDataSize(GLsizei count) { | 9894 static uint32_t ComputeDataSize(GLsizei count) { |
| 9825 return static_cast<uint32_t>(sizeof(GLfloat) * 8 * count); // NOLINT | 9895 return static_cast<uint32_t>(sizeof(GLfloat) * 8 * count); // NOLINT |
| 9826 } | 9896 } |
| 9827 | 9897 |
| 9828 static uint32_t ComputeSize(GLsizei count) { | 9898 static uint32_t ComputeSize(GLsizei count) { |
| 9829 return static_cast<uint32_t>(sizeof(ValueType) + | 9899 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9830 ComputeDataSize(count)); // NOLINT | 9900 ComputeDataSize(count)); // NOLINT |
| 9831 } | 9901 } |
| 9832 | 9902 |
| 9833 void SetHeader(GLsizei count) { | 9903 void SetHeader(GLsizei count) { |
| 9834 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); | 9904 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); |
| 9835 } | 9905 } |
| 9836 | 9906 |
| 9837 void Init(GLint _location, GLsizei _count, const GLfloat* _value) { | 9907 void Init(GLint _location, |
| 9908 GLsizei _count, |
| 9909 GLboolean _transpose, |
| 9910 const GLfloat* _value) { |
| 9838 SetHeader(_count); | 9911 SetHeader(_count); |
| 9839 location = _location; | 9912 location = _location; |
| 9840 count = _count; | 9913 count = _count; |
| 9914 transpose = _transpose; |
| 9841 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); | 9915 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); |
| 9842 } | 9916 } |
| 9843 | 9917 |
| 9844 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _value) { | 9918 void* Set(void* cmd, |
| 9845 static_cast<ValueType*>(cmd)->Init(_location, _count, _value); | 9919 GLint _location, |
| 9920 GLsizei _count, |
| 9921 GLboolean _transpose, |
| 9922 const GLfloat* _value) { |
| 9923 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); |
| 9846 const uint32_t size = ComputeSize(_count); | 9924 const uint32_t size = ComputeSize(_count); |
| 9847 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 9925 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 9848 } | 9926 } |
| 9849 | 9927 |
| 9850 gpu::CommandHeader header; | 9928 gpu::CommandHeader header; |
| 9851 int32_t location; | 9929 int32_t location; |
| 9852 int32_t count; | 9930 int32_t count; |
| 9853 static const uint32_t transpose = false; | 9931 uint32_t transpose; |
| 9854 }; | 9932 }; |
| 9855 | 9933 |
| 9856 static_assert(sizeof(UniformMatrix4x2fvImmediate) == 12, | 9934 static_assert(sizeof(UniformMatrix4x2fvImmediate) == 16, |
| 9857 "size of UniformMatrix4x2fvImmediate should be 12"); | 9935 "size of UniformMatrix4x2fvImmediate should be 16"); |
| 9858 static_assert(offsetof(UniformMatrix4x2fvImmediate, header) == 0, | 9936 static_assert(offsetof(UniformMatrix4x2fvImmediate, header) == 0, |
| 9859 "offset of UniformMatrix4x2fvImmediate header should be 0"); | 9937 "offset of UniformMatrix4x2fvImmediate header should be 0"); |
| 9860 static_assert(offsetof(UniformMatrix4x2fvImmediate, location) == 4, | 9938 static_assert(offsetof(UniformMatrix4x2fvImmediate, location) == 4, |
| 9861 "offset of UniformMatrix4x2fvImmediate location should be 4"); | 9939 "offset of UniformMatrix4x2fvImmediate location should be 4"); |
| 9862 static_assert(offsetof(UniformMatrix4x2fvImmediate, count) == 8, | 9940 static_assert(offsetof(UniformMatrix4x2fvImmediate, count) == 8, |
| 9863 "offset of UniformMatrix4x2fvImmediate count should be 8"); | 9941 "offset of UniformMatrix4x2fvImmediate count should be 8"); |
| 9942 static_assert(offsetof(UniformMatrix4x2fvImmediate, transpose) == 12, |
| 9943 "offset of UniformMatrix4x2fvImmediate transpose should be 12"); |
| 9864 | 9944 |
| 9865 struct UniformMatrix4x3fvImmediate { | 9945 struct UniformMatrix4x3fvImmediate { |
| 9866 typedef UniformMatrix4x3fvImmediate ValueType; | 9946 typedef UniformMatrix4x3fvImmediate ValueType; |
| 9867 static const CommandId kCmdId = kUniformMatrix4x3fvImmediate; | 9947 static const CommandId kCmdId = kUniformMatrix4x3fvImmediate; |
| 9868 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 9948 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 9869 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9949 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9870 | 9950 |
| 9871 static uint32_t ComputeDataSize(GLsizei count) { | 9951 static uint32_t ComputeDataSize(GLsizei count) { |
| 9872 return static_cast<uint32_t>(sizeof(GLfloat) * 12 * count); // NOLINT | 9952 return static_cast<uint32_t>(sizeof(GLfloat) * 12 * count); // NOLINT |
| 9873 } | 9953 } |
| 9874 | 9954 |
| 9875 static uint32_t ComputeSize(GLsizei count) { | 9955 static uint32_t ComputeSize(GLsizei count) { |
| 9876 return static_cast<uint32_t>(sizeof(ValueType) + | 9956 return static_cast<uint32_t>(sizeof(ValueType) + |
| 9877 ComputeDataSize(count)); // NOLINT | 9957 ComputeDataSize(count)); // NOLINT |
| 9878 } | 9958 } |
| 9879 | 9959 |
| 9880 void SetHeader(GLsizei count) { | 9960 void SetHeader(GLsizei count) { |
| 9881 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); | 9961 header.SetCmdByTotalSize<ValueType>(ComputeSize(count)); |
| 9882 } | 9962 } |
| 9883 | 9963 |
| 9884 void Init(GLint _location, GLsizei _count, const GLfloat* _value) { | 9964 void Init(GLint _location, |
| 9965 GLsizei _count, |
| 9966 GLboolean _transpose, |
| 9967 const GLfloat* _value) { |
| 9885 SetHeader(_count); | 9968 SetHeader(_count); |
| 9886 location = _location; | 9969 location = _location; |
| 9887 count = _count; | 9970 count = _count; |
| 9971 transpose = _transpose; |
| 9888 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); | 9972 memcpy(ImmediateDataAddress(this), _value, ComputeDataSize(_count)); |
| 9889 } | 9973 } |
| 9890 | 9974 |
| 9891 void* Set(void* cmd, GLint _location, GLsizei _count, const GLfloat* _value) { | 9975 void* Set(void* cmd, |
| 9892 static_cast<ValueType*>(cmd)->Init(_location, _count, _value); | 9976 GLint _location, |
| 9977 GLsizei _count, |
| 9978 GLboolean _transpose, |
| 9979 const GLfloat* _value) { |
| 9980 static_cast<ValueType*>(cmd)->Init(_location, _count, _transpose, _value); |
| 9893 const uint32_t size = ComputeSize(_count); | 9981 const uint32_t size = ComputeSize(_count); |
| 9894 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); | 9982 return NextImmediateCmdAddressTotalSize<ValueType>(cmd, size); |
| 9895 } | 9983 } |
| 9896 | 9984 |
| 9897 gpu::CommandHeader header; | 9985 gpu::CommandHeader header; |
| 9898 int32_t location; | 9986 int32_t location; |
| 9899 int32_t count; | 9987 int32_t count; |
| 9900 static const uint32_t transpose = false; | 9988 uint32_t transpose; |
| 9901 }; | 9989 }; |
| 9902 | 9990 |
| 9903 static_assert(sizeof(UniformMatrix4x3fvImmediate) == 12, | 9991 static_assert(sizeof(UniformMatrix4x3fvImmediate) == 16, |
| 9904 "size of UniformMatrix4x3fvImmediate should be 12"); | 9992 "size of UniformMatrix4x3fvImmediate should be 16"); |
| 9905 static_assert(offsetof(UniformMatrix4x3fvImmediate, header) == 0, | 9993 static_assert(offsetof(UniformMatrix4x3fvImmediate, header) == 0, |
| 9906 "offset of UniformMatrix4x3fvImmediate header should be 0"); | 9994 "offset of UniformMatrix4x3fvImmediate header should be 0"); |
| 9907 static_assert(offsetof(UniformMatrix4x3fvImmediate, location) == 4, | 9995 static_assert(offsetof(UniformMatrix4x3fvImmediate, location) == 4, |
| 9908 "offset of UniformMatrix4x3fvImmediate location should be 4"); | 9996 "offset of UniformMatrix4x3fvImmediate location should be 4"); |
| 9909 static_assert(offsetof(UniformMatrix4x3fvImmediate, count) == 8, | 9997 static_assert(offsetof(UniformMatrix4x3fvImmediate, count) == 8, |
| 9910 "offset of UniformMatrix4x3fvImmediate count should be 8"); | 9998 "offset of UniformMatrix4x3fvImmediate count should be 8"); |
| 9999 static_assert(offsetof(UniformMatrix4x3fvImmediate, transpose) == 12, |
| 10000 "offset of UniformMatrix4x3fvImmediate transpose should be 12"); |
| 9911 | 10001 |
| 9912 struct UseProgram { | 10002 struct UseProgram { |
| 9913 typedef UseProgram ValueType; | 10003 typedef UseProgram ValueType; |
| 9914 static const CommandId kCmdId = kUseProgram; | 10004 static const CommandId kCmdId = kUseProgram; |
| 9915 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10005 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9916 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10006 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9917 | 10007 |
| 9918 static uint32_t ComputeSize() { | 10008 static uint32_t ComputeSize() { |
| 9919 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10009 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 9920 } | 10010 } |
| (...skipping 5687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15608 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, | 15698 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, |
| 15609 "offset of GetFragDataIndexEXT program should be 4"); | 15699 "offset of GetFragDataIndexEXT program should be 4"); |
| 15610 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, | 15700 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, |
| 15611 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); | 15701 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); |
| 15612 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, | 15702 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, |
| 15613 "offset of GetFragDataIndexEXT index_shm_id should be 12"); | 15703 "offset of GetFragDataIndexEXT index_shm_id should be 12"); |
| 15614 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, | 15704 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, |
| 15615 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); | 15705 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); |
| 15616 | 15706 |
| 15617 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15707 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| OLD | NEW |