2017-11-21 08:27:49 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
struct MyStruct
|
|
|
|
{
|
|
|
|
vec4 color;
|
|
|
|
};
|
|
|
|
|
|
|
|
layout(std140) uniform MyStruct_CB
|
|
|
|
{
|
|
|
|
MyStruct g_MyStruct[4];
|
|
|
|
} _6;
|
|
|
|
|
|
|
|
layout(location = 0) out vec4 _entryPointOutput;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
vec3 _28;
|
|
|
|
_28 = vec3(0.0);
|
2018-01-18 11:07:10 +00:00
|
|
|
vec3 _29;
|
|
|
|
for (int _31 = 0; _31 < 4; _28 = _29, _31++)
|
2017-11-21 08:27:49 +00:00
|
|
|
{
|
|
|
|
_29 = _28 + _6.g_MyStruct[_31].color.xyz;
|
|
|
|
}
|
|
|
|
_entryPointOutput = vec4(_28, 1.0);
|
|
|
|
}
|
|
|
|
|