public static enum CLMemory.Mem extends Enum<CLMemory.Mem>
Enum Constant and Description |
---|
ALLOCATE_BUFFER
Enum representing CL_MEM_ALLOC_HOST_PTR.
|
COPY_BUFFER
Enum representing CL_MEM_COPY_HOST_PTR.
|
READ_ONLY
Enum representing CL_MEM_READ_ONLY.
|
READ_WRITE
Enum representing CL_MEM_READ_WRITE.
|
USE_BUFFER
Enum representing CL_MEM_USE_HOST_PTR.
|
WRITE_ONLY
Enum representing CL_MEM_WRITE_ONLY.
|
Modifier and Type | Field and Description |
---|---|
int |
CONFIG
Value of wrapped OpenCL flag.
|
Modifier and Type | Method and Description |
---|---|
static int |
flagsToInt(CLMemory.Mem[] flags) |
static CLMemory.Mem |
valueOf(int bufferFlag) |
static CLMemory.Mem |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CLMemory.Mem[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static EnumSet<CLMemory.Mem> |
valuesOf(int bitfield) |
public static final CLMemory.Mem READ_WRITE
public static final CLMemory.Mem WRITE_ONLY
public static final CLMemory.Mem READ_ONLY
public static final CLMemory.Mem USE_BUFFER
public static final CLMemory.Mem ALLOCATE_BUFFER
ALLOCATE_BUFFER
and USE_BUFFER
are mutually exclusive.public static final CLMemory.Mem COPY_BUFFER
COPY_BUFFER
specified, it indicates that the application
wants the OpenCL implementation to allocate memory for the memory object
and copy the data from memory referenced by host_ptr.COPY_BUFFER
and USE_BUFFER
are mutually exclusive.public static CLMemory.Mem[] values()
for (CLMemory.Mem c : CLMemory.Mem.values()) System.out.println(c);
public static CLMemory.Mem valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static CLMemory.Mem valueOf(int bufferFlag)
public static EnumSet<CLMemory.Mem> valuesOf(int bitfield)
public static int flagsToInt(CLMemory.Mem[] flags)