Enum Class GLSLVersion

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

public enum GLSLVersion extends Enum<GLSLVersion>
Limited set of GLSL versions we generate shaders for. Caller should round down the GLSL version to one of these enums.

Note: Do not rely on enum's ordinal.

  • Enum Constant Details

    • GLSL_300_ES

      public static final GLSLVersion GLSL_300_ES
      GLSL version 3.00 es for OpenGL ES 3.0.
    • GLSL_310_ES

      public static final GLSLVersion GLSL_310_ES
      GLSL version 3.10 es for OpenGL ES 3.1.
    • GLSL_320_ES

      public static final GLSLVersion GLSL_320_ES
      GLSL version 3.20 es for OpenGL ES 3.2.
    • GLSL_330

      public static final GLSLVersion GLSL_330
      GLSL version 3.30 core for OpenGL 3.3.
    • GLSL_400

      public static final GLSLVersion GLSL_400
      GLSL version 4.00 core for OpenGL 4.0.
    • GLSL_420

      public static final GLSLVersion GLSL_420
      GLSL version 4.20 core for OpenGL 4.2.
    • GLSL_430

      public static final GLSLVersion GLSL_430
      GLSL version 4.30 core for OpenGL 4.3. This version includes all the GLSL ES 3.00 features.
    • GLSL_440

      public static final GLSLVersion GLSL_440
      GLSL version 4.40 core for OpenGL 4.4.
    • GLSL_450

      public static final GLSLVersion GLSL_450
      GLSL version 4.50 core for OpenGL 4.5 and Vulkan 1.0 or above. This version includes all the GLSL ES 3.10 features.
  • Field Details

    • mVersionDecl

      public final String mVersionDecl
  • Method Details

    • values

      public static GLSLVersion[] 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 GLSLVersion 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
    • isAtLeast

      public boolean isAtLeast(GLSLVersion other)
    • isCoreProfile

      public boolean isCoreProfile()
    • isEsProfile

      public boolean isEsProfile()