Enum Class ShaderKind

java.lang.Object
java.lang.Enum<ShaderKind>
icyllis.arc3d.compiler.ShaderKind
All Implemented Interfaces:
Serializable, Comparable<ShaderKind>, Constable

public enum ShaderKind extends Enum<ShaderKind>
We support several shader kinds.
  • Enum Constant Details

    • BASE

      public static final ShaderKind BASE
      For base modules.
    • VERTEX

      public static final ShaderKind VERTEX
      For vertex shaders.
    • FRAGMENT

      public static final ShaderKind FRAGMENT
      For fragment shaders.
    • COMPUTE

      public static final ShaderKind COMPUTE
      For compute shaders.
    • SUBROUTINE

      public static final ShaderKind SUBROUTINE
      A substage of shader code, working as a function.
    • SUBROUTINE_SHADER

      public static final ShaderKind SUBROUTINE_SHADER
    • SUBROUTINE_COLOR_FILTER

      public static final ShaderKind SUBROUTINE_COLOR_FILTER
    • SUBROUTINE_BLENDER

      public static final ShaderKind SUBROUTINE_BLENDER
    • PRIVATE_SUBROUTINE_SHADER

      public static final ShaderKind PRIVATE_SUBROUTINE_SHADER
    • PRIVATE_SUBROUTINE_COLOR_FILTER

      public static final ShaderKind PRIVATE_SUBROUTINE_COLOR_FILTER
    • PRIVATE_SUBROUTINE_BLENDER

      public static final ShaderKind PRIVATE_SUBROUTINE_BLENDER
  • Method Details

    • values

      public static ShaderKind[] 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

      public static ShaderKind valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isVertex

      public boolean isVertex()
    • isFragment

      public boolean isFragment()
    • isCompute

      public boolean isCompute()
    • isAnySubroutine

      public boolean isAnySubroutine()