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 5830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5841 "offset of GetVertexAttribiv header should be 0"); | 5841 "offset of GetVertexAttribiv header should be 0"); |
5842 static_assert(offsetof(GetVertexAttribiv, index) == 4, | 5842 static_assert(offsetof(GetVertexAttribiv, index) == 4, |
5843 "offset of GetVertexAttribiv index should be 4"); | 5843 "offset of GetVertexAttribiv index should be 4"); |
5844 static_assert(offsetof(GetVertexAttribiv, pname) == 8, | 5844 static_assert(offsetof(GetVertexAttribiv, pname) == 8, |
5845 "offset of GetVertexAttribiv pname should be 8"); | 5845 "offset of GetVertexAttribiv pname should be 8"); |
5846 static_assert(offsetof(GetVertexAttribiv, params_shm_id) == 12, | 5846 static_assert(offsetof(GetVertexAttribiv, params_shm_id) == 12, |
5847 "offset of GetVertexAttribiv params_shm_id should be 12"); | 5847 "offset of GetVertexAttribiv params_shm_id should be 12"); |
5848 static_assert(offsetof(GetVertexAttribiv, params_shm_offset) == 16, | 5848 static_assert(offsetof(GetVertexAttribiv, params_shm_offset) == 16, |
5849 "offset of GetVertexAttribiv params_shm_offset should be 16"); | 5849 "offset of GetVertexAttribiv params_shm_offset should be 16"); |
5850 | 5850 |
| 5851 struct GetVertexAttribIiv { |
| 5852 typedef GetVertexAttribIiv ValueType; |
| 5853 static const CommandId kCmdId = kGetVertexAttribIiv; |
| 5854 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5855 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5856 |
| 5857 typedef SizedResult<GLint> Result; |
| 5858 |
| 5859 static uint32_t ComputeSize() { |
| 5860 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5861 } |
| 5862 |
| 5863 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5864 |
| 5865 void Init(GLuint _index, |
| 5866 GLenum _pname, |
| 5867 uint32_t _params_shm_id, |
| 5868 uint32_t _params_shm_offset) { |
| 5869 SetHeader(); |
| 5870 index = _index; |
| 5871 pname = _pname; |
| 5872 params_shm_id = _params_shm_id; |
| 5873 params_shm_offset = _params_shm_offset; |
| 5874 } |
| 5875 |
| 5876 void* Set(void* cmd, |
| 5877 GLuint _index, |
| 5878 GLenum _pname, |
| 5879 uint32_t _params_shm_id, |
| 5880 uint32_t _params_shm_offset) { |
| 5881 static_cast<ValueType*>(cmd) |
| 5882 ->Init(_index, _pname, _params_shm_id, _params_shm_offset); |
| 5883 return NextCmdAddress<ValueType>(cmd); |
| 5884 } |
| 5885 |
| 5886 gpu::CommandHeader header; |
| 5887 uint32_t index; |
| 5888 uint32_t pname; |
| 5889 uint32_t params_shm_id; |
| 5890 uint32_t params_shm_offset; |
| 5891 }; |
| 5892 |
| 5893 static_assert(sizeof(GetVertexAttribIiv) == 20, |
| 5894 "size of GetVertexAttribIiv should be 20"); |
| 5895 static_assert(offsetof(GetVertexAttribIiv, header) == 0, |
| 5896 "offset of GetVertexAttribIiv header should be 0"); |
| 5897 static_assert(offsetof(GetVertexAttribIiv, index) == 4, |
| 5898 "offset of GetVertexAttribIiv index should be 4"); |
| 5899 static_assert(offsetof(GetVertexAttribIiv, pname) == 8, |
| 5900 "offset of GetVertexAttribIiv pname should be 8"); |
| 5901 static_assert(offsetof(GetVertexAttribIiv, params_shm_id) == 12, |
| 5902 "offset of GetVertexAttribIiv params_shm_id should be 12"); |
| 5903 static_assert(offsetof(GetVertexAttribIiv, params_shm_offset) == 16, |
| 5904 "offset of GetVertexAttribIiv params_shm_offset should be 16"); |
| 5905 |
| 5906 struct GetVertexAttribIuiv { |
| 5907 typedef GetVertexAttribIuiv ValueType; |
| 5908 static const CommandId kCmdId = kGetVertexAttribIuiv; |
| 5909 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5910 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5911 |
| 5912 typedef SizedResult<GLuint> Result; |
| 5913 |
| 5914 static uint32_t ComputeSize() { |
| 5915 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5916 } |
| 5917 |
| 5918 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5919 |
| 5920 void Init(GLuint _index, |
| 5921 GLenum _pname, |
| 5922 uint32_t _params_shm_id, |
| 5923 uint32_t _params_shm_offset) { |
| 5924 SetHeader(); |
| 5925 index = _index; |
| 5926 pname = _pname; |
| 5927 params_shm_id = _params_shm_id; |
| 5928 params_shm_offset = _params_shm_offset; |
| 5929 } |
| 5930 |
| 5931 void* Set(void* cmd, |
| 5932 GLuint _index, |
| 5933 GLenum _pname, |
| 5934 uint32_t _params_shm_id, |
| 5935 uint32_t _params_shm_offset) { |
| 5936 static_cast<ValueType*>(cmd) |
| 5937 ->Init(_index, _pname, _params_shm_id, _params_shm_offset); |
| 5938 return NextCmdAddress<ValueType>(cmd); |
| 5939 } |
| 5940 |
| 5941 gpu::CommandHeader header; |
| 5942 uint32_t index; |
| 5943 uint32_t pname; |
| 5944 uint32_t params_shm_id; |
| 5945 uint32_t params_shm_offset; |
| 5946 }; |
| 5947 |
| 5948 static_assert(sizeof(GetVertexAttribIuiv) == 20, |
| 5949 "size of GetVertexAttribIuiv should be 20"); |
| 5950 static_assert(offsetof(GetVertexAttribIuiv, header) == 0, |
| 5951 "offset of GetVertexAttribIuiv header should be 0"); |
| 5952 static_assert(offsetof(GetVertexAttribIuiv, index) == 4, |
| 5953 "offset of GetVertexAttribIuiv index should be 4"); |
| 5954 static_assert(offsetof(GetVertexAttribIuiv, pname) == 8, |
| 5955 "offset of GetVertexAttribIuiv pname should be 8"); |
| 5956 static_assert(offsetof(GetVertexAttribIuiv, params_shm_id) == 12, |
| 5957 "offset of GetVertexAttribIuiv params_shm_id should be 12"); |
| 5958 static_assert(offsetof(GetVertexAttribIuiv, params_shm_offset) == 16, |
| 5959 "offset of GetVertexAttribIuiv params_shm_offset should be 16"); |
| 5960 |
5851 struct GetVertexAttribPointerv { | 5961 struct GetVertexAttribPointerv { |
5852 typedef GetVertexAttribPointerv ValueType; | 5962 typedef GetVertexAttribPointerv ValueType; |
5853 static const CommandId kCmdId = kGetVertexAttribPointerv; | 5963 static const CommandId kCmdId = kGetVertexAttribPointerv; |
5854 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5964 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
5855 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5965 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
5856 | 5966 |
5857 typedef SizedResult<GLuint> Result; | 5967 typedef SizedResult<GLuint> Result; |
5858 | 5968 |
5859 static uint32_t ComputeSize() { | 5969 static uint32_t ComputeSize() { |
5860 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5970 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
(...skipping 7728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13589 | 13699 |
13590 gpu::CommandHeader header; | 13700 gpu::CommandHeader header; |
13591 }; | 13701 }; |
13592 | 13702 |
13593 static_assert(sizeof(BlendBarrierKHR) == 4, | 13703 static_assert(sizeof(BlendBarrierKHR) == 4, |
13594 "size of BlendBarrierKHR should be 4"); | 13704 "size of BlendBarrierKHR should be 4"); |
13595 static_assert(offsetof(BlendBarrierKHR, header) == 0, | 13705 static_assert(offsetof(BlendBarrierKHR, header) == 0, |
13596 "offset of BlendBarrierKHR header should be 0"); | 13706 "offset of BlendBarrierKHR header should be 0"); |
13597 | 13707 |
13598 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 13708 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |