Lines Matching defs:buf
1058 std::ostringstream buf;
1060 buf << "${GLSL_VERSION_DECL}\n"
1067 buf << "#extension GL_EXT_geometry_point_size : require\n";
1069 buf << "layout(points) in;\n";
1072 buf << "layout(points, max_vertices = 1) out;\n";
1074 buf << "layout(triangle_strip, max_vertices = 3) out;\n";
1077 buf << "in highp vec4 v_geom_pointSize[];\n";
1079 buf << "in highp vec4 v_geom_primitiveID[];\n";
1082 buf << "out highp vec4 v_frag_FragColor;\n";
1084 buf << "\n"
1090 buf << " gl_Position = gl_in[0].gl_Position;\n"
1097 buf << " const highp vec4 red = vec4(1.0, 0.0, 0.0, 1.0);\n"
1117 buf << " gl_Position = gl_in[0].gl_Position + vec4(0.05, 0.0, 0.0, 0.0);\n"
1133 buf << "}\n";
1135 return specializeShader(buf.str(), contextType);
1140 std::ostringstream buf;
1142 buf << "${GLSL_VERSION_DECL}\n"
1146 buf << "in highp vec4 a_pointSize;\n";
1148 buf << "in highp vec4 a_primitiveID;\n";
1151 buf << "out highp vec4 v_geom_pointSize;\n";
1153 buf << "out highp vec4 v_geom_primitiveID;\n";
1155 buf << "void main (void)\n"
1161 buf << " v_geom_pointSize = a_pointSize;\n";
1163 buf << " v_geom_primitiveID = a_primitiveID;\n";
1165 buf << "}\n";
1167 return specializeShader(buf.str(), contextType);
1172 std::ostringstream buf;
1178 buf << "${GLSL_VERSION_DECL}\n"
1191 return specializeShader(buf.str(), contextType);
1369 std::ostringstream buf;
1371 buf << "${GLSL_VERSION_DECL}\n"
1377 buf << "in highp vec4 v_geom_emitCount[];\n";
1379 buf << "in highp vec4 v_geom_vertexNdx[];\n"
1382 buf << "in highp vec4 v_geom_vertexNdx[];\n"
1385 buf << "out highp vec4 v_frag_FragColor;\n"
1394 buf << " highp vec4 attrEmitCounts = v_geom_emitCount[0];\n"
1399 buf << " mediump int primitiveNdx = " << ((instanced) ? ("gl_InvocationID") : ("int(v_geom_vertexNdx[0].x)")) << ";\n"
1404 buf << " highp float primitiveNdx = " << ((instanced) ? ("float(gl_InvocationID)") : ("v_geom_vertexNdx[0].x")) << ";\n"
1425 buf << " highp vec4 color = vec4((emitCount < 10) ? (0.0) : (1.0), (emitCount > 10) ? (0.0) : (1.0), 1.0, 1.0);\n";
1429 buf << "\n"
1440 buf << "\n"
1454 return specializeShader(buf.str(), contextType);
1459 std::ostringstream buf;
1461 buf << "${GLSL_VERSION_DECL}\n"
1466 buf << "in highp vec4 a_emitCount;\n";
1467 buf << "out highp vec4 v_geom_emitCount;\n";
1471 buf << "in highp vec4 a_vertexNdx;\n";
1472 buf << "out highp vec4 v_geom_vertexNdx;\n";
1475 buf << "void main (void)\n"
1480 buf << " v_geom_emitCount = a_emitCount;\n";
1482 buf << " v_geom_vertexNdx = a_vertexNdx;\n";
1484 buf << "}\n";
1486 return specializeShader(buf.str(), contextType);
1605 std::ostringstream buf;
1607 buf << "${GLSL_VERSION_DECL}\n"
1623 buf << " v_frag_FragColor = vec4(1.0, 1.0, 0.0, 1.0) * v_geom_FragColor[0];\n"
1637 buf << " highp vec4 l_color = vec4(float(gl_InvocationID % 2), (((gl_InvocationID / 2) % 2) == 0) ? (1.0) : (0.0), 1.0, 1.0);\n"
1663 buf << "}\n";
1665 return specializeShader(buf.str(), contextType);
1751 std::ostringstream buf;
1753 buf << "${GLSL_VERSION_DECL}\n"
1761 return specializeShader(buf.str(), contextType);
1766 std::ostringstream buf;
1768 buf << "${GLSL_VERSION_DECL}\n"
1775 return specializeShader(buf.str(), contextType);
1780 std::ostringstream buf;
1782 buf << "${GLSL_VERSION_DECL}\n"
1801 return specializeShader(buf.str(), contextType);
3134 std::ostringstream buf;
3136 buf << "${GLSL_VERSION_DECL}\n"
3140 buf << "layout(points, invocations=" << m_numLayers << ") in;\n";
3142 buf << "layout(points) in;\n";
3144 buf << "layout(triangle_strip, max_vertices = " << maxVertices << ") out;\n"
3152 buf << " const highp vec4 white = vec4(1.0, 1.0, 1.0, 1.0);\n\n"
3168 buf << " const highp vec4 white = vec4(1.0, 1.0, 1.0, 1.0);\n\n"
3190 buf << " const highp vec4 white = vec4(1.0, 1.0, 1.0, 1.0);\n"
3222 buf << " const highp vec4 white = vec4(1.0, 1.0, 1.0, 1.0);\n\n"
3242 buf << " const highp vec4 white = vec4(1.0, 1.0, 1.0, 1.0);\n"
3270 buf << " const highp vec4 white = vec4(1.0, 1.0, 1.0, 1.0);\n"
3307 buf << " const highp vec4 white = vec4(1.0, 1.0, 1.0, 1.0);\n\n"
3337 buf << "}\n";
3339 return specializeShader(buf.str(), contextType);
3344 std::ostringstream buf;
3346 buf << "${GLSL_VERSION_DECL}\n";
3348 buf << "${GLSL_OES_TEXTURE_STORAGE_MULTISAMPLE}";
3349 buf << "layout(location = 0) out mediump vec4 fragColor;\n";
3353 case TARGET_CUBE: buf << "uniform highp samplerCube u_sampler;\n"; break;
3354 case TARGET_3D: buf << "uniform highp sampler3D u_sampler;\n"; break;
3355 case TARGET_2D_ARRAY: buf << "uniform highp sampler2DArray u_sampler;\n"; break;
3356 case TARGET_1D_ARRAY: buf << "uniform highp sampler1DArray u_sampler;\n"; break;
3357 case TARGET_2D_MS_ARRAY: buf << "uniform highp sampler2DMSArray u_sampler;\n"; break;
3362 buf << "uniform highp int u_layer;\n"
3369 buf << " highp vec2 facepos = 2.0 * gl_FragCoord.xy / vec2(ivec2(" << m_resolveDimensions.x() << ", " << m_resolveDimensions.y() << ")) - vec2(1.0, 1.0);\n"
3389 buf << " highp ivec2 screenpos = ivec2(floor(gl_FragCoord.xy));\n"
3394 buf << " highp ivec2 screenpos = ivec2(floor(gl_FragCoord.xy));\n"
3401 buf << "}\n";
3402 return specializeShader(buf.str(), contextType);
3445 glu::Buffer buf (m_context.getRenderContext());
3454 gl.bindBuffer(GL_ARRAY_BUFFER, *buf);
3456 GLU_EXPECT_NO_ERROR(gl.getError(), "buf");
5561 GLU_EXPECT_NO_ERROR(gl.getError(), "gen buf");
5566 GLU_EXPECT_NO_ERROR(gl.getError(), "gen buf");
5571 GLU_EXPECT_NO_ERROR(gl.getError(), "gen buf");
5576 GLU_EXPECT_NO_ERROR(gl.getError(), "gen buf");
5897 GLU_EXPECT_NO_ERROR(gl.getError(), "gen buf");
5903 GLU_EXPECT_NO_ERROR(gl.getError(), "gen buf");
5914 GLU_EXPECT_NO_ERROR(gl.getError(), "gen buf");