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, |
38 }; | 46 }; |
39 | 47 |
40 /** | 48 /** |
41 * Gets the most recent GLSL Generation compatible with the OpenGL context. | 49 * Gets the most recent GLSL Generation compatible with the OpenGL context. |
42 */ | 50 */ |
43 bool GrGetGLSLGeneration(const GrGLInterface* gl, GrGLSLGeneration* generation); | 51 bool GrGetGLSLGeneration(const GrGLInterface* gl, GrGLSLGeneration* generation); |
44 | 52 |
45 /** | 53 /** |
46 * Returns a string to include at the beginning of a shader to declare the GLSL | 54 * Returns a string to include at the beginning of a shader to declare the GLSL |
47 * version. | 55 * version. |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 318 |
311 /** | 319 /** |
312 * Does an inplace mul, *=, of vec4VarName by mulFactor. | 320 * Does an inplace mul, *=, of vec4VarName by mulFactor. |
313 * A semicolon is added after the assignment. | 321 * A semicolon is added after the assignment. |
314 */ | 322 */ |
315 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL
Expr4& mulFactor); | 323 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL
Expr4& mulFactor); |
316 | 324 |
317 #include "GrGLSL_impl.h" | 325 #include "GrGLSL_impl.h" |
318 | 326 |
319 #endif | 327 #endif |
OLD | NEW |