public enum MemoryAccess extends java.lang.Enum<MemoryAccess>
Buffer
Enum Constant and Description |
---|
READ_ONLY
A kernel can only read this buffer
|
READ_WRITE
A kernel can both read and write the buffer.
|
WRITE_ONLY
A kernel can only write this buffer.
|
Modifier and Type | Method and Description |
---|---|
static MemoryAccess |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MemoryAccess[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemoryAccess READ_WRITE
public static final MemoryAccess WRITE_ONLY
public static final MemoryAccess READ_ONLY
public static MemoryAccess[] values()
for (MemoryAccess c : MemoryAccess.values()) System.out.println(c);
public static MemoryAccess valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null