Package icyllis.arc3d.compiler
Enum Class GLSLVersion
- All Implemented Interfaces:
Serializable
,Comparable<GLSLVersion>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionGLSL version 3.00 es for OpenGL ES 3.0.GLSL version 3.10 es for OpenGL ES 3.1.GLSL version 3.20 es for OpenGL ES 3.2.GLSL version 3.30 core for OpenGL 3.3.GLSL version 4.00 core for OpenGL 4.0.GLSL version 4.20 core for OpenGL 4.2.GLSL version 4.30 core for OpenGL 4.3.GLSL version 4.40 core for OpenGL 4.4.GLSL version 4.50 core for OpenGL 4.5 and Vulkan 1.0 or above. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAtLeast
(GLSLVersion other) boolean
boolean
static GLSLVersion
Returns the enum constant of this class with the specified name.static GLSLVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GLSL_300_ES
GLSL version 3.00 es for OpenGL ES 3.0. -
GLSL_310_ES
GLSL version 3.10 es for OpenGL ES 3.1. -
GLSL_320_ES
GLSL version 3.20 es for OpenGL ES 3.2. -
GLSL_330
GLSL version 3.30 core for OpenGL 3.3. -
GLSL_400
GLSL version 4.00 core for OpenGL 4.0. -
GLSL_420
GLSL version 4.20 core for OpenGL 4.2. -
GLSL_430
GLSL version 4.30 core for OpenGL 4.3. This version includes all the GLSL ES 3.00 features. -
GLSL_440
GLSL version 4.40 core for OpenGL 4.4. -
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
-
-
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
-
isAtLeast
-
isCoreProfile
public boolean isCoreProfile() -
isEsProfile
public boolean isEsProfile()
-