Lines Matching refs:Self
11 template<typename Self>
13 inline Self GrGLSLExpr<Self>::VectorCastImpl(const T& expr) {
15 return Self(0);
18 return Self(1);
20 return Self(Self::CastStr(), expr.c_str());
23 template<typename Self>
25 inline Self GrGLSLExpr<Self>::Mul(T0 in0, T1 in1) {
27 return Self(0);
30 return Self::VectorCast(in1);
33 return Self::VectorCast(in0);
35 return Self("(%s * %s)", in0.c_str(), in1.c_str());
38 template<typename Self>
40 inline Self GrGLSLExpr<Self>::Add(T0 in0, T1 in1) {
42 return Self::VectorCast(in0);
45 return Self::VectorCast(in1);
48 return Self(2);
50 return Self("(%s + %s)", in0.c_str(), in1.c_str());
53 template<typename Self>
55 inline Self GrGLSLExpr<Self>::Sub(T0 in0, T1 in1) {
57 return Self::VectorCast(in0);
61 return Self(0);
65 return Self("(%s - %s)", in0.c_str(), in1.c_str());
68 template <typename Self>
70 T GrGLSLExpr<Self>::extractComponents(const char format[]) const {