Enum Class MemoryAccess

java.lang.Object
java.lang.Enum<MemoryAccess>
com.jme3.opencl.MemoryAccess
All Implemented Interfaces:
Serializable, Comparable<MemoryAccess>, Constable

public enum MemoryAccess extends Enum<MemoryAccess>
Specifies how a buffer object can be accessed by the kernel.
See Also:
  • Enum Constant Details

    • READ_WRITE

      public static final MemoryAccess READ_WRITE
      A kernel can both read and write the buffer.
    • WRITE_ONLY

      public static final MemoryAccess WRITE_ONLY
      A kernel can only write this buffer.
    • READ_ONLY

      public static final MemoryAccess READ_ONLY
      A kernel can only read this buffer
  • Method Details

    • values

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