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

11 lines
171 B
Text

struct SurfaceOutput {
vec4 color;
};
void surf(inout SurfaceOutput o) {
o.color = vec4(1);
}
void main() {
SurfaceOutput o;
surf(o);
gl_FragColor = o.color;
}