This reestablishes an "all on" execution mask for the gang, which can be useful for nested parallelism..
18 lines
325 B
Plaintext
18 lines
325 B
Plaintext
|
|
export uniform int width() { return programCount; }
|
|
|
|
|
|
export void f_f(uniform float RET[], uniform float aFOO[]) {
|
|
float a = aFOO[programIndex];
|
|
if (a == 2) {
|
|
unmasked {
|
|
a = 0;
|
|
}
|
|
}
|
|
RET[programIndex] = a;
|
|
}
|
|
|
|
export void result(uniform float RET[]) {
|
|
RET[programIndex] = 0;
|
|
}
|