• Home
  • Raw
  • Download

Lines Matching refs:vtx

266 	std::ostringstream vtx;  in createVaryingArrayCase()  local
267 vtx << "#version 310 es\n"; in createVaryingArrayCase()
268 vtx << "layout(location = 0) in highp vec4 a_position;\n"; in createVaryingArrayCase()
269 vtx << "layout(location = 1) in highp vec4 a_coords;\n"; in createVaryingArrayCase()
272 vtx << "layout(std140, binding = 0) uniform something0 { mediump int ui_zero; };\n"; in createVaryingArrayCase()
273 vtx << "layout(std140, binding = 1) uniform something1 { mediump int ui_one; };\n"; in createVaryingArrayCase()
274 vtx << "layout(std140, binding = 2) uniform something2 { mediump int ui_two; };\n"; in createVaryingArrayCase()
275 vtx << "layout(std140, binding = 3) uniform something3 { mediump int ui_three; };\n"; in createVaryingArrayCase()
278 vtx << "layout(std140, binding = 4) uniform something { mediump int ui_four; };\n"; in createVaryingArrayCase()
279 vtx << "layout(location = 0) out ${PRECISION} ${VAR_TYPE} var[${ARRAY_LEN}];\n"; in createVaryingArrayCase()
280 vtx << "\n"; in createVaryingArrayCase()
281 vtx << "void main()\n"; in createVaryingArrayCase()
282 vtx << "{\n"; in createVaryingArrayCase()
283 vtx << " gl_Position = a_position;\n"; in createVaryingArrayCase()
286 vtx << " var[0] = ${VAR_TYPE}(a_coords);\n"; in createVaryingArrayCase()
287 vtx << " var[1] = ${VAR_TYPE}(a_coords) * 0.5;\n"; in createVaryingArrayCase()
288 vtx << " var[2] = ${VAR_TYPE}(a_coords) * 0.25;\n"; in createVaryingArrayCase()
289 vtx << " var[3] = ${VAR_TYPE}(a_coords) * 0.125;\n"; in createVaryingArrayCase()
293 vtx << " var[ui_zero] = ${VAR_TYPE}(a_coords);\n"; in createVaryingArrayCase()
294 vtx << " var[ui_one] = ${VAR_TYPE}(a_coords) * 0.5;\n"; in createVaryingArrayCase()
295 vtx << " var[ui_two] = ${VAR_TYPE}(a_coords) * 0.25;\n"; in createVaryingArrayCase()
296 vtx << " var[ui_three] = ${VAR_TYPE}(a_coords) * 0.125;\n"; in createVaryingArrayCase()
300 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n"; in createVaryingArrayCase()
301 vtx << " for (int i = 0; i < 4; i++)\n"; in createVaryingArrayCase()
302 vtx << " {\n"; in createVaryingArrayCase()
303 vtx << " var[i] = ${VAR_TYPE}(coords);\n"; in createVaryingArrayCase()
304 vtx << " coords = coords * 0.5;\n"; in createVaryingArrayCase()
305 vtx << " }\n"; in createVaryingArrayCase()
310 vtx << " ${PRECISION} ${VAR_TYPE} coords = ${VAR_TYPE}(a_coords);\n"; in createVaryingArrayCase()
311 vtx << " for (int i = 0; i < ui_four; i++)\n"; in createVaryingArrayCase()
312 vtx << " {\n"; in createVaryingArrayCase()
313 vtx << " var[i] = ${VAR_TYPE}(coords);\n"; in createVaryingArrayCase()
314 vtx << " coords = coords * 0.5;\n"; in createVaryingArrayCase()
315 vtx << " }\n"; in createVaryingArrayCase()
317 vtx << "}\n"; in createVaryingArrayCase()
380 StringTemplate vertTemplate(vtx.str()); in createVaryingArrayCase()
396 std::ostringstream vtx; in createUniformArrayCase() local
398 std::ostringstream& op = isVertexCase ? vtx : frag; in createUniformArrayCase()
400 vtx << "#version 310 es\n"; in createUniformArrayCase()
403 vtx << "layout(location = 0) in highp vec4 a_position;\n"; in createUniformArrayCase()
404 vtx << "layout(location = 1) in highp vec4 a_coords;\n"; in createUniformArrayCase()
409 vtx << "layout(location = 0) out mediump vec4 v_color;\n"; in createUniformArrayCase()
414 vtx << "layout(location = 0) out mediump vec4 v_coords;\n"; in createUniformArrayCase()
430 vtx << "\n"; in createUniformArrayCase()
431 vtx << "void main()\n"; in createUniformArrayCase()
432 vtx << "{\n"; in createUniformArrayCase()
433 vtx << " gl_Position = a_position;\n"; in createUniformArrayCase()
469 vtx << " v_color = vec4(res${PADDING});\n"; in createUniformArrayCase()
474 vtx << " v_coords = a_coords;\n"; in createUniformArrayCase()
478 vtx << "}\n"; in createUniformArrayCase()
496 StringTemplate vertTemplate(vtx.str()); in createUniformArrayCase()
513 std::ostringstream vtx; in createTmpArrayCase() local
515 std::ostringstream& op = isVertexCase ? vtx : frag; in createTmpArrayCase()
517 vtx << "#version 310 es\n"; in createTmpArrayCase()
520 vtx << "layout(location = 0) in highp vec4 a_position;\n"; in createTmpArrayCase()
521 vtx << "layout(location = 1) in highp vec4 a_coords;\n"; in createTmpArrayCase()
526 vtx << "layout(location = 0) out mediump vec4 v_color;\n"; in createTmpArrayCase()
531 vtx << "layout(location = 0) out mediump vec4 v_coords;\n"; in createTmpArrayCase()
546 vtx << "\n"; in createTmpArrayCase()
547 vtx << "void main()\n"; in createTmpArrayCase()
548 vtx << "{\n"; in createTmpArrayCase()
549 vtx << " gl_Position = a_position;\n"; in createTmpArrayCase()
648 vtx << " v_color = vec4(res${PADDING});\n"; in createTmpArrayCase()
654 vtx << " v_coords = a_coords;\n"; in createTmpArrayCase()
658 vtx << "}\n"; in createTmpArrayCase()
683 StringTemplate vertTemplate(vtx.str()); in createTmpArrayCase()
721 std::ostringstream vtx; in createVectorSubscriptCase() local
723 std::ostringstream& op = isVertexCase ? vtx : frag; in createVectorSubscriptCase()
728 vtx << "#version 310 es\n"; in createVectorSubscriptCase()
731 vtx << "layout(location = 0) in highp vec4 a_position;\n"; in createVectorSubscriptCase()
732 vtx << "layout(location = 1) in highp vec4 a_coords;\n"; in createVectorSubscriptCase()
737 vtx << "layout(location = 0) out mediump vec3 v_color;\n"; in createVectorSubscriptCase()
742 vtx << "layout(location = 0) out mediump vec4 v_coords;\n"; in createVectorSubscriptCase()
757 vtx << "\n"; in createVectorSubscriptCase()
758 vtx << "void main()\n"; in createVectorSubscriptCase()
759 vtx << "{\n"; in createVectorSubscriptCase()
760 vtx << " gl_Position = a_position;\n"; in createVectorSubscriptCase()
853 vtx << " v_color = vec3(res);\n"; in createVectorSubscriptCase()
858 vtx << " v_coords = a_coords;\n"; in createVectorSubscriptCase()
862 vtx << "}\n"; in createVectorSubscriptCase()
875 StringTemplate vertTemplate(vtx.str()); in createVectorSubscriptCase()
926 std::ostringstream vtx; in createMatrixSubscriptCase() local
928 std::ostringstream& op = isVertexCase ? vtx : frag; in createMatrixSubscriptCase()
935 vtx << "#version 310 es\n"; in createMatrixSubscriptCase()
938 vtx << "layout(location = 0) in highp vec4 a_position;\n"; in createMatrixSubscriptCase()
939 vtx << "layout(location = 1) in highp vec4 a_coords;\n"; in createMatrixSubscriptCase()
944 vtx << "layout(location = 0) out mediump vec4 v_color;\n"; in createMatrixSubscriptCase()
949 vtx << "layout(location = 0) out mediump vec4 v_coords;\n"; in createMatrixSubscriptCase()
964 vtx << "\n"; in createMatrixSubscriptCase()
965 vtx << "void main()\n"; in createMatrixSubscriptCase()
966 vtx << "{\n"; in createMatrixSubscriptCase()
967 vtx << " gl_Position = a_position;\n"; in createMatrixSubscriptCase()
1042 vtx << " v_color = vec4(res${PADDING});\n"; in createMatrixSubscriptCase()
1047 vtx << " v_coords = a_coords;\n"; in createMatrixSubscriptCase()
1051 vtx << "}\n"; in createMatrixSubscriptCase()
1067 StringTemplate vertTemplate(vtx.str()); in createMatrixSubscriptCase()