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

12 lines
171 B
Text
Raw Normal View History

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