OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrGLSLShaderBuilder_DEFINED | 8 #ifndef GrGLSLShaderBuilder_DEFINED |
9 #define GrGLSLShaderBuilder_DEFINED | 9 #define GrGLSLShaderBuilder_DEFINED |
10 | 10 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 void appendDecls(const VarArray& vars, SkString* out) const; | 146 void appendDecls(const VarArray& vars, SkString* out) const; |
147 | 147 |
148 /** | 148 /** |
149 * Features that should only be enabled internally by the builders. | 149 * Features that should only be enabled internally by the builders. |
150 */ | 150 */ |
151 enum GLSLPrivateFeature { | 151 enum GLSLPrivateFeature { |
152 kFragCoordConventions_GLSLPrivateFeature, | 152 kFragCoordConventions_GLSLPrivateFeature, |
153 kBlendEquationAdvanced_GLSLPrivateFeature, | 153 kBlendEquationAdvanced_GLSLPrivateFeature, |
154 kBlendFuncExtended_GLSLPrivateFeature, | 154 kBlendFuncExtended_GLSLPrivateFeature, |
155 kExternalTexture_GLSLPrivateFeature, | 155 kExternalTexture_GLSLPrivateFeature, |
| 156 kTexelBuffer_GLSLPrivateFeature, |
156 kFramebufferFetch_GLSLPrivateFeature, | 157 kFramebufferFetch_GLSLPrivateFeature, |
157 kNoPerspectiveInterpolation_GLSLPrivateFeature, | 158 kNoPerspectiveInterpolation_GLSLPrivateFeature, |
158 kSampleVariables_GLSLPrivateFeature, | 159 kSampleVariables_GLSLPrivateFeature, |
159 kSampleMaskOverrideCoverage_GLSLPrivateFeature, | 160 kSampleMaskOverrideCoverage_GLSLPrivateFeature, |
160 kLastGLSLPrivateFeature = kSampleMaskOverrideCoverage_GLSLPrivateFeature | 161 kLastGLSLPrivateFeature = kSampleMaskOverrideCoverage_GLSLPrivateFeature |
161 }; | 162 }; |
162 | 163 |
163 /* | 164 /* |
164 * A general function which enables an extension in a shader if the feature
bit is not present | 165 * A general function which enables an extension in a shader if the feature
bit is not present |
165 * | 166 * |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 int fCodeIndex; | 240 int fCodeIndex; |
240 bool fFinalized; | 241 bool fFinalized; |
241 | 242 |
242 friend class GrGLSLProgramBuilder; | 243 friend class GrGLSLProgramBuilder; |
243 friend class GrGLProgramBuilder; | 244 friend class GrGLProgramBuilder; |
244 friend class GrGLSLVaryingHandler; // to access noperspective interpolation
feature. | 245 friend class GrGLSLVaryingHandler; // to access noperspective interpolation
feature. |
245 friend class GrGLPathProgramBuilder; // to access fInputs. | 246 friend class GrGLPathProgramBuilder; // to access fInputs. |
246 friend class GrVkPipelineStateBuilder; | 247 friend class GrVkPipelineStateBuilder; |
247 }; | 248 }; |
248 #endif | 249 #endif |
OLD | NEW |