Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 31 lines (25 sloc) 0.61 kB
926b3b9 Fix bugs with mask-handling for switch/do/for/while statements.
Matt Pharr authored
1
2 export uniform int width() { return programCount; }
3
4 int * uniform ptr = NULL;
5
6 int func(int v) {
7 int ret;
8 // print("%\n", v);
9 do {
10 if (v == 0) {
11 ret = 1;
12 break;
13 }
14 *ptr = 1;
15 } while(true);
16 return ret;
17 }
18
19 export void f_f(uniform float RET[], uniform float aFOO[]) {
20 int count = 10;
21 if (programIndex & 1)
22 count = 0x7ffffff;
23 RET[programIndex] = 0;
24 if (!(programIndex & 1))
25 RET[programIndex] = func(programIndex & 1);
26 }
27
28 export void result(uniform float RET[]) {
29 RET[programIndex] = !(programIndex & 1);
30 }
Something went wrong with that request. Please try again.