| 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 2812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2823 "offset of GetActiveAttrib program should be 4"); | 2823 "offset of GetActiveAttrib program should be 4"); |
| 2824 static_assert(offsetof(GetActiveAttrib, index) == 8, | 2824 static_assert(offsetof(GetActiveAttrib, index) == 8, |
| 2825 "offset of GetActiveAttrib index should be 8"); | 2825 "offset of GetActiveAttrib index should be 8"); |
| 2826 static_assert(offsetof(GetActiveAttrib, name_bucket_id) == 12, | 2826 static_assert(offsetof(GetActiveAttrib, name_bucket_id) == 12, |
| 2827 "offset of GetActiveAttrib name_bucket_id should be 12"); | 2827 "offset of GetActiveAttrib name_bucket_id should be 12"); |
| 2828 static_assert(offsetof(GetActiveAttrib, result_shm_id) == 16, | 2828 static_assert(offsetof(GetActiveAttrib, result_shm_id) == 16, |
| 2829 "offset of GetActiveAttrib result_shm_id should be 16"); | 2829 "offset of GetActiveAttrib result_shm_id should be 16"); |
| 2830 static_assert(offsetof(GetActiveAttrib, result_shm_offset) == 20, | 2830 static_assert(offsetof(GetActiveAttrib, result_shm_offset) == 20, |
| 2831 "offset of GetActiveAttrib result_shm_offset should be 20"); | 2831 "offset of GetActiveAttrib result_shm_offset should be 20"); |
| 2832 static_assert(offsetof(GetActiveAttrib::Result, success) == 0, | 2832 static_assert(offsetof(GetActiveAttrib::Result, success) == 0, |
| 2833 "offset of GetActiveAttrib Result success should be 0"); | 2833 "offset of GetActiveAttrib Result success should be " |
| 2834 "0"); |
| 2834 static_assert(offsetof(GetActiveAttrib::Result, size) == 4, | 2835 static_assert(offsetof(GetActiveAttrib::Result, size) == 4, |
| 2835 "offset of GetActiveAttrib Result size should be 4"); | 2836 "offset of GetActiveAttrib Result size should be " |
| 2837 "4"); |
| 2836 static_assert(offsetof(GetActiveAttrib::Result, type) == 8, | 2838 static_assert(offsetof(GetActiveAttrib::Result, type) == 8, |
| 2837 "offset of GetActiveAttrib Result type should be 8"); | 2839 "offset of GetActiveAttrib Result type should be " |
| 2840 "8"); |
| 2838 | 2841 |
| 2839 struct GetActiveUniform { | 2842 struct GetActiveUniform { |
| 2840 typedef GetActiveUniform ValueType; | 2843 typedef GetActiveUniform ValueType; |
| 2841 static const CommandId kCmdId = kGetActiveUniform; | 2844 static const CommandId kCmdId = kGetActiveUniform; |
| 2842 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2845 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2843 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2846 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2844 | 2847 |
| 2845 struct Result { | 2848 struct Result { |
| 2846 int32_t success; | 2849 int32_t success; |
| 2847 int32_t size; | 2850 int32_t size; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2894 "offset of GetActiveUniform program should be 4"); | 2897 "offset of GetActiveUniform program should be 4"); |
| 2895 static_assert(offsetof(GetActiveUniform, index) == 8, | 2898 static_assert(offsetof(GetActiveUniform, index) == 8, |
| 2896 "offset of GetActiveUniform index should be 8"); | 2899 "offset of GetActiveUniform index should be 8"); |
| 2897 static_assert(offsetof(GetActiveUniform, name_bucket_id) == 12, | 2900 static_assert(offsetof(GetActiveUniform, name_bucket_id) == 12, |
| 2898 "offset of GetActiveUniform name_bucket_id should be 12"); | 2901 "offset of GetActiveUniform name_bucket_id should be 12"); |
| 2899 static_assert(offsetof(GetActiveUniform, result_shm_id) == 16, | 2902 static_assert(offsetof(GetActiveUniform, result_shm_id) == 16, |
| 2900 "offset of GetActiveUniform result_shm_id should be 16"); | 2903 "offset of GetActiveUniform result_shm_id should be 16"); |
| 2901 static_assert(offsetof(GetActiveUniform, result_shm_offset) == 20, | 2904 static_assert(offsetof(GetActiveUniform, result_shm_offset) == 20, |
| 2902 "offset of GetActiveUniform result_shm_offset should be 20"); | 2905 "offset of GetActiveUniform result_shm_offset should be 20"); |
| 2903 static_assert(offsetof(GetActiveUniform::Result, success) == 0, | 2906 static_assert(offsetof(GetActiveUniform::Result, success) == 0, |
| 2904 "offset of GetActiveUniform Result success should be 0"); | 2907 "offset of GetActiveUniform Result success should be " |
| 2908 "0"); |
| 2905 static_assert(offsetof(GetActiveUniform::Result, size) == 4, | 2909 static_assert(offsetof(GetActiveUniform::Result, size) == 4, |
| 2906 "offset of GetActiveUniform Result size should be 4"); | 2910 "offset of GetActiveUniform Result size should be " |
| 2911 "4"); |
| 2907 static_assert(offsetof(GetActiveUniform::Result, type) == 8, | 2912 static_assert(offsetof(GetActiveUniform::Result, type) == 8, |
| 2908 "offset of GetActiveUniform Result type should be 8"); | 2913 "offset of GetActiveUniform Result type should be " |
| 2914 "8"); |
| 2909 | 2915 |
| 2910 struct GetAttachedShaders { | 2916 struct GetAttachedShaders { |
| 2911 typedef GetAttachedShaders ValueType; | 2917 typedef GetAttachedShaders ValueType; |
| 2912 static const CommandId kCmdId = kGetAttachedShaders; | 2918 static const CommandId kCmdId = kGetAttachedShaders; |
| 2913 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2919 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2914 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2920 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2915 | 2921 |
| 2916 typedef SizedResult<GLuint> Result; | 2922 typedef SizedResult<GLuint> Result; |
| 2917 | 2923 |
| 2918 static uint32_t ComputeSize() { | 2924 static uint32_t ComputeSize() { |
| (...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3792 static_assert(offsetof(GetShaderPrecisionFormat, shadertype) == 4, | 3798 static_assert(offsetof(GetShaderPrecisionFormat, shadertype) == 4, |
| 3793 "offset of GetShaderPrecisionFormat shadertype should be 4"); | 3799 "offset of GetShaderPrecisionFormat shadertype should be 4"); |
| 3794 static_assert(offsetof(GetShaderPrecisionFormat, precisiontype) == 8, | 3800 static_assert(offsetof(GetShaderPrecisionFormat, precisiontype) == 8, |
| 3795 "offset of GetShaderPrecisionFormat precisiontype should be 8"); | 3801 "offset of GetShaderPrecisionFormat precisiontype should be 8"); |
| 3796 static_assert(offsetof(GetShaderPrecisionFormat, result_shm_id) == 12, | 3802 static_assert(offsetof(GetShaderPrecisionFormat, result_shm_id) == 12, |
| 3797 "offset of GetShaderPrecisionFormat result_shm_id should be 12"); | 3803 "offset of GetShaderPrecisionFormat result_shm_id should be 12"); |
| 3798 static_assert( | 3804 static_assert( |
| 3799 offsetof(GetShaderPrecisionFormat, result_shm_offset) == 16, | 3805 offsetof(GetShaderPrecisionFormat, result_shm_offset) == 16, |
| 3800 "offset of GetShaderPrecisionFormat result_shm_offset should be 16"); | 3806 "offset of GetShaderPrecisionFormat result_shm_offset should be 16"); |
| 3801 static_assert(offsetof(GetShaderPrecisionFormat::Result, success) == 0, | 3807 static_assert(offsetof(GetShaderPrecisionFormat::Result, success) == 0, |
| 3802 "offset of GetShaderPrecisionFormat Result success should be 0"); | 3808 "offset of GetShaderPrecisionFormat Result success should be " |
| 3803 static_assert( | 3809 "0"); |
| 3804 offsetof(GetShaderPrecisionFormat::Result, min_range) == 4, | 3810 static_assert(offsetof(GetShaderPrecisionFormat::Result, min_range) == 4, |
| 3805 "offset of GetShaderPrecisionFormat Result min_range should be 4"); | 3811 "offset of GetShaderPrecisionFormat Result min_range should be " |
| 3806 static_assert( | 3812 "4"); |
| 3807 offsetof(GetShaderPrecisionFormat::Result, max_range) == 8, | 3813 static_assert(offsetof(GetShaderPrecisionFormat::Result, max_range) == 8, |
| 3808 "offset of GetShaderPrecisionFormat Result max_range should be 8"); | 3814 "offset of GetShaderPrecisionFormat Result max_range should be " |
| 3809 static_assert( | 3815 "8"); |
| 3810 offsetof(GetShaderPrecisionFormat::Result, precision) == 12, | 3816 static_assert(offsetof(GetShaderPrecisionFormat::Result, precision) == 12, |
| 3811 "offset of GetShaderPrecisionFormat Result precision should be 12"); | 3817 "offset of GetShaderPrecisionFormat Result precision should be " |
| 3818 "12"); |
| 3812 | 3819 |
| 3813 struct GetShaderSource { | 3820 struct GetShaderSource { |
| 3814 typedef GetShaderSource ValueType; | 3821 typedef GetShaderSource ValueType; |
| 3815 static const CommandId kCmdId = kGetShaderSource; | 3822 static const CommandId kCmdId = kGetShaderSource; |
| 3816 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3823 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3817 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3824 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3818 | 3825 |
| 3819 static uint32_t ComputeSize() { | 3826 static uint32_t ComputeSize() { |
| 3820 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3827 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3821 } | 3828 } |
| (...skipping 5868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9690 }; | 9697 }; |
| 9691 | 9698 |
| 9692 static_assert(sizeof(GetProgramInfoCHROMIUM) == 12, | 9699 static_assert(sizeof(GetProgramInfoCHROMIUM) == 12, |
| 9693 "size of GetProgramInfoCHROMIUM should be 12"); | 9700 "size of GetProgramInfoCHROMIUM should be 12"); |
| 9694 static_assert(offsetof(GetProgramInfoCHROMIUM, header) == 0, | 9701 static_assert(offsetof(GetProgramInfoCHROMIUM, header) == 0, |
| 9695 "offset of GetProgramInfoCHROMIUM header should be 0"); | 9702 "offset of GetProgramInfoCHROMIUM header should be 0"); |
| 9696 static_assert(offsetof(GetProgramInfoCHROMIUM, program) == 4, | 9703 static_assert(offsetof(GetProgramInfoCHROMIUM, program) == 4, |
| 9697 "offset of GetProgramInfoCHROMIUM program should be 4"); | 9704 "offset of GetProgramInfoCHROMIUM program should be 4"); |
| 9698 static_assert(offsetof(GetProgramInfoCHROMIUM, bucket_id) == 8, | 9705 static_assert(offsetof(GetProgramInfoCHROMIUM, bucket_id) == 8, |
| 9699 "offset of GetProgramInfoCHROMIUM bucket_id should be 8"); | 9706 "offset of GetProgramInfoCHROMIUM bucket_id should be 8"); |
| 9700 static_assert( | 9707 static_assert(offsetof(GetProgramInfoCHROMIUM::Result, link_status) == 0, |
| 9701 offsetof(GetProgramInfoCHROMIUM::Result, link_status) == 0, | 9708 "offset of GetProgramInfoCHROMIUM Result link_status should be " |
| 9702 "offset of GetProgramInfoCHROMIUM Result link_status should be 0"); | 9709 "0"); |
| 9703 static_assert( | 9710 static_assert(offsetof(GetProgramInfoCHROMIUM::Result, num_attribs) == 4, |
| 9704 offsetof(GetProgramInfoCHROMIUM::Result, num_attribs) == 4, | 9711 "offset of GetProgramInfoCHROMIUM Result num_attribs should be " |
| 9705 "offset of GetProgramInfoCHROMIUM Result num_attribs should be 4"); | 9712 "4"); |
| 9706 static_assert( | 9713 static_assert(offsetof(GetProgramInfoCHROMIUM::Result, num_uniforms) == 8, |
| 9707 offsetof(GetProgramInfoCHROMIUM::Result, num_uniforms) == 8, | 9714 "offset of GetProgramInfoCHROMIUM Result num_uniforms should be " |
| 9708 "offset of GetProgramInfoCHROMIUM Result num_uniforms should be 8"); | 9715 "8"); |
| 9709 | 9716 |
| 9710 struct GetTranslatedShaderSourceANGLE { | 9717 struct GetTranslatedShaderSourceANGLE { |
| 9711 typedef GetTranslatedShaderSourceANGLE ValueType; | 9718 typedef GetTranslatedShaderSourceANGLE ValueType; |
| 9712 static const CommandId kCmdId = kGetTranslatedShaderSourceANGLE; | 9719 static const CommandId kCmdId = kGetTranslatedShaderSourceANGLE; |
| 9713 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 9720 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 9714 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 9721 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 9715 | 9722 |
| 9716 static uint32_t ComputeSize() { | 9723 static uint32_t ComputeSize() { |
| 9717 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 9724 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 9718 } | 9725 } |
| (...skipping 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11352 | 11359 |
| 11353 gpu::CommandHeader header; | 11360 gpu::CommandHeader header; |
| 11354 }; | 11361 }; |
| 11355 | 11362 |
| 11356 static_assert(sizeof(BlendBarrierKHR) == 4, | 11363 static_assert(sizeof(BlendBarrierKHR) == 4, |
| 11357 "size of BlendBarrierKHR should be 4"); | 11364 "size of BlendBarrierKHR should be 4"); |
| 11358 static_assert(offsetof(BlendBarrierKHR, header) == 0, | 11365 static_assert(offsetof(BlendBarrierKHR, header) == 0, |
| 11359 "offset of BlendBarrierKHR header should be 0"); | 11366 "offset of BlendBarrierKHR header should be 0"); |
| 11360 | 11367 |
| 11361 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 11368 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| OLD | NEW |