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