Package com.jme3.texture
Enum Class TextureImage.Access
- All Implemented Interfaces:
Serializable
,Comparable<TextureImage.Access>
,Constable
- Enclosing class:
TextureImage
Enum specifying the shader access hint of the image.
Shader accesses that violate the hint may result in undefined behavior.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Corresponding OpenGL enum.boolean
isRead()
If true, the image can be read from in a shader.boolean
isWrite()
If true, the image can be written to in a shader.static TextureImage.Access
Returns the enum constant of this class with the specified name.static TextureImage.Access[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ReadOnly
The image can only be read from in a shader. -
WriteOnly
The image can only be written to in a shader. -
ReadWrite
The image can both be written to and read from in a shader.
-
-
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
-
isRead
public boolean isRead()If true, the image can be read from in a shader.- Returns:
-
isWrite
public boolean isWrite()If true, the image can be written to in a shader.- Returns:
-
getGlEnum
public int getGlEnum()Corresponding OpenGL enum.- Returns:
-