2016-03-02 17:09:16 +00:00
|
|
|
#version 310 es
|
|
|
|
precision mediump float;
|
|
|
|
precision highp int;
|
|
|
|
|
|
|
|
struct Str
|
|
|
|
{
|
|
|
|
mat4 foo;
|
|
|
|
};
|
|
|
|
|
2018-03-05 15:34:42 +00:00
|
|
|
struct Str_1
|
|
|
|
{
|
|
|
|
mat4 foo;
|
|
|
|
};
|
|
|
|
|
2016-03-02 17:09:16 +00:00
|
|
|
layout(binding = 0, std140) uniform UBO1
|
|
|
|
{
|
|
|
|
layout(row_major) Str foo;
|
|
|
|
} ubo1;
|
|
|
|
|
|
|
|
layout(binding = 1, std140) uniform UBO2
|
|
|
|
{
|
2018-03-05 15:34:42 +00:00
|
|
|
Str_1 foo;
|
2016-03-02 17:09:16 +00:00
|
|
|
} ubo0;
|
|
|
|
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2016-12-05 09:22:54 +00:00
|
|
|
FragColor = ubo1.foo.foo[0] + ubo0.foo.foo[0];
|
2016-03-02 17:09:16 +00:00
|
|
|
}
|
|
|
|
|