SPV: RelaxedPrecision: Plumb this through the full AST->SPV translator.

This commit is contained in:
John Kessenich
2016-02-02 12:37:46 -07:00
parent 26bd6a313d
commit 32cfd49b68
11 changed files with 411 additions and 109 deletions

View File

@@ -23,6 +23,13 @@ bool boolfun(bvec2 bv2)
return bv2 == bvec2(false, true);
}
struct S {
highp float a;
lowp float b;
};
in S s;
void main()
{
lowp int sum = uniform_medium + uniform_high;
@@ -47,4 +54,7 @@ void main()
if (boolfun(ub2))
++mediumfout;
mediumfout *= s.a;
mediumfout *= s.b;
}