added packed_store_active that can be called with active flag

This commit is contained in:
Evghenii
2013-11-11 12:25:15 +01:00
parent e9bc2b7b54
commit 3dd6173a65

View File

@@ -1276,6 +1276,11 @@ packed_store_active(uniform int a[], int vals) {
return __packed_store_active(a, vals, (IntMaskType)__mask);
}
static inline uniform int
packed_store_active(bool active, uniform int a[], int vals) {
return __packed_store_active(a, vals, (IntMaskType)(-(int)active));
}
///////////////////////////////////////////////////////////////////////////
// System information