3 ms·
f or g may have side effects too. Like writing to memory. Now a conditional has a different meaning. You could also have some fun stuff, where f and g return a
by danybittel 2y ago
f or g may have side effects too. Like writing to memory.
Now a conditional has a different meaning.
You could also have some fun stuff, where f and g return a boolean, because thanks to short circuit evaluation && || are actually also conditionals in disguise.
- account42 2y agoSide effects will be masked, the GPU is still executing exactly the same code for the entire workgroup.