OLD | NEW |
1 // | 1 // |
2 // Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved. | 2 // Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 // | 5 // |
6 | 6 |
7 // Shader.h: Defines the abstract gl::Shader class and its concrete derived | 7 // Shader.h: Defines the abstract gl::Shader class and its concrete derived |
8 // classes VertexShader and FragmentShader. Implements GL shader objects and | 8 // classes VertexShader and FragmentShader. Implements GL shader objects and |
9 // related functionality. [OpenGL ES 2.0.24] section 2.10 page 24 and section | 9 // related functionality. [OpenGL ES 2.0.24] section 2.10 page 24 and section |
10 // 3.8 page 84. | 10 // 3.8 page 84. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 VaryingList mVaryings; | 99 VaryingList mVaryings; |
100 | 100 |
101 bool mUsesMultipleRenderTargets; | 101 bool mUsesMultipleRenderTargets; |
102 bool mUsesFragColor; | 102 bool mUsesFragColor; |
103 bool mUsesFragData; | 103 bool mUsesFragData; |
104 bool mUsesFragCoord; | 104 bool mUsesFragCoord; |
105 bool mUsesFrontFacing; | 105 bool mUsesFrontFacing; |
106 bool mUsesPointSize; | 106 bool mUsesPointSize; |
107 bool mUsesPointCoord; | 107 bool mUsesPointCoord; |
108 bool mUsesDepthRange; | 108 bool mUsesDepthRange; |
| 109 bool mUsesFragDepth; |
109 | 110 |
110 static void *mFragmentCompiler; | 111 static void *mFragmentCompiler; |
111 static void *mVertexCompiler; | 112 static void *mVertexCompiler; |
112 | 113 |
113 private: | 114 private: |
114 DISALLOW_COPY_AND_ASSIGN(Shader); | 115 DISALLOW_COPY_AND_ASSIGN(Shader); |
115 | 116 |
116 void initializeCompiler(); | 117 void initializeCompiler(); |
117 | 118 |
118 const GLuint mHandle; | 119 const GLuint mHandle; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 175 |
175 virtual GLenum getType(); | 176 virtual GLenum getType(); |
176 virtual void compile(); | 177 virtual void compile(); |
177 | 178 |
178 private: | 179 private: |
179 DISALLOW_COPY_AND_ASSIGN(FragmentShader); | 180 DISALLOW_COPY_AND_ASSIGN(FragmentShader); |
180 }; | 181 }; |
181 } | 182 } |
182 | 183 |
183 #endif // LIBGLESV2_SHADER_H_ | 184 #endif // LIBGLESV2_SHADER_H_ |
OLD | NEW |