Home | History | Annotate | Download | only in functional

Lines Matching refs:vtx

223 	std::ostringstream vtx;
224 vtx << "#version 300 es\n";
225 vtx << "in highp vec4 a_position;\n";
226 vtx << "in highp vec4 a_coords;\n";
228 vtx << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n";
230 vtx << "uniform mediump int ui_four;\n";
231 vtx << "out ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n";
232 vtx << "\n";
233 vtx << "void main()\n";
234 vtx << "{\n";
235 vtx << " gl_Position = a_position;\n";
238 vtx << " var[0] = ${VAR_TYPE}(a_coords);\n";
239 vtx << " var[1] = ${VAR_TYPE}(a_coords) * 0.5;\n";
240 vtx << " var[2] = ${VAR_TYPE}(a_coords) * 0.25;\n";
241 vtx << " var[3] = ${VAR_TYPE}(a_coords) * 0.125;\n";
245 vtx << " var[ui_zero] = ${VAR_TYPE}(a_coords);\n";
246 vtx << " var[ui_one] = ${VAR_TYPE}(a_coords) * 0.5;\n";
247 vtx << " var[ui_two] = ${VAR_TYPE}(a_coords) * 0.25;\n";
248 vtx << " var[ui_three] = ${VAR_TYPE}(a_coords) * 0.125;\n";
252 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n";
253 vtx << " for (int i = 0; i < 4; i++)\n";
254 vtx << " {\n";
255 vtx << " var[i] = ${VAR_TYPE}(coords);\n";
256 vtx << " coords = coords * 0.5;\n";
257 vtx << " }\n";
262 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n";
263 vtx << " for (int i = 0; i < ui_four; i++)\n";
264 vtx << " {\n";
265 vtx << " var[i] = ${VAR_TYPE}(coords);\n";
266 vtx << " coords = coords * 0.5;\n";
267 vtx << " }\n";
269 vtx << "}\n";
327 StringTemplate vertTemplate(vtx.str().c_str());
338 std::ostringstream vtx;
340 std::ostringstream& op = isVertexCase ? vtx : frag;
342 vtx << "#version 300 es\n";
345 vtx << "in highp vec4 a_position;\n";
346 vtx << "in highp vec4 a_coords;\n";
351 vtx << "out mediump vec4 v_color;\n";
356 vtx << "out mediump vec4 v_coords;\n";
367 vtx << "\n";
368 vtx << "void main()\n";
369 vtx << "{\n";
370 vtx << " gl_Position = a_position;\n";
406 vtx << " v_color = vec4(res${PADDING});\n";
411 vtx << " v_coords = a_coords;\n";
415 vtx << "}\n";
433 StringTemplate vertTemplate(vtx.str().c_str());
444 std::ostringstream vtx;
446 std::ostringstream& op = isVertexCase ? vtx : frag;
448 vtx << "#version 300 es\n";
451 vtx << "in highp vec4 a_position;\n";
452 vtx << "in highp vec4 a_coords;\n";
457 vtx << "out mediump vec4 v_color;\n";
462 vtx << "out mediump vec4 v_coords;\n";
472 vtx << "\n";
473 vtx << "void main()\n";
474 vtx << "{\n";
475 vtx << " gl_Position = a_position;\n";
550 vtx << " v_color = vec4(res${PADDING});\n";
555 vtx << " v_coords = a_coords;\n";
559 vtx << "}\n";
577 StringTemplate vertTemplate(vtx.str().c_str());
604 std::ostringstream vtx;
606 std::ostringstream& op = isVertexCase ? vtx : frag;
611 vtx << "#version 300 es\n";
614 vtx << "in highp vec4 a_position;\n";
615 vtx << "in highp vec4 a_coords;\n";
620 vtx << "out mediump vec3 v_color;\n";
625 vtx << "out mediump vec4 v_coords;\n";
641 vtx << "\n";
642 vtx << "void main()\n";
643 vtx << "{\n";
644 vtx << " gl_Position = a_position;\n";
737 vtx << " v_color = vec3(res);\n";
742 vtx << " v_coords = a_coords;\n";
746 vtx << "}\n";
759 StringTemplate vertTemplate(vtx.str().c_str());
804 std::ostringstream vtx;
806 std::ostringstream& op = isVertexCase ? vtx : frag;
813 vtx << "#version 300 es\n";
816 vtx << "in highp vec4 a_position;\n";
817 vtx << "in highp vec4 a_coords;\n";
822 vtx << "out mediump vec4 v_color;\n";
827 vtx << "out mediump vec4 v_coords;\n";
843 vtx << "\n";
844 vtx << "void main()\n";
845 vtx << "{\n";
846 vtx << " gl_Position = a_position;\n";
921 vtx << " v_color = vec4(res${PADDING});\n";
926 vtx << " v_coords = a_coords;\n";
930 vtx << "}\n";
946 StringTemplate vertTemplate(vtx.str().c_str());