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 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1873 void UniformBlockBinding(GLuint program, GLuint index, GLuint binding) { | 1873 void UniformBlockBinding(GLuint program, GLuint index, GLuint binding) { |
1874 gles2::cmds::UniformBlockBinding* c = | 1874 gles2::cmds::UniformBlockBinding* c = |
1875 GetCmdSpace<gles2::cmds::UniformBlockBinding>(); | 1875 GetCmdSpace<gles2::cmds::UniformBlockBinding>(); |
1876 if (c) { | 1876 if (c) { |
1877 c->Init(program, index, binding); | 1877 c->Init(program, index, binding); |
1878 } | 1878 } |
1879 } | 1879 } |
1880 | 1880 |
1881 void UniformMatrix2fvImmediate(GLint location, | 1881 void UniformMatrix2fvImmediate(GLint location, |
1882 GLsizei count, | 1882 GLsizei count, |
| 1883 GLboolean transpose, |
1883 const GLfloat* value) { | 1884 const GLfloat* value) { |
1884 const uint32_t size = | 1885 const uint32_t size = |
1885 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count); | 1886 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count); |
1886 gles2::cmds::UniformMatrix2fvImmediate* c = | 1887 gles2::cmds::UniformMatrix2fvImmediate* c = |
1887 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2fvImmediate>( | 1888 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2fvImmediate>( |
1888 size); | 1889 size); |
1889 if (c) { | 1890 if (c) { |
1890 c->Init(location, count, value); | 1891 c->Init(location, count, transpose, value); |
1891 } | 1892 } |
1892 } | 1893 } |
1893 | 1894 |
1894 void UniformMatrix2x3fvImmediate(GLint location, | 1895 void UniformMatrix2x3fvImmediate(GLint location, |
1895 GLsizei count, | 1896 GLsizei count, |
| 1897 GLboolean transpose, |
1896 const GLfloat* value) { | 1898 const GLfloat* value) { |
1897 const uint32_t size = | 1899 const uint32_t size = |
1898 gles2::cmds::UniformMatrix2x3fvImmediate::ComputeSize(count); | 1900 gles2::cmds::UniformMatrix2x3fvImmediate::ComputeSize(count); |
1899 gles2::cmds::UniformMatrix2x3fvImmediate* c = | 1901 gles2::cmds::UniformMatrix2x3fvImmediate* c = |
1900 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2x3fvImmediate>( | 1902 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2x3fvImmediate>( |
1901 size); | 1903 size); |
1902 if (c) { | 1904 if (c) { |
1903 c->Init(location, count, value); | 1905 c->Init(location, count, transpose, value); |
1904 } | 1906 } |
1905 } | 1907 } |
1906 | 1908 |
1907 void UniformMatrix2x4fvImmediate(GLint location, | 1909 void UniformMatrix2x4fvImmediate(GLint location, |
1908 GLsizei count, | 1910 GLsizei count, |
| 1911 GLboolean transpose, |
1909 const GLfloat* value) { | 1912 const GLfloat* value) { |
1910 const uint32_t size = | 1913 const uint32_t size = |
1911 gles2::cmds::UniformMatrix2x4fvImmediate::ComputeSize(count); | 1914 gles2::cmds::UniformMatrix2x4fvImmediate::ComputeSize(count); |
1912 gles2::cmds::UniformMatrix2x4fvImmediate* c = | 1915 gles2::cmds::UniformMatrix2x4fvImmediate* c = |
1913 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2x4fvImmediate>( | 1916 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2x4fvImmediate>( |
1914 size); | 1917 size); |
1915 if (c) { | 1918 if (c) { |
1916 c->Init(location, count, value); | 1919 c->Init(location, count, transpose, value); |
1917 } | 1920 } |
1918 } | 1921 } |
1919 | 1922 |
1920 void UniformMatrix3fvImmediate(GLint location, | 1923 void UniformMatrix3fvImmediate(GLint location, |
1921 GLsizei count, | 1924 GLsizei count, |
| 1925 GLboolean transpose, |
1922 const GLfloat* value) { | 1926 const GLfloat* value) { |
1923 const uint32_t size = | 1927 const uint32_t size = |
1924 gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count); | 1928 gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count); |
1925 gles2::cmds::UniformMatrix3fvImmediate* c = | 1929 gles2::cmds::UniformMatrix3fvImmediate* c = |
1926 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3fvImmediate>( | 1930 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3fvImmediate>( |
1927 size); | 1931 size); |
1928 if (c) { | 1932 if (c) { |
1929 c->Init(location, count, value); | 1933 c->Init(location, count, transpose, value); |
1930 } | 1934 } |
1931 } | 1935 } |
1932 | 1936 |
1933 void UniformMatrix3x2fvImmediate(GLint location, | 1937 void UniformMatrix3x2fvImmediate(GLint location, |
1934 GLsizei count, | 1938 GLsizei count, |
| 1939 GLboolean transpose, |
1935 const GLfloat* value) { | 1940 const GLfloat* value) { |
1936 const uint32_t size = | 1941 const uint32_t size = |
1937 gles2::cmds::UniformMatrix3x2fvImmediate::ComputeSize(count); | 1942 gles2::cmds::UniformMatrix3x2fvImmediate::ComputeSize(count); |
1938 gles2::cmds::UniformMatrix3x2fvImmediate* c = | 1943 gles2::cmds::UniformMatrix3x2fvImmediate* c = |
1939 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3x2fvImmediate>( | 1944 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3x2fvImmediate>( |
1940 size); | 1945 size); |
1941 if (c) { | 1946 if (c) { |
1942 c->Init(location, count, value); | 1947 c->Init(location, count, transpose, value); |
1943 } | 1948 } |
1944 } | 1949 } |
1945 | 1950 |
1946 void UniformMatrix3x4fvImmediate(GLint location, | 1951 void UniformMatrix3x4fvImmediate(GLint location, |
1947 GLsizei count, | 1952 GLsizei count, |
| 1953 GLboolean transpose, |
1948 const GLfloat* value) { | 1954 const GLfloat* value) { |
1949 const uint32_t size = | 1955 const uint32_t size = |
1950 gles2::cmds::UniformMatrix3x4fvImmediate::ComputeSize(count); | 1956 gles2::cmds::UniformMatrix3x4fvImmediate::ComputeSize(count); |
1951 gles2::cmds::UniformMatrix3x4fvImmediate* c = | 1957 gles2::cmds::UniformMatrix3x4fvImmediate* c = |
1952 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3x4fvImmediate>( | 1958 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3x4fvImmediate>( |
1953 size); | 1959 size); |
1954 if (c) { | 1960 if (c) { |
1955 c->Init(location, count, value); | 1961 c->Init(location, count, transpose, value); |
1956 } | 1962 } |
1957 } | 1963 } |
1958 | 1964 |
1959 void UniformMatrix4fvImmediate(GLint location, | 1965 void UniformMatrix4fvImmediate(GLint location, |
1960 GLsizei count, | 1966 GLsizei count, |
| 1967 GLboolean transpose, |
1961 const GLfloat* value) { | 1968 const GLfloat* value) { |
1962 const uint32_t size = | 1969 const uint32_t size = |
1963 gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count); | 1970 gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count); |
1964 gles2::cmds::UniformMatrix4fvImmediate* c = | 1971 gles2::cmds::UniformMatrix4fvImmediate* c = |
1965 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4fvImmediate>( | 1972 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4fvImmediate>( |
1966 size); | 1973 size); |
1967 if (c) { | 1974 if (c) { |
1968 c->Init(location, count, value); | 1975 c->Init(location, count, transpose, value); |
1969 } | 1976 } |
1970 } | 1977 } |
1971 | 1978 |
1972 void UniformMatrix4x2fvImmediate(GLint location, | 1979 void UniformMatrix4x2fvImmediate(GLint location, |
1973 GLsizei count, | 1980 GLsizei count, |
| 1981 GLboolean transpose, |
1974 const GLfloat* value) { | 1982 const GLfloat* value) { |
1975 const uint32_t size = | 1983 const uint32_t size = |
1976 gles2::cmds::UniformMatrix4x2fvImmediate::ComputeSize(count); | 1984 gles2::cmds::UniformMatrix4x2fvImmediate::ComputeSize(count); |
1977 gles2::cmds::UniformMatrix4x2fvImmediate* c = | 1985 gles2::cmds::UniformMatrix4x2fvImmediate* c = |
1978 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4x2fvImmediate>( | 1986 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4x2fvImmediate>( |
1979 size); | 1987 size); |
1980 if (c) { | 1988 if (c) { |
1981 c->Init(location, count, value); | 1989 c->Init(location, count, transpose, value); |
1982 } | 1990 } |
1983 } | 1991 } |
1984 | 1992 |
1985 void UniformMatrix4x3fvImmediate(GLint location, | 1993 void UniformMatrix4x3fvImmediate(GLint location, |
1986 GLsizei count, | 1994 GLsizei count, |
| 1995 GLboolean transpose, |
1987 const GLfloat* value) { | 1996 const GLfloat* value) { |
1988 const uint32_t size = | 1997 const uint32_t size = |
1989 gles2::cmds::UniformMatrix4x3fvImmediate::ComputeSize(count); | 1998 gles2::cmds::UniformMatrix4x3fvImmediate::ComputeSize(count); |
1990 gles2::cmds::UniformMatrix4x3fvImmediate* c = | 1999 gles2::cmds::UniformMatrix4x3fvImmediate* c = |
1991 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4x3fvImmediate>( | 2000 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4x3fvImmediate>( |
1992 size); | 2001 size); |
1993 if (c) { | 2002 if (c) { |
1994 c->Init(location, count, value); | 2003 c->Init(location, count, transpose, value); |
1995 } | 2004 } |
1996 } | 2005 } |
1997 | 2006 |
1998 void UseProgram(GLuint program) { | 2007 void UseProgram(GLuint program) { |
1999 gles2::cmds::UseProgram* c = GetCmdSpace<gles2::cmds::UseProgram>(); | 2008 gles2::cmds::UseProgram* c = GetCmdSpace<gles2::cmds::UseProgram>(); |
2000 if (c) { | 2009 if (c) { |
2001 c->Init(program); | 2010 c->Init(program); |
2002 } | 2011 } |
2003 } | 2012 } |
2004 | 2013 |
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3181 uint32_t index_shm_id, | 3190 uint32_t index_shm_id, |
3182 uint32_t index_shm_offset) { | 3191 uint32_t index_shm_offset) { |
3183 gles2::cmds::GetFragDataIndexEXT* c = | 3192 gles2::cmds::GetFragDataIndexEXT* c = |
3184 GetCmdSpace<gles2::cmds::GetFragDataIndexEXT>(); | 3193 GetCmdSpace<gles2::cmds::GetFragDataIndexEXT>(); |
3185 if (c) { | 3194 if (c) { |
3186 c->Init(program, name_bucket_id, index_shm_id, index_shm_offset); | 3195 c->Init(program, name_bucket_id, index_shm_id, index_shm_offset); |
3187 } | 3196 } |
3188 } | 3197 } |
3189 | 3198 |
3190 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 3199 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
OLD | NEW |