port from perforce
This commit is contained in:
14
hgplus/ShaderMinifier/tests/unit/precedence.frag
Normal file
14
hgplus/ShaderMinifier/tests/unit/precedence.frag
Normal file
@@ -0,0 +1,14 @@
|
||||
void main()
|
||||
{
|
||||
float f1 = 2. * 3. / 4. - 5. / 6.;
|
||||
float f2 = (true ? false ? 1. : 2. : 3. * 4.) * 5.;
|
||||
float f3 = 4. * (false ? (true ? 1. : 2.) : 3.);
|
||||
float f4 = float((2+3) * (4+5*6) - (7-8));
|
||||
float f5 = (2.+f1) * (4.+f2*6.) - (7.-f3);
|
||||
float f6 = -------5.;
|
||||
|
||||
float n = 1. / (f1 + f2 + f3)
|
||||
float o = 1. / (f4 * f5 * f6);
|
||||
|
||||
gl_FragColor=vec4(n,o,n,0.);
|
||||
}
|
||||
Reference in New Issue
Block a user