Added support for resolving dimensions of multi-dimensional unsized arrays from their initializer exprerssions (previously, only the first dimension would be resolved.) Added checks to make sure that no unsized array dimensions remain after doing this (except for the first dimensision of array parameters to functions.)
12 lines
305 B
Plaintext
12 lines
305 B
Plaintext
|
|
export uniform int width() { return programCount; }
|
|
|
|
export void f_f(uniform float RET[], uniform float aFOO[]) {
|
|
float a[][2][] = { { { 1 }, { 2 } }, { { 3 }, { 4 } }, { { 5 }, { 6 } } };
|
|
RET[programIndex] = a[1][1][0];
|
|
}
|
|
|
|
export void result(uniform float RET[]) {
|
|
RET[programIndex] = 4;
|
|
}
|