| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 void appendDecls(const VarArray& vars, SkString* out) const; | 140 void appendDecls(const VarArray& vars, SkString* out) const; |
| 141 | 141 |
| 142 /** | 142 /** |
| 143 * Features that should only be enabled internally by the builders. | 143 * Features that should only be enabled internally by the builders. |
| 144 */ | 144 */ |
| 145 enum GLSLPrivateFeature { | 145 enum GLSLPrivateFeature { |
| 146 kFragCoordConventions_GLSLPrivateFeature, | 146 kFragCoordConventions_GLSLPrivateFeature, |
| 147 kBlendEquationAdvanced_GLSLPrivateFeature, | 147 kBlendEquationAdvanced_GLSLPrivateFeature, |
| 148 kBlendFuncExtended_GLSLPrivateFeature, | 148 kBlendFuncExtended_GLSLPrivateFeature, |
| 149 kExternalTexture_GLSLPrivateFeature, | 149 kExternalTexture_GLSLPrivateFeature, |
| 150 kTexelBuffer_GLSLPrivateFeature, |
| 150 kFramebufferFetch_GLSLPrivateFeature, | 151 kFramebufferFetch_GLSLPrivateFeature, |
| 151 kNoPerspectiveInterpolation_GLSLPrivateFeature, | 152 kNoPerspectiveInterpolation_GLSLPrivateFeature, |
| 152 kSampleVariables_GLSLPrivateFeature, | 153 kSampleVariables_GLSLPrivateFeature, |
| 153 kSampleMaskOverrideCoverage_GLSLPrivateFeature, | 154 kSampleMaskOverrideCoverage_GLSLPrivateFeature, |
| 154 kLastGLSLPrivateFeature = kSampleMaskOverrideCoverage_GLSLPrivateFeature | 155 kLastGLSLPrivateFeature = kSampleMaskOverrideCoverage_GLSLPrivateFeature |
| 155 }; | 156 }; |
| 156 | 157 |
| 157 /* | 158 /* |
| 158 * A general function which enables an extension in a shader if the feature
bit is not present | 159 * A general function which enables an extension in a shader if the feature
bit is not present |
| 159 * | 160 * |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 int fCodeIndex; | 234 int fCodeIndex; |
| 234 bool fFinalized; | 235 bool fFinalized; |
| 235 | 236 |
| 236 friend class GrGLSLProgramBuilder; | 237 friend class GrGLSLProgramBuilder; |
| 237 friend class GrGLProgramBuilder; | 238 friend class GrGLProgramBuilder; |
| 238 friend class GrGLSLVaryingHandler; // to access noperspective interpolation
feature. | 239 friend class GrGLSLVaryingHandler; // to access noperspective interpolation
feature. |
| 239 friend class GrGLPathProgramBuilder; // to access fInputs. | 240 friend class GrGLPathProgramBuilder; // to access fInputs. |
| 240 friend class GrVkPipelineStateBuilder; | 241 friend class GrVkPipelineStateBuilder; |
| 241 }; | 242 }; |
| 242 #endif | 243 #endif |
| OLD | NEW |