• Home
  • Raw
  • Download

Lines Matching refs:vtx

253 	std::ostringstream vtx;  in createVaryingArrayCase()  local
254 vtx << "attribute highp vec4 a_position;\n"; in createVaryingArrayCase()
255 vtx << "attribute highp vec4 a_coords;\n"; in createVaryingArrayCase()
257 vtx << "uniform mediump int ui_zero, ui_one, ui_two, ui_three;\n"; in createVaryingArrayCase()
259 vtx << "uniform mediump int ui_four;\n"; in createVaryingArrayCase()
260 vtx << "varying ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n"; in createVaryingArrayCase()
261 vtx << "\n"; in createVaryingArrayCase()
262 vtx << "void main()\n"; in createVaryingArrayCase()
263 vtx << "{\n"; in createVaryingArrayCase()
264 vtx << " gl_Position = a_position;\n"; in createVaryingArrayCase()
267 vtx << " var[0] = ${VAR_TYPE}(a_coords);\n"; in createVaryingArrayCase()
268 vtx << " var[1] = ${VAR_TYPE}(a_coords) * 0.5;\n"; in createVaryingArrayCase()
269 vtx << " var[2] = ${VAR_TYPE}(a_coords) * 0.25;\n"; in createVaryingArrayCase()
270 vtx << " var[3] = ${VAR_TYPE}(a_coords) * 0.125;\n"; in createVaryingArrayCase()
274 vtx << " var[ui_zero] = ${VAR_TYPE}(a_coords);\n"; in createVaryingArrayCase()
275 vtx << " var[ui_one] = ${VAR_TYPE}(a_coords) * 0.5;\n"; in createVaryingArrayCase()
276 vtx << " var[ui_two] = ${VAR_TYPE}(a_coords) * 0.25;\n"; in createVaryingArrayCase()
277 vtx << " var[ui_three] = ${VAR_TYPE}(a_coords) * 0.125;\n"; in createVaryingArrayCase()
281 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n"; in createVaryingArrayCase()
282 vtx << " for (int i = 0; i < 4; i++)\n"; in createVaryingArrayCase()
283 vtx << " {\n"; in createVaryingArrayCase()
284 vtx << " var[i] = ${VAR_TYPE}(coords);\n"; in createVaryingArrayCase()
285 vtx << " coords = coords * 0.5;\n"; in createVaryingArrayCase()
286 vtx << " }\n"; in createVaryingArrayCase()
291 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n"; in createVaryingArrayCase()
292 vtx << " for (int i = 0; i < ui_four; i++)\n"; in createVaryingArrayCase()
293 vtx << " {\n"; in createVaryingArrayCase()
294 vtx << " var[i] = ${VAR_TYPE}(coords);\n"; in createVaryingArrayCase()
295 vtx << " coords = coords * 0.5;\n"; in createVaryingArrayCase()
296 vtx << " }\n"; in createVaryingArrayCase()
298 vtx << "}\n"; in createVaryingArrayCase()
354 StringTemplate vertTemplate(vtx.str().c_str()); in createVaryingArrayCase()
376 std::ostringstream vtx; in createUniformArrayCase() local
378 std::ostringstream& op = isVertexCase ? vtx : frag; in createUniformArrayCase()
380 vtx << "attribute highp vec4 a_position;\n"; in createUniformArrayCase()
381 vtx << "attribute highp vec4 a_coords;\n"; in createUniformArrayCase()
385 vtx << "varying mediump vec4 v_color;\n"; in createUniformArrayCase()
390 vtx << "varying mediump vec4 v_coords;\n"; in createUniformArrayCase()
401 vtx << "\n"; in createUniformArrayCase()
402 vtx << "void main()\n"; in createUniformArrayCase()
403 vtx << "{\n"; in createUniformArrayCase()
404 vtx << " gl_Position = a_position;\n"; in createUniformArrayCase()
440 vtx << " v_color = vec4(res${PADDING});\n"; in createUniformArrayCase()
445 vtx << " v_coords = a_coords;\n"; in createUniformArrayCase()
449 vtx << "}\n"; in createUniformArrayCase()
467 StringTemplate vertTemplate(vtx.str().c_str()); in createUniformArrayCase()
486 std::ostringstream vtx; in createTmpArrayCase() local
488 std::ostringstream& op = isVertexCase ? vtx : frag; in createTmpArrayCase()
490 vtx << "attribute highp vec4 a_position;\n"; in createTmpArrayCase()
491 vtx << "attribute highp vec4 a_coords;\n"; in createTmpArrayCase()
495 vtx << "varying mediump vec4 v_color;\n"; in createTmpArrayCase()
500 vtx << "varying mediump vec4 v_coords;\n"; in createTmpArrayCase()
510 vtx << "\n"; in createTmpArrayCase()
511 vtx << "void main()\n"; in createTmpArrayCase()
512 vtx << "{\n"; in createTmpArrayCase()
513 vtx << " gl_Position = a_position;\n"; in createTmpArrayCase()
588 vtx << " v_color = vec4(res${PADDING});\n"; in createTmpArrayCase()
593 vtx << " v_coords = a_coords;\n"; in createTmpArrayCase()
597 vtx << "}\n"; in createTmpArrayCase()
615 StringTemplate vertTemplate(vtx.str().c_str()); in createTmpArrayCase()
650 std::ostringstream vtx; in createVectorSubscriptCase() local
652 std::ostringstream& op = isVertexCase ? vtx : frag; in createVectorSubscriptCase()
657 vtx << "attribute highp vec4 a_position;\n"; in createVectorSubscriptCase()
658 vtx << "attribute highp vec4 a_coords;\n"; in createVectorSubscriptCase()
662 vtx << "varying mediump vec3 v_color;\n"; in createVectorSubscriptCase()
667 vtx << "varying mediump vec4 v_coords;\n"; in createVectorSubscriptCase()
683 vtx << "\n"; in createVectorSubscriptCase()
684 vtx << "void main()\n"; in createVectorSubscriptCase()
685 vtx << "{\n"; in createVectorSubscriptCase()
686 vtx << " gl_Position = a_position;\n"; in createVectorSubscriptCase()
779 vtx << " v_color = vec3(res);\n"; in createVectorSubscriptCase()
784 vtx << " v_coords = a_coords;\n"; in createVectorSubscriptCase()
788 vtx << "}\n"; in createVectorSubscriptCase()
801 StringTemplate vertTemplate(vtx.str().c_str()); in createVectorSubscriptCase()
836 std::ostringstream vtx; in createMatrixSubscriptCase() local
838 std::ostringstream& op = isVertexCase ? vtx : frag; in createMatrixSubscriptCase()
844 vtx << "attribute highp vec4 a_position;\n"; in createMatrixSubscriptCase()
845 vtx << "attribute highp vec4 a_coords;\n"; in createMatrixSubscriptCase()
849 vtx << "varying mediump vec4 v_color;\n"; in createMatrixSubscriptCase()
854 vtx << "varying mediump vec4 v_coords;\n"; in createMatrixSubscriptCase()
870 vtx << "\n"; in createMatrixSubscriptCase()
871 vtx << "void main()\n"; in createMatrixSubscriptCase()
872 vtx << "{\n"; in createMatrixSubscriptCase()
873 vtx << " gl_Position = a_position;\n"; in createMatrixSubscriptCase()
948 vtx << " v_color = vec4(res${PADDING});\n"; in createMatrixSubscriptCase()
953 vtx << " v_coords = a_coords;\n"; in createMatrixSubscriptCase()
957 vtx << "}\n"; in createMatrixSubscriptCase()
973 StringTemplate vertTemplate(vtx.str().c_str()); in createMatrixSubscriptCase()