Lines Matching refs:vtx
190 std::ostringstream vtx; in init() local
192 std::ostringstream& op = isVertexCase ? vtx : frag; in init()
194 vtx << "attribute highp vec4 a_position;\n"; // Position attribute. in init()
195 vtx << "attribute mediump vec4 a_value0;\n"; // Input for workload calculations of "true" branch. in init()
196 vtx << "attribute mediump vec4 a_value1;\n"; // Input for workload calculations of "false" branch. in init()
200 vtx << "attribute mediump float a_compareValue;\n"; in init()
207 vtx << "varying mediump vec4 v_color;\n"; in init()
212 vtx << "varying mediump vec4 v_value0;\n"; in init()
213 vtx << "varying mediump vec4 v_value1;\n"; in init()
219 vtx << "varying mediump float v_compareValue;\n"; in init()
224 vtx << "\n"; in init()
225 vtx << "void main()\n"; in init()
226 vtx << "{\n"; in init()
227 vtx << " gl_Position = a_position;\n"; in init()
268 vtx << " v_color = res;\n"; in init()
275 vtx << " v_compareValue = a_compareValue;\n"; in init()
276 vtx << " v_value0 = a_value0;\n"; in init()
277 vtx << " v_value1 = a_value1;\n"; in init()
282 vtx << "}\n"; in init()
285 m_vertShaderSource = vtx.str(); in init()
466 std::ostringstream vtx; in init() local
468 std::ostringstream& op = isVertexCase ? vtx : frag; in init()
470 vtx << "attribute highp vec4 a_position;\n"; // Position attribute. in init()
471 vtx << "attribute mediump vec4 a_value;\n"; // Input for workload calculations. in init()
475 vtx << "attribute mediump float a_bound;\n"; in init()
482 vtx << "varying mediump vec4 v_color;\n"; in init()
487 vtx << "varying mediump vec4 v_value;\n"; in init()
492 vtx << "varying mediump float v_bound;\n"; in init()
497 vtx << "\n"; in init()
498 vtx << "void main()\n"; in init()
499 vtx << "{\n"; in init()
500 vtx << " gl_Position = a_position;\n"; in init()
546 vtx << " v_color = res;\n"; in init()
553 vtx << " v_bound = a_bound;\n"; in init()
554 vtx << " v_value = a_value;\n"; in init()
559 vtx << "}\n"; in init()
562 m_vertShaderSource = vtx.str(); in init()
694 std::ostringstream vtx; in init() local
696 std::ostringstream& op = isVertexCase ? vtx : frag; in init()
698 vtx << "attribute highp vec4 a_position;\n"; // Position attribute. in init()
699 vtx << "attribute mediump vec4 a_value;\n"; // Value for workload calculations. in init()
704 vtx << "varying mediump vec4 v_color;\n"; in init()
709 vtx << "varying mediump vec4 v_value;\n"; in init()
713 vtx << "\n"; in init()
714 vtx << "void main()\n"; in init()
715 vtx << "{\n"; in init()
716 vtx << " gl_Position = a_position;\n"; in init()
728 vtx << " v_color = res;\n"; in init()
733 vtx << " v_value = a_value;\n"; // Transfer input to fragment shader through varying. in init()
737 vtx << "}\n"; in init()
740 m_vertShaderSource = vtx.str(); in init()