Manu:
If you want to do component-wise logic, the typical approach is to use component-wise selection, eg:uint4 mask = compareGreater(a, b); // <- build a bit mask of 0's (false)
Isn't something like this better? uint4 mask = a > b; Bye, bearophile
Manu:
If you want to do component-wise logic, the typical approach is to use component-wise selection, eg:uint4 mask = compareGreater(a, b); // <- build a bit mask of 0's (false)
Isn't something like this better? uint4 mask = a > b; Bye, bearophile