Package com.jme3.opencl
Enum Class MemoryAccess
- All Implemented Interfaces:
Serializable
,Comparable<MemoryAccess>
,Constable
Specifies how a buffer object can be accessed by the kernel.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA kernel can only read this bufferA kernel can both read and write the buffer.A kernel can only write this buffer. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryAccess
Returns the enum constant of this class with the specified name.static MemoryAccess[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READ_WRITE
A kernel can both read and write the buffer. -
WRITE_ONLY
A kernel can only write this buffer. -
READ_ONLY
A kernel can only read this buffer
-
-
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
-