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

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

Issue 1690963003: Add gl_SampleMask functionality to fragment builders (Closed) Base URL: https://skia.googlesource.com/skia.git@upload7_interp
Patch Set: ordering 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 /**
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
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
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