2016-03-02 17:09:16 +00:00
|
|
|
#version 310 es
|
|
|
|
precision mediump float;
|
|
|
|
precision highp int;
|
|
|
|
|
|
|
|
struct Structy
|
|
|
|
{
|
|
|
|
vec4 c;
|
|
|
|
};
|
|
|
|
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
|
2017-08-09 15:05:51 +00:00
|
|
|
void foo2(inout Structy f)
|
2016-03-02 17:09:16 +00:00
|
|
|
{
|
2016-03-12 13:17:19 +00:00
|
|
|
f.c = vec4(10.0);
|
2016-03-02 17:09:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Structy foo()
|
|
|
|
{
|
|
|
|
Structy param;
|
|
|
|
foo2(param);
|
|
|
|
Structy f = param;
|
|
|
|
return f;
|
|
|
|
}
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
Structy s = foo();
|
|
|
|
FragColor = s.c;
|
|
|
|
}
|
|
|
|
|