Class DrawPass.SortKey

java.lang.Object
icyllis.arc3d.granite.DrawPass.SortKey
All Implemented Interfaces:
Comparable<DrawPass.SortKey>
Enclosing class:
DrawPass

public static final class DrawPass.SortKey extends Object implements Comparable<DrawPass.SortKey>
The sorting is used to minimize state change.

Sorting order: painter's order, stencil disjoint set index, render step index, pipeline index, geometry uniform index, fragment uniform index, texture and sampler binding

  • Field Details

  • Constructor Details

    • SortKey

      public SortKey(Draw draw, int stepIndex, int pipelineIndex, int geometryUniformIndex, int fragmentUniformIndex, int[] textures)
  • Method Details

    • step

      public GeometryStep step()
    • pipelineIndex

      public int pipelineIndex()
    • geometryUniformIndex

      public int geometryUniformIndex()
    • fragmentUniformIndex

      public int fragmentUniformIndex()
    • compareTo

      public int compareTo(@Nonnull DrawPass.SortKey o)
      Specified by:
      compareTo in interface Comparable<DrawPass.SortKey>