Package com.jogamp.opencl
Enum CLMemory.Map
- java.lang.Object
-
- java.lang.Enum<CLMemory.Map>
-
- com.jogamp.opencl.CLMemory.Map
-
- All Implemented Interfaces:
Serializable
,Comparable<CLMemory.Map>
public static enum CLMemory.Map extends Enum<CLMemory.Map>
Configures the mapping process.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description READ
Enum representing CL_MAP_READ.READ_WRITE
Enum representing CL_MAP_READ | CL_MAP_WRITE.WRITE
Enum representing CL_MAP_WRITE.
-
Field Summary
Fields Modifier and Type Field Description int
FLAGS
Value of wrapped OpenCL flag.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CLMemory.Map
valueOf(int flag)
Returns the enum constant of this type with the specified name.static CLMemory.Map
valueOf(String name)
Returns the enum constant of this type with the specified name.static CLMemory.Map[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READ_WRITE
public static final CLMemory.Map READ_WRITE
Enum representing CL_MAP_READ | CL_MAP_WRITE. This flag specifies that the memory object will be mapped for read and write operation.
-
WRITE
public static final CLMemory.Map WRITE
Enum representing CL_MAP_WRITE. This flag specifies that the memory object will be mapped for write operation.
-
READ
public static final CLMemory.Map READ
Enum representing CL_MAP_READ. This flag specifies that the memory object will be mapped for read operation.
-
-
Method Detail
-
values
public static CLMemory.Map[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CLMemory.Map c : CLMemory.Map.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CLMemory.Map valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
public CLMemory.Map valueOf(int flag)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
flag
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-