Lines Matching refs:code
4 * Use of this source code is governed by a BSD-style license that can be
37 GrGLSLVarying::Scope scope, SkString* code,
44 code->appendf("%s.xy = (%s * float3(%s, 1)).xy;",
46 code->appendf("%s.z = dot(%s.xy, %s) + %s.z;",
49 code->appendf("%s.w = %s;", OutName(fXYDW), wind);
51 this->onEmitVaryings(varyingHandler, scope, code);
80 GrGLSLVarying::Scope scope, SkString* code) {
83 code->appendf("%s = float2(2 * %s.x, -1) * float2x2(%s);",
103 GrGLSLVarying::Scope scope, SkString* code) {
106 code->appendf("%s = float3(%s[0].x, %s[0].y, %s.x);",
112 code->appendf("%s = float3(%s[1].x, %s[1].y, %s.y);",