bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-inline-inoutstruct-ir.txt
Branimir Karadzic dee3fe5266 Initial commit.
2012-04-03 20:30:07 -07:00

21 lines
276 B
Text

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;
}