public static enum CLMem.Flags extends Enum<CLMem.Flags> implements ValuedEnum
| Enum Constant and Description |
|---|
AllocHostPtr
This flag specifies that the application wants the OpenCL implementation to allocate memory from host accessible memory.
|
CopyHostPtr |
ReadOnly
This flag specifies that the memory object is a read-only memory object when used inside a kernel.
|
ReadWrite
This flag specifies that the memory object will be read and written by a kernel.
|
UseHostPtr
This flag is valid only if host_ptr is not NULL.
|
WriteOnly
This flags specifies that the memory object will be written but not read by a kernel.
|
| Modifier and Type | Method and Description |
|---|---|
static EnumSet<CLMem.Flags> |
getEnumSet(long v) |
static long |
getValue(EnumSet<CLMem.Flags> set) |
long |
value() |
static CLMem.Flags |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CLMem.Flags[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CLMem.Flags ReadWrite
public static final CLMem.Flags WriteOnly
public static final CLMem.Flags ReadOnly
public static final CLMem.Flags UseHostPtr
public static final CLMem.Flags AllocHostPtr
public static final CLMem.Flags CopyHostPtr
public static CLMem.Flags[] values()
for (CLMem.Flags c : CLMem.Flags.values()) System.out.println(c);
public static CLMem.Flags 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 long value()
value in interface ValuedEnumpublic static long getValue(EnumSet<CLMem.Flags> set)
public static EnumSet<CLMem.Flags> getEnumSet(long v)
Copyright © 2009-2015. All Rights Reserved.