Commit 83be63ce authored by Marc Marí's avatar Marc Marí
Browse files

Add blendZero operation with two ivec4s to blend two masks

This is not added in SSE, because comparing two fvec4s results in an
fvec4, not an ivec4
parent 352f5605
......@@ -426,6 +426,10 @@ static inline fvec4 blendZero(fvec4 v, ivec4 mask) {
return blend(0.0f, v, mask);
}
static inline ivec4 blendZero(ivec4 v, ivec4 mask) {
return v & mask;
}
// These are at the end since they involve other functions defined above.
static inline fvec4 round(fvec4 v) {
......
......@@ -369,6 +369,10 @@ static inline fvec4 blendZero(fvec4 v, ivec4 mask) {
return blend(0.0f, v, mask);
}
static inline ivec4 blendZero(ivec4 v, ivec4 mask) {
return v & mask;
}
// These are at the end since they involve other functions defined above.
static inline fvec4 min(fvec4 v1, fvec4 v2) {
......
......@@ -375,6 +375,10 @@ static inline fvec4 blendZero(fvec4 v, ivec4 mask) {
return blend(0.0f, v, mask);
}
static inline ivec4 blendZero(ivec4 v, ivec4 mask) {
return v & mask;
}
// These are at the end since they involve other functions defined above.
static inline fvec4 min(fvec4 v1, fvec4 v2) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment