SPV: RelaxedPrecision: Plumb this through the full AST->SPV translator.
This commit is contained in:
parent
26bd6a313d
commit
32cfd49b68
11 changed files with 411 additions and 109 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue