public enum PixelType extends Enum<PixelType>
Enum Constant and Description |
---|
FLOAT
32-bit IEEE 754 floating-point numbers.
|
HALF
16-bit IEEE 754-2008 floating-point numbers.
|
UINT
32-bit unsigned integers.
|
Modifier and Type | Method and Description |
---|---|
int |
byteSize()
Returns the number of bytes used to represent a single value of this type.
|
int |
size()
Returns the number of bits used to represent a single value of this type.
|
static PixelType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PixelType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PixelType UINT
public static final PixelType HALF
Half
public static final PixelType FLOAT
public static PixelType[] values()
for (PixelType c : PixelType.values()) System.out.println(c);
public static PixelType 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 byteSize()
public int size()