2021-01-04 10:16:58 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
struct Foo
|
|
|
|
{
|
|
|
|
float c;
|
|
|
|
float d;
|
|
|
|
};
|
|
|
|
|
|
|
|
layout(location = 0) out Vert
|
|
|
|
{
|
|
|
|
float a;
|
|
|
|
float b;
|
|
|
|
} _3;
|
|
|
|
|
|
|
|
layout(location = 2) out Foo foo;
|
2021-01-04 15:48:35 +00:00
|
|
|
const Foo _4_init = Foo(0.0, 0.0);
|
2021-01-04 10:16:58 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
_3.a = 0.0;
|
|
|
|
_3.b = 0.0;
|
2021-01-04 15:48:35 +00:00
|
|
|
foo = _4_init;
|
2021-01-04 10:16:58 +00:00
|
|
|
}
|
|
|
|
|