Dynamic Branching

From Tech Artists Wiki

Jump to: navigation, search

Dynamic branching is a way of evaluating program flow at runtime. It is only available in shader model 3.0.

Not all program flow operations fall under the category of dynamic branching. A for statement that is executed a constant number of times can be unrolled by the compiler; a for statement that would be dynamic branching is one that executes a number of times based on the view vector. There are also assembly commands SLT and SGE (set-if-less-than and set-if-greater-or-equal), which are mathematical instructions and not considered logical.

Personal tools