Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
It has often been recommended to avoid branching conditions in shaders.
Why? What happens exactly in modern GPUs in that case?
Is it still recommended to avoid branching?
Required, but never shown