Package com.jogamp.opencl
Enum CLCommandQueue.Mode
- java.lang.Object
-
- java.lang.Enum<CLCommandQueue.Mode>
-
- com.jogamp.opencl.CLCommandQueue.Mode
-
- All Implemented Interfaces:
Serializable
,Comparable<CLCommandQueue.Mode>
- Enclosing class:
- CLCommandQueue
public static enum CLCommandQueue.Mode extends Enum<CLCommandQueue.Mode>
Enumeration for the command-queue settings.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OUT_OF_ORDER_MODE
If set, the commands in the command-queue are executed out-of-order.PROFILING_MODE
Enables profiling of commands in the command-queue.
-
Field Summary
Fields Modifier and Type Field Description int
QUEUE_MODE
Value of wrapped OpenCL device type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CLCommandQueue.Mode
valueOf(int queueMode)
Returns the enum constant of this type with the specified name.static CLCommandQueue.Mode
valueOf(String name)
Returns the enum constant of this type with the specified name.static CLCommandQueue.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static EnumSet<CLCommandQueue.Mode>
valuesOf(long bitfield)
-
-
-
Enum Constant Detail
-
OUT_OF_ORDER_MODE
public static final CLCommandQueue.Mode OUT_OF_ORDER_MODE
If set, the commands in the command-queue are executed out-of-order. Otherwise, commands are executed in-order.
-
PROFILING_MODE
public static final CLCommandQueue.Mode PROFILING_MODE
Enables profiling of commands in the command-queue. If set, the profiling of commands is enabled. Otherwise profiling of commands is disabled. SeeCLEvent
for more information.
-
-
Method Detail
-
values
public static CLCommandQueue.Mode[] 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 (CLCommandQueue.Mode c : CLCommandQueue.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CLCommandQueue.Mode 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 static CLCommandQueue.Mode valueOf(int queueMode)
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:
queueMode
- 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
-
valuesOf
public static EnumSet<CLCommandQueue.Mode> valuesOf(long bitfield)
-
-