Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: src/gpu/glsl/GrGLSL.h

Issue 1693113002: Revert of Add infastructure for gl_SampleMask (Closed) Base URL: https://skia.googlesource.com/skia.git@upload7_interp
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/gl/GrGLGLSL.cpp ('k') | src/gpu/glsl/GrGLSL.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGLSL.cpp ('k') | src/gpu/glsl/GrGLSL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698