GPU Shaders: Difference between revisions

Rodrigo (talk | contribs)
m Fix up registers count
Rodrigo (talk | contribs)
m Fix predicates count and remove "always false"
Line 22: Line 22:


== Predicates ==
== Predicates ==
There are 5 general purpose "1-bit" predicates. These can be used to conditionally execute a given instructions. There are 2 more predicates which evaluate as always true and always false.
There are 6 general purpose "1-bit" predicates. These can be used to conditionally execute a given instructions. There is an extra predicate that always evaluates as true (and false when negated), writing here is a no-op unless there are side-effects. It is shown as ''PT'' in ''nvdisasm''.


Most of the time predicates can be negated.
Most of the time predicates can be negated.