class
render::RenderQueue
Render queue determines rendering order of draw commands contained within it.
Rendering order is determined by draw command material, and can influence rendering of transparent or opaque objects, or be used to improve performance by grouping similar commands together.
Public
Constructors
RenderQueue
Methods
~RenderQueue
Add
Adds a new draw command to the render queue.
- drawCommand
- Draw command to add to the queue.
- distFromCamera
- Distance of this object from the camera. Used for distance sorting.
- variationIndex
- Index of the technique within material that's to be used to render the element with.
Clear
Clears all render operations from the queue.
Sort
Sorts all the render operations using user-defined rules.
GetSortedEntries
Returns a list of sorted render elements.
Caller must ensure Sort() is called before this method.
SetStateReduction
Controls if and how a render queue groups draw commands by material in order to reduce number of state changes.
Protected
Methods
staticCommandSortNoGroup
Callback used for sorting commands with no material grouping.
staticCommandSortPreferGroup
Callback used for sorting commands with preferred material grouping.
staticCommandSortPreferDistance
Callback used for sorting commands with material grouping after sorting.