packed_store_active2

This commit is contained in:
Ilia Filippov
2013-12-10 20:39:24 +04:00
parent 961116f4d5
commit 473f1cb4d2
7 changed files with 128 additions and 0 deletions

15
tests/packed-store2.ispc Normal file
View File

@@ -0,0 +1,15 @@
export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
float a = aFOO[programIndex];
uniform unsigned int pack[programCount];
for (uniform int i = 0; i < programCount; ++i)
pack[i] = 0;
packed_store_active2(pack, (unsigned int)a);
RET[programIndex] = pack[programIndex];
}
export void result(uniform float RET[]) {
RET[programIndex] = 1 + programIndex;
}