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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 uint32_t name_bucket_id, | 695 uint32_t name_bucket_id, |
696 uint32_t result_shm_id, | 696 uint32_t result_shm_id, |
697 uint32_t result_shm_offset) { | 697 uint32_t result_shm_offset) { |
698 gles2::cmds::GetActiveUniform* c = | 698 gles2::cmds::GetActiveUniform* c = |
699 GetCmdSpace<gles2::cmds::GetActiveUniform>(); | 699 GetCmdSpace<gles2::cmds::GetActiveUniform>(); |
700 if (c) { | 700 if (c) { |
701 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset); | 701 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset); |
702 } | 702 } |
703 } | 703 } |
704 | 704 |
| 705 void GetActiveUniformBlockiv(GLuint program, |
| 706 GLuint index, |
| 707 GLenum pname, |
| 708 uint32_t params_shm_id, |
| 709 uint32_t params_shm_offset) { |
| 710 gles2::cmds::GetActiveUniformBlockiv* c = |
| 711 GetCmdSpace<gles2::cmds::GetActiveUniformBlockiv>(); |
| 712 if (c) { |
| 713 c->Init(program, index, pname, params_shm_id, params_shm_offset); |
| 714 } |
| 715 } |
| 716 |
705 void GetActiveUniformBlockName(GLuint program, | 717 void GetActiveUniformBlockName(GLuint program, |
706 GLuint index, | 718 GLuint index, |
707 uint32_t name_bucket_id, | 719 uint32_t name_bucket_id, |
708 uint32_t result_shm_id, | 720 uint32_t result_shm_id, |
709 uint32_t result_shm_offset) { | 721 uint32_t result_shm_offset) { |
710 gles2::cmds::GetActiveUniformBlockName* c = | 722 gles2::cmds::GetActiveUniformBlockName* c = |
711 GetCmdSpace<gles2::cmds::GetActiveUniformBlockName>(); | 723 GetCmdSpace<gles2::cmds::GetActiveUniformBlockName>(); |
712 if (c) { | 724 if (c) { |
713 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset); | 725 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset); |
714 } | 726 } |
715 } | 727 } |
716 | 728 |
| 729 void GetActiveUniformsiv(GLuint program, |
| 730 uint32_t indices_bucket_id, |
| 731 GLenum pname, |
| 732 uint32_t params_shm_id, |
| 733 uint32_t params_shm_offset) { |
| 734 gles2::cmds::GetActiveUniformsiv* c = |
| 735 GetCmdSpace<gles2::cmds::GetActiveUniformsiv>(); |
| 736 if (c) { |
| 737 c->Init(program, indices_bucket_id, pname, params_shm_id, |
| 738 params_shm_offset); |
| 739 } |
| 740 } |
| 741 |
717 void GetAttachedShaders(GLuint program, | 742 void GetAttachedShaders(GLuint program, |
718 uint32_t result_shm_id, | 743 uint32_t result_shm_id, |
719 uint32_t result_shm_offset, | 744 uint32_t result_shm_offset, |
720 uint32_t result_size) { | 745 uint32_t result_size) { |
721 gles2::cmds::GetAttachedShaders* c = | 746 gles2::cmds::GetAttachedShaders* c = |
722 GetCmdSpace<gles2::cmds::GetAttachedShaders>(); | 747 GetCmdSpace<gles2::cmds::GetAttachedShaders>(); |
723 if (c) { | 748 if (c) { |
724 c->Init(program, result_shm_id, result_shm_offset, result_size); | 749 c->Init(program, result_shm_id, result_shm_offset, result_size); |
725 } | 750 } |
726 } | 751 } |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 GLenum pname, | 951 GLenum pname, |
927 uint32_t params_shm_id, | 952 uint32_t params_shm_id, |
928 uint32_t params_shm_offset) { | 953 uint32_t params_shm_offset) { |
929 gles2::cmds::GetTexParameteriv* c = | 954 gles2::cmds::GetTexParameteriv* c = |
930 GetCmdSpace<gles2::cmds::GetTexParameteriv>(); | 955 GetCmdSpace<gles2::cmds::GetTexParameteriv>(); |
931 if (c) { | 956 if (c) { |
932 c->Init(target, pname, params_shm_id, params_shm_offset); | 957 c->Init(target, pname, params_shm_id, params_shm_offset); |
933 } | 958 } |
934 } | 959 } |
935 | 960 |
| 961 void GetTransformFeedbackVarying(GLuint program, |
| 962 GLuint index, |
| 963 uint32_t name_bucket_id, |
| 964 uint32_t result_shm_id, |
| 965 uint32_t result_shm_offset) { |
| 966 gles2::cmds::GetTransformFeedbackVarying* c = |
| 967 GetCmdSpace<gles2::cmds::GetTransformFeedbackVarying>(); |
| 968 if (c) { |
| 969 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset); |
| 970 } |
| 971 } |
| 972 |
936 void GetUniformBlockIndex(GLuint program, | 973 void GetUniformBlockIndex(GLuint program, |
937 uint32_t name_bucket_id, | 974 uint32_t name_bucket_id, |
938 uint32_t index_shm_id, | 975 uint32_t index_shm_id, |
939 uint32_t index_shm_offset) { | 976 uint32_t index_shm_offset) { |
940 gles2::cmds::GetUniformBlockIndex* c = | 977 gles2::cmds::GetUniformBlockIndex* c = |
941 GetCmdSpace<gles2::cmds::GetUniformBlockIndex>(); | 978 GetCmdSpace<gles2::cmds::GetUniformBlockIndex>(); |
942 if (c) { | 979 if (c) { |
943 c->Init(program, name_bucket_id, index_shm_id, index_shm_offset); | 980 c->Init(program, name_bucket_id, index_shm_id, index_shm_offset); |
944 } | 981 } |
945 } | 982 } |
(...skipping 11 matching lines...) Expand all Loading... |
957 void GetUniformiv(GLuint program, | 994 void GetUniformiv(GLuint program, |
958 GLint location, | 995 GLint location, |
959 uint32_t params_shm_id, | 996 uint32_t params_shm_id, |
960 uint32_t params_shm_offset) { | 997 uint32_t params_shm_offset) { |
961 gles2::cmds::GetUniformiv* c = GetCmdSpace<gles2::cmds::GetUniformiv>(); | 998 gles2::cmds::GetUniformiv* c = GetCmdSpace<gles2::cmds::GetUniformiv>(); |
962 if (c) { | 999 if (c) { |
963 c->Init(program, location, params_shm_id, params_shm_offset); | 1000 c->Init(program, location, params_shm_id, params_shm_offset); |
964 } | 1001 } |
965 } | 1002 } |
966 | 1003 |
| 1004 void GetUniformIndices(GLuint program, |
| 1005 uint32_t names_bucket_id, |
| 1006 uint32_t indices_shm_id, |
| 1007 uint32_t indices_shm_offset) { |
| 1008 gles2::cmds::GetUniformIndices* c = |
| 1009 GetCmdSpace<gles2::cmds::GetUniformIndices>(); |
| 1010 if (c) { |
| 1011 c->Init(program, names_bucket_id, indices_shm_id, indices_shm_offset); |
| 1012 } |
| 1013 } |
| 1014 |
967 void GetUniformLocation(GLuint program, | 1015 void GetUniformLocation(GLuint program, |
968 uint32_t name_bucket_id, | 1016 uint32_t name_bucket_id, |
969 uint32_t location_shm_id, | 1017 uint32_t location_shm_id, |
970 uint32_t location_shm_offset) { | 1018 uint32_t location_shm_offset) { |
971 gles2::cmds::GetUniformLocation* c = | 1019 gles2::cmds::GetUniformLocation* c = |
972 GetCmdSpace<gles2::cmds::GetUniformLocation>(); | 1020 GetCmdSpace<gles2::cmds::GetUniformLocation>(); |
973 if (c) { | 1021 if (c) { |
974 c->Init(program, name_bucket_id, location_shm_id, location_shm_offset); | 1022 c->Init(program, name_bucket_id, location_shm_id, location_shm_offset); |
975 } | 1023 } |
976 } | 1024 } |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 | 1701 |
1654 void Uniform4uivImmediate(GLint location, GLsizei count, const GLuint* v) { | 1702 void Uniform4uivImmediate(GLint location, GLsizei count, const GLuint* v) { |
1655 const uint32_t size = gles2::cmds::Uniform4uivImmediate::ComputeSize(count); | 1703 const uint32_t size = gles2::cmds::Uniform4uivImmediate::ComputeSize(count); |
1656 gles2::cmds::Uniform4uivImmediate* c = | 1704 gles2::cmds::Uniform4uivImmediate* c = |
1657 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4uivImmediate>(size); | 1705 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4uivImmediate>(size); |
1658 if (c) { | 1706 if (c) { |
1659 c->Init(location, count, v); | 1707 c->Init(location, count, v); |
1660 } | 1708 } |
1661 } | 1709 } |
1662 | 1710 |
| 1711 void UniformBlockBinding(GLuint program, GLuint index, GLuint binding) { |
| 1712 gles2::cmds::UniformBlockBinding* c = |
| 1713 GetCmdSpace<gles2::cmds::UniformBlockBinding>(); |
| 1714 if (c) { |
| 1715 c->Init(program, index, binding); |
| 1716 } |
| 1717 } |
| 1718 |
1663 void UniformMatrix2fvImmediate(GLint location, | 1719 void UniformMatrix2fvImmediate(GLint location, |
1664 GLsizei count, | 1720 GLsizei count, |
1665 const GLfloat* value) { | 1721 const GLfloat* value) { |
1666 const uint32_t size = | 1722 const uint32_t size = |
1667 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count); | 1723 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count); |
1668 gles2::cmds::UniformMatrix2fvImmediate* c = | 1724 gles2::cmds::UniformMatrix2fvImmediate* c = |
1669 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2fvImmediate>( | 1725 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2fvImmediate>( |
1670 size); | 1726 size); |
1671 if (c) { | 1727 if (c) { |
1672 c->Init(location, count, value); | 1728 c->Init(location, count, value); |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2169 } | 2225 } |
2170 | 2226 |
2171 void GetUniformBlocksCHROMIUM(GLuint program, uint32_t bucket_id) { | 2227 void GetUniformBlocksCHROMIUM(GLuint program, uint32_t bucket_id) { |
2172 gles2::cmds::GetUniformBlocksCHROMIUM* c = | 2228 gles2::cmds::GetUniformBlocksCHROMIUM* c = |
2173 GetCmdSpace<gles2::cmds::GetUniformBlocksCHROMIUM>(); | 2229 GetCmdSpace<gles2::cmds::GetUniformBlocksCHROMIUM>(); |
2174 if (c) { | 2230 if (c) { |
2175 c->Init(program, bucket_id); | 2231 c->Init(program, bucket_id); |
2176 } | 2232 } |
2177 } | 2233 } |
2178 | 2234 |
| 2235 void GetTransformFeedbackVaryingsCHROMIUM(GLuint program, uint32_t bucket_id) { |
| 2236 gles2::cmds::GetTransformFeedbackVaryingsCHROMIUM* c = |
| 2237 GetCmdSpace<gles2::cmds::GetTransformFeedbackVaryingsCHROMIUM>(); |
| 2238 if (c) { |
| 2239 c->Init(program, bucket_id); |
| 2240 } |
| 2241 } |
| 2242 |
| 2243 void GetUniformsES3CHROMIUM(GLuint program, uint32_t bucket_id) { |
| 2244 gles2::cmds::GetUniformsES3CHROMIUM* c = |
| 2245 GetCmdSpace<gles2::cmds::GetUniformsES3CHROMIUM>(); |
| 2246 if (c) { |
| 2247 c->Init(program, bucket_id); |
| 2248 } |
| 2249 } |
| 2250 |
2179 void GetTranslatedShaderSourceANGLE(GLuint shader, uint32_t bucket_id) { | 2251 void GetTranslatedShaderSourceANGLE(GLuint shader, uint32_t bucket_id) { |
2180 gles2::cmds::GetTranslatedShaderSourceANGLE* c = | 2252 gles2::cmds::GetTranslatedShaderSourceANGLE* c = |
2181 GetCmdSpace<gles2::cmds::GetTranslatedShaderSourceANGLE>(); | 2253 GetCmdSpace<gles2::cmds::GetTranslatedShaderSourceANGLE>(); |
2182 if (c) { | 2254 if (c) { |
2183 c->Init(shader, bucket_id); | 2255 c->Init(shader, bucket_id); |
2184 } | 2256 } |
2185 } | 2257 } |
2186 | 2258 |
2187 void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) { | 2259 void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) { |
2188 gles2::cmds::PostSubBufferCHROMIUM* c = | 2260 gles2::cmds::PostSubBufferCHROMIUM* c = |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2545 } | 2617 } |
2546 | 2618 |
2547 void BlendBarrierKHR() { | 2619 void BlendBarrierKHR() { |
2548 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); | 2620 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); |
2549 if (c) { | 2621 if (c) { |
2550 c->Init(); | 2622 c->Init(); |
2551 } | 2623 } |
2552 } | 2624 } |
2553 | 2625 |
2554 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 2626 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
OLD | NEW |