mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-24 03:39:51 +00:00
32 lines
558 B
GLSL
32 lines
558 B
GLSL
float condf;
|
|
int condi;
|
|
float1 condf1;
|
|
int1 condi1;
|
|
|
|
float4 main() : SV_Target0
|
|
{
|
|
float4 a = float4(2.0, 2.0, 2.0, 2.0);
|
|
if (condi)
|
|
return a + 1.0;
|
|
if (condf)
|
|
return a + 2.0;
|
|
if (condf1)
|
|
return a + 3.0;
|
|
if (condi1)
|
|
return a + 4.0;
|
|
if (condi && condf || condf1)
|
|
return a + 5.0;
|
|
|
|
float f = condf;
|
|
while (f) { --f; }
|
|
|
|
int i = condi;
|
|
do { --i; } while (i);
|
|
|
|
for (; i; ) { --i; }
|
|
|
|
float g = condf ? 7.0 : 8.0;
|
|
a += g;
|
|
|
|
return a - 1.0;
|
|
} |