Lines Matching defs:vert
793 std::ostringstream vert;
795 std::ostringstream& op = isVtxCase ? vert : frag;
797 vert << "#version 300 es\n"
803 vert << "in " << coordPrecName << " " << gradTypeName << " a_in1;\n";
804 vert << "in " << coordPrecName << " " << gradTypeName << " a_in2;\n";
807 vert << "in " << coordPrecName << " float a_in1;\n";
814 vert << "out mediump vec4 v_color;\n";
819 vert << "out " << coordPrecName << " " << coordTypeName << " v_texCoord;\n";
824 vert << "out " << coordPrecName << " " << gradTypeName << " v_gradX;\n";
825 vert << "out " << coordPrecName << " " << gradTypeName << " v_gradY;\n";
832 vert << "out " << coordPrecName << " float v_lodBias;\n";
842 vert << "\nvoid main()\n{\n"
847 vert << "\tv_color = ";
913 vert << "\tv_texCoord = a_in0;\n";
917 vert << "\tv_gradX = a_in1;\n";
918 vert << "\tv_gradY = a_in2;\n";
921 vert << "\tv_lodBias = a_in1;\n";
924 vert << "}\n";
927 m_vertShaderSource = vert.str();
1267 std::ostringstream vert;
1269 vert << "#version 300 es\n"
1274 vert << "out mediump vec4 v_color;\n";
1275 vert << "uniform highp " << m_samplerTypeStr << " u_sampler;\n";
1276 vert << "uniform highp ivec" << (m_has3DSize ? 3 : 2) << " u_texSize;\n";
1277 vert << "uniform highp int u_lod;\n";
1280 vert << "void main()\n{\n";
1283 vert << " v_color = (textureSize(u_sampler, u_lod) == u_texSize ? vec4(1.0, 1.0, 1.0, 1.0) : vec4(0.0, 0.0, 0.0, 1.0));\n";
1285 vert << " gl_Position = a_position;\n"
1288 return vert.str();