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 |
11 // These functions emulate GLES2 over command buffers. | 11 // These functions emulate GLES2 over command buffers. |
12 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 12 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
13 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 13 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
14 | 14 |
15 void GLES2ActiveTexture(GLenum texture) { | 15 void GLES2ActiveTexture(GLenum texture) { |
16 gles2::GetGLContext()->ActiveTexture(texture); | 16 gles2::GetGLContext()->ActiveTexture(texture); |
17 } | 17 } |
18 void GLES2AttachShader(GLuint program, GLuint shader) { | 18 void GLES2AttachShader(GLuint program, GLuint shader) { |
19 gles2::GetGLContext()->AttachShader(program, shader); | 19 gles2::GetGLContext()->AttachShader(program, shader); |
20 } | 20 } |
21 void GLES2BindAttribLocation(GLuint program, GLuint index, const char* name) { | 21 void GLES2BindAttribLocation(GLuint program, GLuint index, const char* name) { |
22 gles2::GetGLContext()->BindAttribLocation(program, index, name); | 22 gles2::GetGLContext()->BindAttribLocation(program, index, name); |
23 } | 23 } |
24 void GLES2BindBuffer(GLenum target, GLuint buffer) { | 24 void GLES2BindBuffer(GLenum target, GLuint buffer) { |
25 gles2::GetGLContext()->BindBuffer(target, buffer); | 25 gles2::GetGLContext()->BindBuffer(target, buffer); |
26 } | 26 } |
| 27 void GLES2BindBufferBase(GLenum target, GLuint index, GLuint buffer) { |
| 28 gles2::GetGLContext()->BindBufferBase(target, index, buffer); |
| 29 } |
27 void GLES2BindFramebuffer(GLenum target, GLuint framebuffer) { | 30 void GLES2BindFramebuffer(GLenum target, GLuint framebuffer) { |
28 gles2::GetGLContext()->BindFramebuffer(target, framebuffer); | 31 gles2::GetGLContext()->BindFramebuffer(target, framebuffer); |
29 } | 32 } |
30 void GLES2BindRenderbuffer(GLenum target, GLuint renderbuffer) { | 33 void GLES2BindRenderbuffer(GLenum target, GLuint renderbuffer) { |
31 gles2::GetGLContext()->BindRenderbuffer(target, renderbuffer); | 34 gles2::GetGLContext()->BindRenderbuffer(target, renderbuffer); |
32 } | 35 } |
33 void GLES2BindSampler(GLuint unit, GLuint sampler) { | 36 void GLES2BindSampler(GLuint unit, GLuint sampler) { |
34 gles2::GetGLContext()->BindSampler(unit, sampler); | 37 gles2::GetGLContext()->BindSampler(unit, sampler); |
35 } | 38 } |
36 void GLES2BindTexture(GLenum target, GLuint texture) { | 39 void GLES2BindTexture(GLenum target, GLuint texture) { |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 GLint internalformat, | 557 GLint internalformat, |
555 GLsizei width, | 558 GLsizei width, |
556 GLsizei height, | 559 GLsizei height, |
557 GLint border, | 560 GLint border, |
558 GLenum format, | 561 GLenum format, |
559 GLenum type, | 562 GLenum type, |
560 const void* pixels) { | 563 const void* pixels) { |
561 gles2::GetGLContext()->TexImage2D(target, level, internalformat, width, | 564 gles2::GetGLContext()->TexImage2D(target, level, internalformat, width, |
562 height, border, format, type, pixels); | 565 height, border, format, type, pixels); |
563 } | 566 } |
| 567 void GLES2TexImage3D(GLenum target, |
| 568 GLint level, |
| 569 GLint internalformat, |
| 570 GLsizei width, |
| 571 GLsizei height, |
| 572 GLsizei depth, |
| 573 GLint border, |
| 574 GLenum format, |
| 575 GLenum type, |
| 576 const void* pixels) { |
| 577 gles2::GetGLContext()->TexImage3D(target, level, internalformat, width, |
| 578 height, depth, border, format, type, |
| 579 pixels); |
| 580 } |
564 void GLES2TexParameterf(GLenum target, GLenum pname, GLfloat param) { | 581 void GLES2TexParameterf(GLenum target, GLenum pname, GLfloat param) { |
565 gles2::GetGLContext()->TexParameterf(target, pname, param); | 582 gles2::GetGLContext()->TexParameterf(target, pname, param); |
566 } | 583 } |
567 void GLES2TexParameterfv(GLenum target, GLenum pname, const GLfloat* params) { | 584 void GLES2TexParameterfv(GLenum target, GLenum pname, const GLfloat* params) { |
568 gles2::GetGLContext()->TexParameterfv(target, pname, params); | 585 gles2::GetGLContext()->TexParameterfv(target, pname, params); |
569 } | 586 } |
570 void GLES2TexParameteri(GLenum target, GLenum pname, GLint param) { | 587 void GLES2TexParameteri(GLenum target, GLenum pname, GLint param) { |
571 gles2::GetGLContext()->TexParameteri(target, pname, param); | 588 gles2::GetGLContext()->TexParameteri(target, pname, param); |
572 } | 589 } |
573 void GLES2TexParameteriv(GLenum target, GLenum pname, const GLint* params) { | 590 void GLES2TexParameteriv(GLenum target, GLenum pname, const GLint* params) { |
(...skipping 13 matching lines...) Expand all Loading... |
587 GLint xoffset, | 604 GLint xoffset, |
588 GLint yoffset, | 605 GLint yoffset, |
589 GLsizei width, | 606 GLsizei width, |
590 GLsizei height, | 607 GLsizei height, |
591 GLenum format, | 608 GLenum format, |
592 GLenum type, | 609 GLenum type, |
593 const void* pixels) { | 610 const void* pixels) { |
594 gles2::GetGLContext()->TexSubImage2D(target, level, xoffset, yoffset, width, | 611 gles2::GetGLContext()->TexSubImage2D(target, level, xoffset, yoffset, width, |
595 height, format, type, pixels); | 612 height, format, type, pixels); |
596 } | 613 } |
| 614 void GLES2TexSubImage3D(GLenum target, |
| 615 GLint level, |
| 616 GLint xoffset, |
| 617 GLint yoffset, |
| 618 GLint zoffset, |
| 619 GLsizei width, |
| 620 GLsizei height, |
| 621 GLsizei depth, |
| 622 GLenum format, |
| 623 GLenum type, |
| 624 const void* pixels) { |
| 625 gles2::GetGLContext()->TexSubImage3D(target, level, xoffset, yoffset, zoffset, |
| 626 width, height, depth, format, type, |
| 627 pixels); |
| 628 } |
597 void GLES2Uniform1f(GLint location, GLfloat x) { | 629 void GLES2Uniform1f(GLint location, GLfloat x) { |
598 gles2::GetGLContext()->Uniform1f(location, x); | 630 gles2::GetGLContext()->Uniform1f(location, x); |
599 } | 631 } |
600 void GLES2Uniform1fv(GLint location, GLsizei count, const GLfloat* v) { | 632 void GLES2Uniform1fv(GLint location, GLsizei count, const GLfloat* v) { |
601 gles2::GetGLContext()->Uniform1fv(location, count, v); | 633 gles2::GetGLContext()->Uniform1fv(location, count, v); |
602 } | 634 } |
603 void GLES2Uniform1i(GLint location, GLint x) { | 635 void GLES2Uniform1i(GLint location, GLint x) { |
604 gles2::GetGLContext()->Uniform1i(location, x); | 636 gles2::GetGLContext()->Uniform1i(location, x); |
605 } | 637 } |
606 void GLES2Uniform1iv(GLint location, GLsizei count, const GLint* v) { | 638 void GLES2Uniform1iv(GLint location, GLsizei count, const GLint* v) { |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1167 }, | 1199 }, |
1168 { | 1200 { |
1169 "glBindAttribLocation", | 1201 "glBindAttribLocation", |
1170 reinterpret_cast<GLES2FunctionPointer>(glBindAttribLocation), | 1202 reinterpret_cast<GLES2FunctionPointer>(glBindAttribLocation), |
1171 }, | 1203 }, |
1172 { | 1204 { |
1173 "glBindBuffer", | 1205 "glBindBuffer", |
1174 reinterpret_cast<GLES2FunctionPointer>(glBindBuffer), | 1206 reinterpret_cast<GLES2FunctionPointer>(glBindBuffer), |
1175 }, | 1207 }, |
1176 { | 1208 { |
| 1209 "glBindBufferBase", |
| 1210 reinterpret_cast<GLES2FunctionPointer>(glBindBufferBase), |
| 1211 }, |
| 1212 { |
1177 "glBindFramebuffer", | 1213 "glBindFramebuffer", |
1178 reinterpret_cast<GLES2FunctionPointer>(glBindFramebuffer), | 1214 reinterpret_cast<GLES2FunctionPointer>(glBindFramebuffer), |
1179 }, | 1215 }, |
1180 { | 1216 { |
1181 "glBindRenderbuffer", | 1217 "glBindRenderbuffer", |
1182 reinterpret_cast<GLES2FunctionPointer>(glBindRenderbuffer), | 1218 reinterpret_cast<GLES2FunctionPointer>(glBindRenderbuffer), |
1183 }, | 1219 }, |
1184 { | 1220 { |
1185 "glBindSampler", | 1221 "glBindSampler", |
1186 reinterpret_cast<GLES2FunctionPointer>(glBindSampler), | 1222 reinterpret_cast<GLES2FunctionPointer>(glBindSampler), |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1672 }, | 1708 }, |
1673 { | 1709 { |
1674 "glStencilOpSeparate", | 1710 "glStencilOpSeparate", |
1675 reinterpret_cast<GLES2FunctionPointer>(glStencilOpSeparate), | 1711 reinterpret_cast<GLES2FunctionPointer>(glStencilOpSeparate), |
1676 }, | 1712 }, |
1677 { | 1713 { |
1678 "glTexImage2D", | 1714 "glTexImage2D", |
1679 reinterpret_cast<GLES2FunctionPointer>(glTexImage2D), | 1715 reinterpret_cast<GLES2FunctionPointer>(glTexImage2D), |
1680 }, | 1716 }, |
1681 { | 1717 { |
| 1718 "glTexImage3D", |
| 1719 reinterpret_cast<GLES2FunctionPointer>(glTexImage3D), |
| 1720 }, |
| 1721 { |
1682 "glTexParameterf", | 1722 "glTexParameterf", |
1683 reinterpret_cast<GLES2FunctionPointer>(glTexParameterf), | 1723 reinterpret_cast<GLES2FunctionPointer>(glTexParameterf), |
1684 }, | 1724 }, |
1685 { | 1725 { |
1686 "glTexParameterfv", | 1726 "glTexParameterfv", |
1687 reinterpret_cast<GLES2FunctionPointer>(glTexParameterfv), | 1727 reinterpret_cast<GLES2FunctionPointer>(glTexParameterfv), |
1688 }, | 1728 }, |
1689 { | 1729 { |
1690 "glTexParameteri", | 1730 "glTexParameteri", |
1691 reinterpret_cast<GLES2FunctionPointer>(glTexParameteri), | 1731 reinterpret_cast<GLES2FunctionPointer>(glTexParameteri), |
1692 }, | 1732 }, |
1693 { | 1733 { |
1694 "glTexParameteriv", | 1734 "glTexParameteriv", |
1695 reinterpret_cast<GLES2FunctionPointer>(glTexParameteriv), | 1735 reinterpret_cast<GLES2FunctionPointer>(glTexParameteriv), |
1696 }, | 1736 }, |
1697 { | 1737 { |
1698 "glTexStorage3D", | 1738 "glTexStorage3D", |
1699 reinterpret_cast<GLES2FunctionPointer>(glTexStorage3D), | 1739 reinterpret_cast<GLES2FunctionPointer>(glTexStorage3D), |
1700 }, | 1740 }, |
1701 { | 1741 { |
1702 "glTexSubImage2D", | 1742 "glTexSubImage2D", |
1703 reinterpret_cast<GLES2FunctionPointer>(glTexSubImage2D), | 1743 reinterpret_cast<GLES2FunctionPointer>(glTexSubImage2D), |
1704 }, | 1744 }, |
1705 { | 1745 { |
| 1746 "glTexSubImage3D", |
| 1747 reinterpret_cast<GLES2FunctionPointer>(glTexSubImage3D), |
| 1748 }, |
| 1749 { |
1706 "glUniform1f", | 1750 "glUniform1f", |
1707 reinterpret_cast<GLES2FunctionPointer>(glUniform1f), | 1751 reinterpret_cast<GLES2FunctionPointer>(glUniform1f), |
1708 }, | 1752 }, |
1709 { | 1753 { |
1710 "glUniform1fv", | 1754 "glUniform1fv", |
1711 reinterpret_cast<GLES2FunctionPointer>(glUniform1fv), | 1755 reinterpret_cast<GLES2FunctionPointer>(glUniform1fv), |
1712 }, | 1756 }, |
1713 { | 1757 { |
1714 "glUniform1i", | 1758 "glUniform1i", |
1715 reinterpret_cast<GLES2FunctionPointer>(glUniform1i), | 1759 reinterpret_cast<GLES2FunctionPointer>(glUniform1i), |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2220 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), | 2264 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), |
2221 }, | 2265 }, |
2222 { | 2266 { |
2223 NULL, | 2267 NULL, |
2224 NULL, | 2268 NULL, |
2225 }, | 2269 }, |
2226 }; | 2270 }; |
2227 | 2271 |
2228 } // namespace gles2 | 2272 } // namespace gles2 |
2229 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 2273 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
OLD | NEW |