bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-inline-inoutstruct-ir.txt

22 lines
286 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
struct SurfaceOutput {
vec4 color;
};
void surf (
2012-10-07 23:41:18 -04:00
inout SurfaceOutput o_1
2012-04-03 23:30:07 -04:00
)
{
2012-10-07 23:41:18 -04:00
vec4 tmpvar_2;
tmpvar_2 = vec4(1.0, 1.0, 1.0, 1.0);
o_1.color = tmpvar_2;
2012-04-03 23:30:07 -04:00
}
void main ()
{
2012-10-07 23:41:18 -04:00
SurfaceOutput o_3;
surf (o_3);
vec4 tmpvar_4;
tmpvar_4 = o_3.color;
gl_FragColor = tmpvar_4;
2012-04-03 23:30:07 -04:00
}