News for hackers. Stuff that matters.
Re:Don't "optimize" conditional moves in shaders with mix()+... by NohatCoder on Monday February 10, 2025 @11:51AM (#43002346)
A non-branching version of the same algorithm will also run code equivalent to both branches. The branching version may sometimes skip one of the branches, the non-branching version can't. So if the functionality you want is best described by a branch, then use a branch.

There are no comments on this comment yet.