3 ms·
If you're looking to imagine a world without bools, do some branchless gpu shader coding. Certainly its a different way to think about processing data.
by jayd16 1y ago
If you're looking to imagine a world without bools, do some branchless gpu shader coding. Certainly its a different way to think about processing data.
- zero_shift 1y agoI've also seen (non-GPU) programs use numbers with multiplication, instead of if-else, as a means of preventing CPU branch stalls. This technique is sometimes called branchless programming.
- nomel 1y ago> do some branchless gpu shader coding A mask array is just a bunch of boolean, and follows boolean math, because it is boolean values. A boolean type does not make a boolean value, it being two state does.