| 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 17 matching lines...) Expand all Loading... |
| 28 */ | 28 */ |
| 29 k130_GrGLSLGeneration, | 29 k130_GrGLSLGeneration, |
| 30 /** | 30 /** |
| 31 * Desktop GLSL 1.40 | 31 * Desktop GLSL 1.40 |
| 32 */ | 32 */ |
| 33 k140_GrGLSLGeneration, | 33 k140_GrGLSLGeneration, |
| 34 /** | 34 /** |
| 35 * Desktop GLSL 1.50 | 35 * Desktop GLSL 1.50 |
| 36 */ | 36 */ |
| 37 k150_GrGLSLGeneration, | 37 k150_GrGLSLGeneration, |
| 38 /** | |
| 39 * Desktop GLSL 3.30, and ES GLSL 3.00 | |
| 40 */ | |
| 41 k330_GrGLSLGeneration, | |
| 42 /** | |
| 43 * ES GLSL 3.10 only TODO Make GLSLCap objects to make this more granular | |
| 44 */ | |
| 45 k310es_GrGLSLGeneration, | |
| 46 }; | 38 }; |
| 47 | 39 |
| 48 /** | 40 /** |
| 49 * Gets the most recent GLSL Generation compatible with the OpenGL context. | 41 * Gets the most recent GLSL Generation compatible with the OpenGL context. |
| 50 */ | 42 */ |
| 51 bool GrGetGLSLGeneration(const GrGLInterface* gl, GrGLSLGeneration* generation); | 43 bool GrGetGLSLGeneration(const GrGLInterface* gl, GrGLSLGeneration* generation); |
| 52 | 44 |
| 53 /** | 45 /** |
| 54 * Returns a string to include at the beginning of a shader to declare the GLSL | 46 * Returns a string to include at the beginning of a shader to declare the GLSL |
| 55 * version. | 47 * version. |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 310 |
| 319 /** | 311 /** |
| 320 * Does an inplace mul, *=, of vec4VarName by mulFactor. | 312 * Does an inplace mul, *=, of vec4VarName by mulFactor. |
| 321 * A semicolon is added after the assignment. | 313 * A semicolon is added after the assignment. |
| 322 */ | 314 */ |
| 323 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL
Expr4& mulFactor); | 315 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL
Expr4& mulFactor); |
| 324 | 316 |
| 325 #include "GrGLSL_impl.h" | 317 #include "GrGLSL_impl.h" |
| 326 | 318 |
| 327 #endif | 319 #endif |
| OLD | NEW |