| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 GrGLSL_DEFINED | 8 #ifndef GrGLSL_DEFINED |
| 9 #define GrGLSL_DEFINED | 9 #define GrGLSL_DEFINED |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 k140_GrGLSLGeneration, | 30 k140_GrGLSLGeneration, |
| 31 /** | 31 /** |
| 32 * Desktop GLSL 1.50 | 32 * Desktop GLSL 1.50 |
| 33 */ | 33 */ |
| 34 k150_GrGLSLGeneration, | 34 k150_GrGLSLGeneration, |
| 35 /** | 35 /** |
| 36 * Desktop GLSL 3.30, and ES GLSL 3.00 | 36 * Desktop GLSL 3.30, and ES GLSL 3.00 |
| 37 */ | 37 */ |
| 38 k330_GrGLSLGeneration, | 38 k330_GrGLSLGeneration, |
| 39 /** | 39 /** |
| 40 * Desktop GLSL 4.00 | |
| 41 */ | |
| 42 k400_GrGLSLGeneration, | |
| 43 /** | |
| 44 * ES GLSL 3.10 only TODO Make GLSLCap objects to make this more granular | 40 * ES GLSL 3.10 only TODO Make GLSLCap objects to make this more granular |
| 45 */ | 41 */ |
| 46 k310es_GrGLSLGeneration, | 42 k310es_GrGLSLGeneration, |
| 47 /** | |
| 48 * ES GLSL 3.20 | |
| 49 */ | |
| 50 k320es_GrGLSLGeneration, | |
| 51 }; | 43 }; |
| 52 | 44 |
| 53 bool GrGLSLSupportsNamedFragmentShaderOutputs(GrGLSLGeneration); | 45 bool GrGLSLSupportsNamedFragmentShaderOutputs(GrGLSLGeneration); |
| 54 | 46 |
| 55 /** | 47 /** |
| 56 * Gets the name of the function that should be used to sample a 2D texture. Coo
rd type is used | 48 * Gets the name of the function that should be used to sample a 2D texture. Coo
rd type is used |
| 57 * to indicate whether the texture is sampled using projective textured (kVec3f)
or not (kVec2f). | 49 * to indicate whether the texture is sampled using projective textured (kVec3f)
or not (kVec2f). |
| 58 */ | 50 */ |
| 59 inline const char* GrGLSLTexture2DFunctionName(GrSLType coordType, GrSLType samp
lerType, | 51 inline const char* GrGLSLTexture2DFunctionName(GrSLType coordType, GrSLType samp
lerType, |
| 60 GrGLSLGeneration glslGen) { | 52 GrGLSLGeneration glslGen) { |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 | 347 |
| 356 /** | 348 /** |
| 357 * Does an inplace mul, *=, of vec4VarName by mulFactor. | 349 * Does an inplace mul, *=, of vec4VarName by mulFactor. |
| 358 * A semicolon is added after the assignment. | 350 * A semicolon is added after the assignment. |
| 359 */ | 351 */ |
| 360 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL
Expr4& mulFactor); | 352 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL
Expr4& mulFactor); |
| 361 | 353 |
| 362 #include "GrGLSL_impl.h" | 354 #include "GrGLSL_impl.h" |
| 363 | 355 |
| 364 #endif | 356 #endif |
| OLD | NEW |