Enum Class DynamicBufferType
- All Implemented Interfaces:
Serializable
,Comparable<DynamicBufferType>
,Constable
Built-in dynamic buffers available to sample from.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DynamicBufferType[]
static final com.mojang.serialization.Codec
<DynamicBufferType> static final com.mojang.serialization.Codec
<Integer> -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Adds the standard buffer macros to the specified map.static DynamicBufferType[]
decode
(int mask) Decodes the dynamic buffer types from the specified mask.static int
encode
(DynamicBufferType... types) Encodes the specified dynamic buffer types as a bit mask.int
int
getMask()
getName()
int
io.github.ocelot.glslprocessor.api.grammar.GlslTypeSpecifier.BuiltinType
getType()
static DynamicBufferType
Returns the enum constant of this class with the specified name.static DynamicBufferType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALBEDO
-
NORMAL
-
LIGHT_UV
-
LIGHT_COLOR
-
DEBUG
-
-
Field Details
-
BUFFERS
-
CODEC
-
PACKED_LIST_CODEC
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
- Returns:
- The code name of this type
-
getSourceName
- Returns:
- The name of this type inside the GLSL file
-
getType
public io.github.ocelot.glslprocessor.api.grammar.GlslTypeSpecifier.BuiltinType getType()- Returns:
- The data type stored in this buffer
-
getInternalFormat
public int getInternalFormat()- Returns:
- The internal format of the texture
-
getTexelFormat
public int getTexelFormat()- Returns:
- The format of data assigned to the texture
-
getMask
public int getMask()- Returns:
- The bit mask of this type
-
addMacros
Adds the standard buffer macros to the specified map.- Parameters:
mask
- The mask of enabled buffersmap
- The map to add macros to
-
encode
Encodes the specified dynamic buffer types as a bit mask.- Parameters:
types
- The types to encode- Returns:
- An integer representing those buffer types
-
decode
Decodes the dynamic buffer types from the specified mask.- Parameters:
mask
- The mask of buffers- Returns:
- An array of all decoded buffers
-