bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-inline-inoutstruct-ir.txt
2012-10-07 20:41:18 -07:00

22 lines
286 B
Plaintext

struct SurfaceOutput {
vec4 color;
};
void surf (
inout SurfaceOutput o_1
)
{
vec4 tmpvar_2;
tmpvar_2 = vec4(1.0, 1.0, 1.0, 1.0);
o_1.color = tmpvar_2;
}
void main ()
{
SurfaceOutput o_3;
surf (o_3);
vec4 tmpvar_4;
tmpvar_4 = o_3.color;
gl_FragColor = tmpvar_4;
}