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

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

Issue 1755483002: Add support for 2x2 matrices (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: vk updates Created 4 years, 9 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/GrGLProgramDataManager.cpp ('k') | src/gpu/glsl/GrGLSLProgramDataManager.h » ('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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 case kVoid_GrSLType: 91 case kVoid_GrSLType:
92 return "void"; 92 return "void";
93 case kFloat_GrSLType: 93 case kFloat_GrSLType:
94 return "float"; 94 return "float";
95 case kVec2f_GrSLType: 95 case kVec2f_GrSLType:
96 return "vec2"; 96 return "vec2";
97 case kVec3f_GrSLType: 97 case kVec3f_GrSLType:
98 return "vec3"; 98 return "vec3";
99 case kVec4f_GrSLType: 99 case kVec4f_GrSLType:
100 return "vec4"; 100 return "vec4";
101 case kMat22f_GrSLType:
102 return "mat2";
101 case kMat33f_GrSLType: 103 case kMat33f_GrSLType:
102 return "mat3"; 104 return "mat3";
103 case kMat44f_GrSLType: 105 case kMat44f_GrSLType:
104 return "mat4"; 106 return "mat4";
105 case kSampler2D_GrSLType: 107 case kSampler2D_GrSLType:
106 return "sampler2D"; 108 return "sampler2D";
107 case kSamplerExternal_GrSLType: 109 case kSamplerExternal_GrSLType:
108 return "samplerExternalOES"; 110 return "samplerExternalOES";
109 case kSampler2DRect_GrSLType: 111 case kSampler2DRect_GrSLType:
110 return "sampler2DRect"; 112 return "sampler2DRect";
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 357
356 /** 358 /**
357 * Does an inplace mul, *=, of vec4VarName by mulFactor. 359 * Does an inplace mul, *=, of vec4VarName by mulFactor.
358 * A semicolon is added after the assignment. 360 * A semicolon is added after the assignment.
359 */ 361 */
360 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL Expr4& mulFactor); 362 void GrGLSLMulVarBy4f(SkString* outAppend, const char* vec4VarName, const GrGLSL Expr4& mulFactor);
361 363
362 #include "GrGLSL_impl.h" 364 #include "GrGLSL_impl.h"
363 365
364 #endif 366 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgramDataManager.cpp ('k') | src/gpu/glsl/GrGLSLProgramDataManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698