2020-09-14 21:30:13 +00:00
|
|
|
|
2020-09-15 20:09:11 +00:00
|
|
|
out vec4 sk_FragColor;
|
2020-09-14 21:30:13 +00:00
|
|
|
struct A {
|
2020-09-15 20:09:11 +00:00
|
|
|
int x;
|
|
|
|
int y;
|
2021-01-28 16:00:20 +00:00
|
|
|
};
|
|
|
|
A a1;
|
2020-09-14 21:30:13 +00:00
|
|
|
struct B {
|
2020-09-15 20:09:11 +00:00
|
|
|
float x;
|
2020-09-14 21:30:13 +00:00
|
|
|
float[2] y;
|
|
|
|
layout (binding = 1) A z;
|
2020-11-25 21:24:55 +00:00
|
|
|
};
|
|
|
|
B b1;
|
2020-09-14 21:30:13 +00:00
|
|
|
void main() {
|
|
|
|
a1.x = 0;
|
|
|
|
b1.x = 0.0;
|
|
|
|
sk_FragColor.x = float(a1.x) + b1.x;
|
|
|
|
}
|