Package com.google.android.filament
Enum TextureSampler.CompareFunction
- java.lang.Object
-
- java.lang.Enum<TextureSampler.CompareFunction>
-
- com.google.android.filament.TextureSampler.CompareFunction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TextureSampler.CompareFunction>
- Enclosing class:
- TextureSampler
public static enum TextureSampler.CompareFunction extends java.lang.Enum<TextureSampler.CompareFunction>
Comparison functions for the depth sampler.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYSAlways.EQUALEqualGREATERStrictly greater thanGREATER_EQUALGreater or equalLESSStrictly less thanLESS_EQUALLess or equalNEVERNever.NOT_EQUALNot equal
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextureSampler.CompareFunctionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TextureSampler.CompareFunction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LESS_EQUAL
public static final TextureSampler.CompareFunction LESS_EQUAL
Less or equal
-
GREATER_EQUAL
public static final TextureSampler.CompareFunction GREATER_EQUAL
Greater or equal
-
LESS
public static final TextureSampler.CompareFunction LESS
Strictly less than
-
GREATER
public static final TextureSampler.CompareFunction GREATER
Strictly greater than
-
EQUAL
public static final TextureSampler.CompareFunction EQUAL
Equal
-
NOT_EQUAL
public static final TextureSampler.CompareFunction NOT_EQUAL
Not equal
-
ALWAYS
public static final TextureSampler.CompareFunction ALWAYS
Always. Depth testing is deactivated.
-
NEVER
public static final TextureSampler.CompareFunction NEVER
Never. The depth test always fails.
-
-
Method Detail
-
values
public static TextureSampler.CompareFunction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TextureSampler.CompareFunction c : TextureSampler.CompareFunction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextureSampler.CompareFunction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-