public final class StatePriorities
- extends java.lang.Object
A simple class for encapsulating a definition of a set of state priorites for
sorting. We will have different profiles attached to different render bins to
optimize for different conditions.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public final int statePriorities
public final int numStatePriorities
public StatePriorities(StateTypes... priorities)
public static final StatePriorities getDefaultPriorities()
- Sets the sort order for all shader states. The lower states will be the
primary sort keys and the priority drops further into array of state
priorities. So if you want geometry states to have highest priority put
them early in the list, while material priorties might be further down.