Enum Class TextureImage.Access

java.lang.Object
java.lang.Enum<TextureImage.Access>
com.jme3.texture.TextureImage.Access
All Implemented Interfaces:
Serializable, Comparable<TextureImage.Access>, Constable
Enclosing class:
TextureImage

public static enum TextureImage.Access extends Enum<TextureImage.Access>
Enum specifying the shader access hint of the image.

Shader accesses that violate the hint may result in undefined behavior.

  • Enum Constant Details

    • ReadOnly

      public static final TextureImage.Access ReadOnly
      The image can only be read from in a shader.
    • WriteOnly

      public static final TextureImage.Access WriteOnly
      The image can only be written to in a shader.
    • ReadWrite

      public static final TextureImage.Access ReadWrite
      The image can both be written to and read from in a shader.
  • Method Details

    • values

      public static TextureImage.Access[] 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 TextureImage.Access 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
    • 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: