Home | History | Annotate | Download | only in performance

Lines Matching defs:op

192 	std::ostringstream&	op		= isVertexCase ? vtx : frag;
202 op << "uniform mediump float u_compareValue;\n";
233 op << " mediump vec4 res;\n";
242 op << " if (" << condition << ")\n";
243 op << " {\n";
245 op << "\t\t";
247 writeConditionalWorkload(op, "res", isVertexCase ? "a_value0" : "v_value0"); // Workload calculation for the "true" branch.
249 op << "res = " << (isVertexCase ? "a_value0" : "v_value0") << ";";
250 op << "\n";
252 op << " }\n";
253 op << " else\n";
254 op << " {\n";
256 op << "\t\t";
258 writeConditionalWorkload(op, "res", isVertexCase ? "a_value1" : "v_value1"); // Workload calculations for the "false" branch.
260 op << "res = " << (isVertexCase ? "a_value1" : "v_value1") << ";";
261 op << "\n";
263 op << " }\n";
468 std::ostringstream& op = isVertexCase ? vtx : frag;
477 op << "uniform mediump float u_bound;\n";
506 op << " mediump vec4 res = vec4(0.0);\n";
512 op << " mediump float loopBound = fract(v_bound) < 0.5 ? " << unstableBoundLowStr << " : " << unstableBoundHighStr << ";\n";
517 op << " for (mediump float i = 0.0; i < " << boundValueStr << "; i++)\n";
520 op << " mediump float i = 0.0;\n";
522 op << " while (i < " << boundValueStr << ")\n";
524 op << " do\n";
526 op << " {\n";
529 op << "\t\t";
530 writeLoopWorkload(op, "res", isVertexCase ? "a_value" : "v_value");
531 op << "\n";
535 op << " i++;\n";
539 op << " } while (i < " << boundValueStr << ");\n";
541 op << " }\n";
696 std::ostringstream& op = isVertexCase ? vtx : frag;
722 op << "\tmediump vec4 res;\n";
723 writeWorkload(op, "res", isVertexCase ? "a_value" : "v_value");