Lines Matching refs:vtx
263 std::ostringstream vtx;
264 vtx << "#version 310 es\n";
265 vtx << "layout(location = 0) in highp vec4 a_position;\n";
266 vtx << "layout(location = 1) in highp vec4 a_coords;\n";
269 vtx << "layout(std140, binding = 0) uniform something0 { mediump int ui_zero; };\n";
270 vtx << "layout(std140, binding = 1) uniform something1 { mediump int ui_one; };\n";
271 vtx << "layout(std140, binding = 2) uniform something2 { mediump int ui_two; };\n";
272 vtx << "layout(std140, binding = 3) uniform something3 { mediump int ui_three; };\n";
275 vtx << "layout(std140, binding = 4) uniform something { mediump int ui_four; };\n";
276 vtx << "layout(location = 0) out ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n";
277 vtx << "\n";
278 vtx << "void main()\n";
279 vtx << "{\n";
280 vtx << " gl_Position = a_position;\n";
283 vtx << " var[0] = ${VAR_TYPE}(a_coords);\n";
284 vtx << " var[1] = ${VAR_TYPE}(a_coords) * 0.5;\n";
285 vtx << " var[2] = ${VAR_TYPE}(a_coords) * 0.25;\n";
286 vtx << " var[3] = ${VAR_TYPE}(a_coords) * 0.125;\n";
290 vtx << " var[ui_zero] = ${VAR_TYPE}(a_coords);\n";
291 vtx << " var[ui_one] = ${VAR_TYPE}(a_coords) * 0.5;\n";
292 vtx << " var[ui_two] = ${VAR_TYPE}(a_coords) * 0.25;\n";
293 vtx << " var[ui_three] = ${VAR_TYPE}(a_coords) * 0.125;\n";
297 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n";
298 vtx << " for (int i = 0; i < 4; i++)\n";
299 vtx << " {\n";
300 vtx << " var[i] = ${VAR_TYPE}(coords);\n";
301 vtx << " coords = coords * 0.5;\n";
302 vtx << " }\n";
307 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n";
308 vtx << " for (int i = 0; i < ui_four; i++)\n";
309 vtx << " {\n";
310 vtx << " var[i] = ${VAR_TYPE}(coords);\n";
311 vtx << " coords = coords * 0.5;\n";
312 vtx << " }\n";
314 vtx << "}\n";
377 StringTemplate vertTemplate(vtx.str());
392 std::ostringstream vtx;
394 std::ostringstream& op = isVertexCase ? vtx : frag;
396 vtx << "#version 310 es\n";
399 vtx << "layout(location = 0) in highp vec4 a_position;\n";
400 vtx << "layout(location = 1) in highp vec4 a_coords;\n";
405 vtx << "layout(location = 0) out mediump vec4 v_color;\n";
410 vtx << "layout(location = 0) out mediump vec4 v_coords;\n";
426 vtx << "\n";
427 vtx << "void main()\n";
428 vtx << "{\n";
429 vtx << " gl_Position = a_position;\n";
465 vtx << " v_color = vec4(res${PADDING});\n";
470 vtx << " v_coords = a_coords;\n";
474 vtx << "}\n";
492 StringTemplate vertTemplate(vtx.str());
508 std::ostringstream vtx;
510 std::ostringstream& op = isVertexCase ? vtx : frag;
512 vtx << "#version 310 es\n";
515 vtx << "layout(location = 0) in highp vec4 a_position;\n";
516 vtx << "layout(location = 1) in highp vec4 a_coords;\n";
521 vtx << "layout(location = 0) out mediump vec4 v_color;\n";
526 vtx << "layout(location = 0) out mediump vec4 v_coords;\n";
541 vtx << "\n";
542 vtx << "void main()\n";
543 vtx << "{\n";
544 vtx << " gl_Position = a_position;\n";
643 vtx << " v_color = vec4(res${PADDING});\n";
649 vtx << " v_coords = a_coords;\n";
653 vtx << "}\n";
678 StringTemplate vertTemplate(vtx.str());
715 std::ostringstream vtx;
717 std::ostringstream& op = isVertexCase ? vtx : frag;
722 vtx << "#version 310 es\n";
725 vtx << "layout(location = 0) in highp vec4 a_position;\n";
726 vtx << "layout(location = 1) in highp vec4 a_coords;\n";
731 vtx << "layout(location = 0) out mediump vec3 v_color;\n";
736 vtx << "layout(location = 0) out mediump vec4 v_coords;\n";
751 vtx << "\n";
752 vtx << "void main()\n";
753 vtx << "{\n";
754 vtx << " gl_Position = a_position;\n";
847 vtx << " v_color = vec3(res);\n";
852 vtx << " v_coords = a_coords;\n";
856 vtx << "}\n";
869 StringTemplate vertTemplate(vtx.str());
919 std::ostringstream vtx;
921 std::ostringstream& op = isVertexCase ? vtx : frag;
928 vtx << "#version 310 es\n";
931 vtx << "layout(location = 0) in highp vec4 a_position;\n";
932 vtx << "layout(location = 1) in highp vec4 a_coords;\n";
937 vtx << "layout(location = 0) out mediump vec4 v_color;\n";
942 vtx << "layout(location = 0) out mediump vec4 v_coords;\n";
957 vtx << "\n";
958 vtx << "void main()\n";
959 vtx << "{\n";
960 vtx << " gl_Position = a_position;\n";
1035 vtx << " v_color = vec4(res${PADDING});\n";
1040 vtx << " v_coords = a_coords;\n";
1044 vtx << "}\n";
1060 StringTemplate vertTemplate(vtx.str());