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

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

Issue 1674813004: Revert of Improve GLSL integer support (Closed) Base URL: https://skia.googlesource.com/skia.git@uploat_dratindirect
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/debug/GrGLCreateDebugInterface.cpp ('k') | no next file » | 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 case kSampler2D_GrSLType: 97 case kSampler2D_GrSLType:
98 return "sampler2D"; 98 return "sampler2D";
99 case kSamplerExternal_GrSLType: 99 case kSamplerExternal_GrSLType:
100 return "samplerExternalOES"; 100 return "samplerExternalOES";
101 case kSampler2DRect_GrSLType: 101 case kSampler2DRect_GrSLType:
102 return "sampler2DRect"; 102 return "sampler2DRect";
103 case kBool_GrSLType: 103 case kBool_GrSLType:
104 return "bool"; 104 return "bool";
105 case kInt_GrSLType: 105 case kInt_GrSLType:
106 return "int"; 106 return "int";
107 case kUint_GrSLType:
108 return "uint";
109 default: 107 default:
110 SkFAIL("Unknown shader var type."); 108 SkFAIL("Unknown shader var type.");
111 return ""; // suppress warning 109 return ""; // suppress warning
112 } 110 }
113 } 111 }
114 112
115 /** A generic base-class representing a GLSL expression. 113 /** A generic base-class representing a GLSL expression.
116 * The instance can be a variable name, expression or vecN(0) or vecN(1). Does s imple constant 114 * The instance can be a variable name, expression or vecN(0) or vecN(1). Does s imple constant
117 * folding with help of 1 and 0. 115 * folding with help of 1 and 0.
118 * 116 *
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 345
348 /** 346 /**
349 * Does an inplace mul, *=, of vec4VarName by mulFactor. 347 * Does an inplace mul, *=, of vec4VarName by mulFactor.
350 * A semicolon is added after the assignment. 348 * A semicolon is added after the assignment.
351 */ 349 */
352 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL Expr4& mulFactor); 350 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL Expr4& mulFactor);
353 351
354 #include "GrGLSL_impl.h" 352 #include "GrGLSL_impl.h"
355 353
356 #endif 354 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/debug/GrGLCreateDebugInterface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698