hazumi
Back

Don't "optimize" conditional moves in shaders with mix()+step()

romesiquilezles.org
409 points231 comments

The article explores techniques for implementing conditional statements on the GPU, which can be challenging due to the parallel nature of GPU processing. It discusses various approaches, including the use of bit manipulation, texture lookups, and short-circuit evaluation, to achieve efficient conditional execution on the GPU.

Comments (231)