Package com.google.android.filament
Enum Texture.Type
- java.lang.Object
-
- java.lang.Enum<Texture.Type>
-
- com.google.android.filament.Texture.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Texture.Type>
- Enclosing class:
- Texture
public static enum Texture.Type extends java.lang.Enum<Texture.Type>
Pixel data type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BYTEsigned byte, 8-bitCOMPRESSEDa compressed typeFLOATfloat, 32-bit float, with 24 bits mantissaHALFhalf-float, 16-bit float with 10 bits mantissaINTsigned int, 32-bitSHORTsigned short, 16-bitUBYTEunsigned byte, 8-bitUINTunsigned int, 32-bitUINT_10F_11F_11F_REVunsigned 5.6 (5.5 for blue) float packed in a 32-bit integer.USHORTunsigned short, 16-bitsUSHORT_565unsigned 5/6 bit integers packed in a 16-bit short.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Texture.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Texture.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UBYTE
public static final Texture.Type UBYTE
unsigned byte, 8-bit
-
BYTE
public static final Texture.Type BYTE
signed byte, 8-bit
-
USHORT
public static final Texture.Type USHORT
unsigned short, 16-bits
-
SHORT
public static final Texture.Type SHORT
signed short, 16-bit
-
UINT
public static final Texture.Type UINT
unsigned int, 32-bit
-
INT
public static final Texture.Type INT
signed int, 32-bit
-
HALF
public static final Texture.Type HALF
half-float, 16-bit float with 10 bits mantissa
-
FLOAT
public static final Texture.Type FLOAT
float, 32-bit float, with 24 bits mantissa
-
COMPRESSED
public static final Texture.Type COMPRESSED
a compressed type
-
UINT_10F_11F_11F_REV
public static final Texture.Type UINT_10F_11F_11F_REV
unsigned 5.6 (5.5 for blue) float packed in a 32-bit integer.
-
USHORT_565
public static final Texture.Type USHORT_565
unsigned 5/6 bit integers packed in a 16-bit short.
-
-
Method Detail
-
values
public static Texture.Type[] 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 (Texture.Type c : Texture.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Texture.Type 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
-
-