PrimitiveBatch
Description
A rendering primitive batch.
The natural sort order of primitive batches establishes an ordering that may be used to join subsequent primitive batches, in order to reduce the number of required draw calls:
Public / Methods
Merge
Merges this primitive batch with the given one, if possible.
Two primitive batches may be merged if all of the following is true:
-
Indexed is equal.
-
Type is Primitive.PointList, Primitive.LineList or Primitive.TriangleList.
-
The sum of First and Count of
this
batch is equal to First of the given batch in.