Fix for struct with undound members

This commit is contained in:
Vsevolod Livinskiy
2016-02-06 17:08:17 +03:00
parent e1cb6ca15b
commit 6ea03bb3af
2 changed files with 25 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
export uniform int width() { return programCount; }
struct Foo {
float x;
};
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
float a = aFOO[programIndex];
uniform Foo struct_1;
struct_1.x = b;
varying Foo struct_2 = struct_1;
RET[programIndex] = struct_2.x;
}
export void result(uniform float RET[]) {
RET[programIndex] = 5;
}