Lines Matching refs:rhs
90 std::string getOpTypeOperation(int opType, Format format, std::string lhs, std::string rhs) in getOpTypeOperation() argument
98 return lhs + " + " + rhs; in getOpTypeOperation()
100 return lhs + " * " + rhs; in getOpTypeOperation()
105 return "min(" + lhs + ", " + rhs + ")"; in getOpTypeOperation()
108 …return "(isnan(" + lhs + ") ? " + rhs + " : (isnan(" + rhs + ") ? " + lhs + " : min(" + lhs + ", "… in getOpTypeOperation()
115 …return "mix(mix(min(" + lhs + ", " + rhs + "), " + lhs + ", isnan(" + rhs + ")), " + rhs + ", isna… in getOpTypeOperation()
121 return "max(" + lhs + ", " + rhs + ")"; in getOpTypeOperation()
124 …return "(isnan(" + lhs + ") ? " + rhs + " : (isnan(" + rhs + ") ? " + lhs + " : max(" + lhs + ", "… in getOpTypeOperation()
131 …return "mix(mix(max(" + lhs + ", " + rhs + "), " + lhs + ", isnan(" + rhs + ")), " + rhs + ", isna… in getOpTypeOperation()
137 return lhs + " & " + rhs; in getOpTypeOperation()
139 return lhs + " && " + rhs; in getOpTypeOperation()
141 return "bvec2(" + lhs + ".x && " + rhs + ".x, " + lhs + ".y && " + rhs + ".y)"; in getOpTypeOperation()
143 …return "bvec3(" + lhs + ".x && " + rhs + ".x, " + lhs + ".y && " + rhs + ".y, " + lhs + ".z && " +… in getOpTypeOperation()
145 …bvec4(" + lhs + ".x && " + rhs + ".x, " + lhs + ".y && " + rhs + ".y, " + lhs + ".z && " + rhs + "… in getOpTypeOperation()
151 return lhs + " | " + rhs; in getOpTypeOperation()
153 return lhs + " || " + rhs; in getOpTypeOperation()
155 return "bvec2(" + lhs + ".x || " + rhs + ".x, " + lhs + ".y || " + rhs + ".y)"; in getOpTypeOperation()
157 …return "bvec3(" + lhs + ".x || " + rhs + ".x, " + lhs + ".y || " + rhs + ".y, " + lhs + ".z || " +… in getOpTypeOperation()
159 …bvec4(" + lhs + ".x || " + rhs + ".x, " + lhs + ".y || " + rhs + ".y, " + lhs + ".z || " + rhs + "… in getOpTypeOperation()
165 return lhs + " ^ " + rhs; in getOpTypeOperation()
167 return lhs + " ^^ " + rhs; in getOpTypeOperation()
169 return "bvec2(" + lhs + ".x ^^ " + rhs + ".x, " + lhs + ".y ^^ " + rhs + ".y)"; in getOpTypeOperation()
171 …return "bvec3(" + lhs + ".x ^^ " + rhs + ".x, " + lhs + ".y ^^ " + rhs + ".y, " + lhs + ".z ^^ " +… in getOpTypeOperation()
173 …bvec4(" + lhs + ".x ^^ " + rhs + ".x, " + lhs + ".y ^^ " + rhs + ".y, " + lhs + ".z ^^ " + rhs + "… in getOpTypeOperation()
272 std::string getCompare(int opType, Format format, std::string lhs, std::string rhs) in getCompare() argument
278 return "all(equal(" + lhs + ", " + rhs + "))"; in getCompare()
282 return "(" + lhs + " == " + rhs + ")"; in getCompare()
288 return "(abs(" + lhs + " - " + rhs + ") < 0.00001)"; in getCompare()
291 return "(" + lhs + " == " + rhs + ")"; in getCompare()
302 return "all(lessThan(abs(" + lhs + " - " + rhs + "), " + formatName + "(0.00001)))"; in getCompare()
305 return "all(equal(" + lhs + ", " + rhs + "))"; in getCompare()