- Use supplied random seed in genFrgShaderSrc to vary generated fragment
shaders slightly. This prevents random test cases from always using
identical fragment shader pipeline programs. Prior to this CL, the
supplied random seed was unused.
Change-Id: Ib74b16cc92f41181a415966a4f2e4feab83781af
if (inputs.size() > 0)
{
- oss << "\t" << "switch (imod(int(0.5 * (gl_FragCoord.x - gl_FragCoord.y)), "
+ oss << "\t"
+ << "switch (imod(int(0.5 * (";
+
+ printFloat(oss, rnd.getFloat(0.5f, 2.0f));
+ oss << " * gl_FragCoord.x - ";
+
+ printFloat(oss, rnd.getFloat(0.5f, 2.0f));
+ oss << " * gl_FragCoord.y)), "
<< inputs.size() << "))" << "\n"
<< "\t" << "{" << "\n";