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

22 lines
276 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
struct SurfaceOutput {
vec4 color;
};
void surf (
inout SurfaceOutput o
)
{
vec4 tmpvar_1;
tmpvar_1 = vec4(1.0, 1.0, 1.0, 1.0);
o.color = tmpvar_1;
}
void main ()
{
SurfaceOutput o;
surf (o);
vec4 tmpvar_1;
tmpvar_1 = o.color;
gl_FragColor = tmpvar_1;
}