Package icyllis.arc3d.compiler
Enum Class ShaderKind
- All Implemented Interfaces:
Serializable
,Comparable<ShaderKind>
,Constable
We support several shader kinds.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFor base modules.For compute shaders.For fragment shaders.A substage of shader code, working as a function.For vertex shaders. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
isVertex()
static ShaderKind
Returns the enum constant of this class with the specified name.static ShaderKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BASE
For base modules. -
VERTEX
For vertex shaders. -
FRAGMENT
For fragment shaders. -
COMPUTE
For compute shaders. -
SUBROUTINE
A substage of shader code, working as a function. -
SUBROUTINE_SHADER
-
SUBROUTINE_COLOR_FILTER
-
SUBROUTINE_BLENDER
-
PRIVATE_SUBROUTINE_SHADER
-
PRIVATE_SUBROUTINE_COLOR_FILTER
-
PRIVATE_SUBROUTINE_BLENDER
-
-
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
-
isVertex
public boolean isVertex() -
isFragment
public boolean isFragment() -
isCompute
public boolean isCompute() -
isAnySubroutine
public boolean isAnySubroutine()
-