public enum IndicesOrderHint extends Enum<IndicesOrderHint> implements Enumeration
SetPartial
method to enhance performance.Enum Constant and Description |
---|
NOT_SORTED
The
indices passed to SetPartial are not sorted. |
SORTED_ASCENDING
The
indices passed to SetPartial are sorted in ascending order. |
Modifier and Type | Method and Description |
---|---|
static IndicesOrderHint |
getDefault()
Get the enum constant that is considered to be the default.
|
static IndicesOrderHint |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static IndicesOrderHint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IndicesOrderHint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndicesOrderHint NOT_SORTED
indices
passed to SetPartial
are not sorted. Therefore, the primitive
may sort them to improve performance of writing its geometry to video memory.public static final IndicesOrderHint SORTED_ASCENDING
indices
passed to SetPartial
are sorted in ascending order. Therefore,
the primitive does not need to sort them. It is recommended to only use SortedAscending
if it is easy and efficient for you to provide the indices
in ascending order.
For example, do not use a standard sorting algorithm to sort your indices so you can use SortedAscending
.
Instead, use NotSorted
and let the primitive decide what is most efficient.public static IndicesOrderHint[] values()
for (IndicesOrderHint c : IndicesOrderHint.values()) System.out.println(c);
public static IndicesOrderHint valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
getValue
in interface Enumeration
@Nonnull public static IndicesOrderHint getFromValue(int value)
value
- a numeric value.@Nonnull public static IndicesOrderHint getDefault()