|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CLMemory.Mem>
com.jogamp.opencl.CLMemory.Mem
public static enum CLMemory.Mem
Memory settings for configuring CLMemory.
Enum Constant Summary | |
---|---|
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. |
Field Summary | |
---|---|
int |
CONFIG
Value of wrapped OpenCL flag. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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.
Field Detail |
---|
public final int CONFIG
Method Detail |
---|
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 name
NullPointerException
- 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |