Package icyllis.arc3d.granite
Class DrawPass.SortKey
java.lang.Object
icyllis.arc3d.granite.DrawPass.SortKey
- All Implemented Interfaces:
Comparable<DrawPass.SortKey>
- Enclosing class:
DrawPass
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 Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
-
Field Details
-
PAINTERS_ORDER_OFFSET
public static final int PAINTERS_ORDER_OFFSET- See Also:
-
PAINTERS_ORDER_MASK
public static final int PAINTERS_ORDER_MASK- See Also:
-
STENCIL_INDEX_OFFSET
public static final int STENCIL_INDEX_OFFSET- See Also:
-
STENCIL_INDEX_MASK
public static final int STENCIL_INDEX_MASK- See Also:
-
STEP_INDEX_OFFSET
public static final int STEP_INDEX_OFFSET- See Also:
-
STEP_INDEX_MASK
public static final int STEP_INDEX_MASK- See Also:
-
PIPELINE_INDEX_OFFSET
public static final int PIPELINE_INDEX_OFFSET- See Also:
-
PIPELINE_INDEX_MASK
public static final int PIPELINE_INDEX_MASK- See Also:
-
GEOMETRY_UNIFORM_INDEX_OFFSET
public static final int GEOMETRY_UNIFORM_INDEX_OFFSET- See Also:
-
GEOMETRY_UNIFORM_INDEX_MASK
public static final int GEOMETRY_UNIFORM_INDEX_MASK- See Also:
-
FRAGMENT_UNIFORM_INDEX_OFFSET
public static final int FRAGMENT_UNIFORM_INDEX_OFFSET- See Also:
-
FRAGMENT_UNIFORM_INDEX_MASK
public static final int FRAGMENT_UNIFORM_INDEX_MASK- See Also:
-
-
Constructor Details
-
SortKey
public SortKey(Draw draw, int stepIndex, int pipelineIndex, int geometryUniformIndex, int fragmentUniformIndex, int[] textures)
-
-
Method Details
-
step
-
pipelineIndex
public int pipelineIndex() -
geometryUniformIndex
public int geometryUniformIndex() -
fragmentUniformIndex
public int fragmentUniformIndex() -
compareTo
- Specified by:
compareTo
in interfaceComparable<DrawPass.SortKey>
-