Lines Matching defs:shader
151 // This functions builds a matching vertex shader for a 'both' case, when
152 // the fragment shader is being tested.
240 ostringstream shader;
244 shader << glu::getGLSLVersionDeclaration(spec.targetVersion) << "\n";
246 shader << "precision highp float;\n";
247 shader << "precision highp int;\n";
248 shader << "\n";
250 shader << "layout(location = 0) out mediump vec4 dEQP_FragColor;\n";
251 shader << "\n";
253 genCompareFunctions(shader, spec.values, false);
254 shader << "\n";
266 shader << "layout(location = " << curInLoc << ") flat in " << transportTypeStr << " " << (valueType != transportType ? "v_" : "") << val.name << ";\n";
274 declareReferenceBlock(shader, spec.values);
276 shader << "\n";
277 shader << "void main()\n";
278 shader << "{\n";
280 shader << setup.str();
282 shader << " ";
283 genCompareOp(shader, "dEQP_FragColor", spec.values, DE_NULL);
285 shader << "}\n";
286 return shader.str();
289 // Specialize a shader for the vertex shader test case.
370 // Specialize a shader for the fragment shader test case.
1330 // Initialize the resources for each color attachment needed by the shader
1611 // Result was checked in fragment shader