Files
ispc/tests/store-int8.ispc
2011-06-21 12:48:50 -07:00

15 lines
414 B
Plaintext

export uniform int width() { return programCount; }
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
uniform int x[8] = 0xffffffff;
unsigned int val = aFOO[programIndex];
store_to_int8(x, 2, val);
unsigned int v = load_from_int8(x, 1);
RET[programIndex] = v;
}
export void result(uniform float RET[]) {
RET[programIndex] = programIndex;
RET[0] = 0xff;
}