• Home
  • Raw
  • Download

Lines Matching refs:vtx

224 	std::ostringstream vtx;  in createVaryingArrayCase()  local
225 vtx << "#version 300 es\n"; in createVaryingArrayCase()
226 vtx << "in highp vec4 a_position;\n"; in createVaryingArrayCase()
227 vtx << "in highp vec4 a_coords;\n"; in createVaryingArrayCase()
229 vtx << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n"; in createVaryingArrayCase()
231 vtx << "uniform mediump int ui_four;\n"; in createVaryingArrayCase()
232 vtx << "out ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n"; in createVaryingArrayCase()
233 vtx << "\n"; in createVaryingArrayCase()
234 vtx << "void main()\n"; in createVaryingArrayCase()
235 vtx << "{\n"; in createVaryingArrayCase()
236 vtx << " gl_Position = a_position;\n"; in createVaryingArrayCase()
239 vtx << " var[0] = ${VAR_TYPE}(a_coords);\n"; in createVaryingArrayCase()
240 vtx << " var[1] = ${VAR_TYPE}(a_coords) * 0.5;\n"; in createVaryingArrayCase()
241 vtx << " var[2] = ${VAR_TYPE}(a_coords) * 0.25;\n"; in createVaryingArrayCase()
242 vtx << " var[3] = ${VAR_TYPE}(a_coords) * 0.125;\n"; in createVaryingArrayCase()
246 vtx << " var[ui_zero] = ${VAR_TYPE}(a_coords);\n"; in createVaryingArrayCase()
247 vtx << " var[ui_one] = ${VAR_TYPE}(a_coords) * 0.5;\n"; in createVaryingArrayCase()
248 vtx << " var[ui_two] = ${VAR_TYPE}(a_coords) * 0.25;\n"; in createVaryingArrayCase()
249 vtx << " var[ui_three] = ${VAR_TYPE}(a_coords) * 0.125;\n"; in createVaryingArrayCase()
253 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n"; in createVaryingArrayCase()
254 vtx << " for (int i = 0; i < 4; i++)\n"; in createVaryingArrayCase()
255 vtx << " {\n"; in createVaryingArrayCase()
256 vtx << " var[i] = ${VAR_TYPE}(coords);\n"; in createVaryingArrayCase()
257 vtx << " coords = coords * 0.5;\n"; in createVaryingArrayCase()
258 vtx << " }\n"; in createVaryingArrayCase()
263 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n"; in createVaryingArrayCase()
264 vtx << " for (int i = 0; i < ui_four; i++)\n"; in createVaryingArrayCase()
265 vtx << " {\n"; in createVaryingArrayCase()
266 vtx << " var[i] = ${VAR_TYPE}(coords);\n"; in createVaryingArrayCase()
267 vtx << " coords = coords * 0.5;\n"; in createVaryingArrayCase()
268 vtx << " }\n"; in createVaryingArrayCase()
270 vtx << "}\n"; in createVaryingArrayCase()
328 StringTemplate vertTemplate(vtx.str().c_str()); in createVaryingArrayCase()
339 std::ostringstream vtx; in createUniformArrayCase() local
341 std::ostringstream& op = isVertexCase ? vtx : frag; in createUniformArrayCase()
343 vtx << "#version 300 es\n"; in createUniformArrayCase()
346 vtx << "in highp vec4 a_position;\n"; in createUniformArrayCase()
347 vtx << "in highp vec4 a_coords;\n"; in createUniformArrayCase()
352 vtx << "out mediump vec4 v_color;\n"; in createUniformArrayCase()
357 vtx << "out mediump vec4 v_coords;\n"; in createUniformArrayCase()
368 vtx << "\n"; in createUniformArrayCase()
369 vtx << "void main()\n"; in createUniformArrayCase()
370 vtx << "{\n"; in createUniformArrayCase()
371 vtx << " gl_Position = a_position;\n"; in createUniformArrayCase()
407 vtx << " v_color = vec4(res${PADDING});\n"; in createUniformArrayCase()
412 vtx << " v_coords = a_coords;\n"; in createUniformArrayCase()
416 vtx << "}\n"; in createUniformArrayCase()
434 StringTemplate vertTemplate(vtx.str().c_str()); in createUniformArrayCase()
445 std::ostringstream vtx; in createTmpArrayCase() local
447 std::ostringstream& op = isVertexCase ? vtx : frag; in createTmpArrayCase()
449 vtx << "#version 300 es\n"; in createTmpArrayCase()
452 vtx << "in highp vec4 a_position;\n"; in createTmpArrayCase()
453 vtx << "in highp vec4 a_coords;\n"; in createTmpArrayCase()
458 vtx << "out mediump vec4 v_color;\n"; in createTmpArrayCase()
463 vtx << "out mediump vec4 v_coords;\n"; in createTmpArrayCase()
473 vtx << "\n"; in createTmpArrayCase()
474 vtx << "void main()\n"; in createTmpArrayCase()
475 vtx << "{\n"; in createTmpArrayCase()
476 vtx << " gl_Position = a_position;\n"; in createTmpArrayCase()
551 vtx << " v_color = vec4(res${PADDING});\n"; in createTmpArrayCase()
556 vtx << " v_coords = a_coords;\n"; in createTmpArrayCase()
560 vtx << "}\n"; in createTmpArrayCase()
578 StringTemplate vertTemplate(vtx.str().c_str()); in createTmpArrayCase()
605 std::ostringstream vtx; in createVectorSubscriptCase() local
607 std::ostringstream& op = isVertexCase ? vtx : frag; in createVectorSubscriptCase()
612 vtx << "#version 300 es\n"; in createVectorSubscriptCase()
615 vtx << "in highp vec4 a_position;\n"; in createVectorSubscriptCase()
616 vtx << "in highp vec4 a_coords;\n"; in createVectorSubscriptCase()
621 vtx << "out mediump vec3 v_color;\n"; in createVectorSubscriptCase()
626 vtx << "out mediump vec4 v_coords;\n"; in createVectorSubscriptCase()
642 vtx << "\n"; in createVectorSubscriptCase()
643 vtx << "void main()\n"; in createVectorSubscriptCase()
644 vtx << "{\n"; in createVectorSubscriptCase()
645 vtx << " gl_Position = a_position;\n"; in createVectorSubscriptCase()
738 vtx << " v_color = vec3(res);\n"; in createVectorSubscriptCase()
743 vtx << " v_coords = a_coords;\n"; in createVectorSubscriptCase()
747 vtx << "}\n"; in createVectorSubscriptCase()
760 StringTemplate vertTemplate(vtx.str().c_str()); in createVectorSubscriptCase()
805 std::ostringstream vtx; in createMatrixSubscriptCase() local
807 std::ostringstream& op = isVertexCase ? vtx : frag; in createMatrixSubscriptCase()
814 vtx << "#version 300 es\n"; in createMatrixSubscriptCase()
817 vtx << "in highp vec4 a_position;\n"; in createMatrixSubscriptCase()
818 vtx << "in highp vec4 a_coords;\n"; in createMatrixSubscriptCase()
823 vtx << "out mediump vec4 v_color;\n"; in createMatrixSubscriptCase()
828 vtx << "out mediump vec4 v_coords;\n"; in createMatrixSubscriptCase()
844 vtx << "\n"; in createMatrixSubscriptCase()
845 vtx << "void main()\n"; in createMatrixSubscriptCase()
846 vtx << "{\n"; in createMatrixSubscriptCase()
847 vtx << " gl_Position = a_position;\n"; in createMatrixSubscriptCase()
922 vtx << " v_color = vec4(res${PADDING});\n"; in createMatrixSubscriptCase()
927 vtx << " v_coords = a_coords;\n"; in createMatrixSubscriptCase()
931 vtx << "}\n"; in createMatrixSubscriptCase()
947 StringTemplate vertTemplate(vtx.str().c_str()); in createMatrixSubscriptCase()