Lines Matching refs:src
62 std::ostringstream src;
63 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n"
74 programCollection.glslSources.add("vert") << glu::VertexSource(src.str());
79 std::ostringstream src;
80 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n"
89 programCollection.glslSources.add("frag") << glu::FragmentSource(src.str());
96 std::ostringstream src;
97 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n"
109 src << " vec3 weights = vec3(pow(gl_TessCoord.x, 1.3), pow(gl_TessCoord.y, 1.3), pow(gl_TessCoord.z, 1.3));\n"
114 src << " vec2 normalizedCoord = (gl_TessCoord.xy * 2.0 - vec2(1.0));\n"
123 src << "}\n";
125 return src.str();
160 std::ostringstream src;
161 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n"
190 programCollection.glslSources.add("tesc") << glu::TessellationControlSource(src.str());
203 std::ostringstream src;
204 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n"
223 programCollection.glslSources.add("geom") << glu::GeometrySource(src.str());
258 std::ostringstream src;
259 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n"
273 src << " vec4 centerPos = (gl_in[0].gl_Position + gl_in[1].gl_Position + gl_in[2].gl_Position) / 3.0f;\n"
288 src << " vec4 mdir = vec4(gl_in[0].gl_Position.y - gl_in[1].gl_Position.y, gl_in[1].gl_Position.x - gl_in[0].gl_Position.x, 0.0, 0.0);\n"
301 src << "}\n";
303 return src.str();
312 std::ostringstream src;
313 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n"
333 programCollection.glslSources.add("tesc") << glu::TessellationControlSource(src.str());
338 std::ostringstream src;
339 src << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_310_ES) << "\n"
351 src << " gl_Position = gl_TessCoord.x * gl_in[0].gl_Position + gl_TessCoord.y * gl_in[1].gl_Position + gl_TessCoord.z * gl_in[2].gl_Position;\n"
354 src << " gl_Position = mix(gl_in[0].gl_Position, gl_in[1].gl_Position, gl_TessCoord.x);\n"
359 src << "}\n";
361 programCollection.glslSources.add("tese") << glu::TessellationEvaluationSource(src.str());