Enum Constant and Description |
---|
BOOL |
BOOL2 |
BOOL3 |
BOOL4 |
FLOAT |
FLOAT2 |
FLOAT3 |
FLOAT4 |
FSAMPLER |
INT |
INT2 |
INT3 |
INT4 |
LSAMPLER |
SAMPLER |
VOID |
Modifier and Type | Field and Description |
---|---|
private BaseType |
baseType |
private int |
numFields |
Modifier and Type | Method and Description |
---|---|
static Type |
fromToken(java.lang.String s)
Returns a
Type instance given a lowercase token string. |
BaseType |
getBaseType() |
int |
getNumFields() |
boolean |
isVector() |
java.lang.String |
toString() |
static Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type VOID
public static final Type FLOAT
public static final Type FLOAT2
public static final Type FLOAT3
public static final Type FLOAT4
public static final Type INT
public static final Type INT2
public static final Type INT3
public static final Type INT4
public static final Type BOOL
public static final Type BOOL2
public static final Type BOOL3
public static final Type BOOL4
public static final Type SAMPLER
public static final Type LSAMPLER
public static final Type FSAMPLER
private final BaseType baseType
private final int numFields
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic BaseType getBaseType()
public int getNumFields()
public boolean isVector()
public static Type fromToken(java.lang.String s)
Type
instance given a lowercase token string.
For example, given "float3", this method will return Type.FLOAT3
.public java.lang.String toString()
toString
in class java.lang.Enum<Type>