OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 here so other GLES2 related files can have a common set of | 5 // This file is here so other GLES2 related files can have a common set of |
6 // includes where appropriate. | 6 // includes where appropriate. |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <GLES2/gl2.h> | 9 #include <GLES2/gl2.h> |
10 #include <GLES2/gl2ext.h> | 10 #include <GLES2/gl2ext.h> |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
617 case GL_DEPTH_STENCIL_OES: | 617 case GL_DEPTH_STENCIL_OES: |
618 case GL_DEPTH24_STENCIL8_OES: | 618 case GL_DEPTH24_STENCIL8_OES: |
619 return kDepth | kStencil; | 619 return kDepth | kStencil; |
620 default: | 620 default: |
621 return 0x0000; | 621 return 0x0000; |
622 } | 622 } |
623 } | 623 } |
624 | 624 |
625 uint32 GLES2Util::GetChannelsNeededForAttachmentType(int type) { | 625 uint32 GLES2Util::GetChannelsNeededForAttachmentType(int type) { |
626 switch (type) { | 626 switch (type) { |
627 case GL_COLOR_ATTACHMENT0: | 627 case GL_COLOR_ATTACHMENT0: |
greggman
2013/03/14 00:51:10
This is going to have to change. Either you have t
Zhenyao Mo
2013/03/14 01:49:34
Done.
| |
628 case GL_COLOR_ATTACHMENT1_EXT: | |
629 case GL_COLOR_ATTACHMENT2_EXT: | |
630 case GL_COLOR_ATTACHMENT3_EXT: | |
631 case GL_COLOR_ATTACHMENT4_EXT: | |
632 case GL_COLOR_ATTACHMENT5_EXT: | |
633 case GL_COLOR_ATTACHMENT6_EXT: | |
634 case GL_COLOR_ATTACHMENT7_EXT: | |
635 case GL_COLOR_ATTACHMENT8_EXT: | |
636 case GL_COLOR_ATTACHMENT9_EXT: | |
637 case GL_COLOR_ATTACHMENT10_EXT: | |
638 case GL_COLOR_ATTACHMENT11_EXT: | |
639 case GL_COLOR_ATTACHMENT12_EXT: | |
640 case GL_COLOR_ATTACHMENT13_EXT: | |
641 case GL_COLOR_ATTACHMENT14_EXT: | |
642 case GL_COLOR_ATTACHMENT15_EXT: | |
628 return kRGBA; | 643 return kRGBA; |
629 case GL_DEPTH_ATTACHMENT: | 644 case GL_DEPTH_ATTACHMENT: |
630 return kDepth; | 645 return kDepth; |
631 case GL_STENCIL_ATTACHMENT: | 646 case GL_STENCIL_ATTACHMENT: |
632 return kStencil; | 647 return kStencil; |
633 default: | 648 default: |
634 return 0x0000; | 649 return 0x0000; |
635 } | 650 } |
636 } | 651 } |
637 | 652 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
792 } | 807 } |
793 | 808 |
794 return true; | 809 return true; |
795 } | 810 } |
796 | 811 |
797 #include "../common/gles2_cmd_utils_implementation_autogen.h" | 812 #include "../common/gles2_cmd_utils_implementation_autogen.h" |
798 | 813 |
799 } // namespace gles2 | 814 } // namespace gles2 |
800 } // namespace gpu | 815 } // namespace gpu |
801 | 816 |
OLD | NEW |