Module notzed.zcl
Package au.notzed.zcl

Enum CLChannelType

java.lang.Object
java.lang.Enum<CLChannelType>
au.notzed.zcl.CLChannelType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CLChannelType>, java.lang.constant.Constable

public enum CLChannelType
extends java.lang.Enum<CLChannelType>
Enum for wrapping the cl_channel_type constants from cl.h. This is mostly useful for printing them out.
  • Enum Constant Details

    • CL_SNORM_INT8

      public static final CLChannelType CL_SNORM_INT8
    • CL_SNORM_INT16

      public static final CLChannelType CL_SNORM_INT16
    • CL_UNORM_INT8

      public static final CLChannelType CL_UNORM_INT8
    • CL_UNORM_INT16

      public static final CLChannelType CL_UNORM_INT16
    • CL_UNORM_SHORT_565

      public static final CLChannelType CL_UNORM_SHORT_565
    • CL_UNORM_SHORT_555

      public static final CLChannelType CL_UNORM_SHORT_555
    • CL_UNORM_INT_101010

      public static final CLChannelType CL_UNORM_INT_101010
    • CL_SIGNED_INT8

      public static final CLChannelType CL_SIGNED_INT8
    • CL_SIGNED_INT16

      public static final CLChannelType CL_SIGNED_INT16
    • CL_SIGNED_INT32

      public static final CLChannelType CL_SIGNED_INT32
    • CL_UNSIGNED_INT8

      public static final CLChannelType CL_UNSIGNED_INT8
    • CL_UNSIGNED_INT16

      public static final CLChannelType CL_UNSIGNED_INT16
    • CL_UNSIGNED_INT32

      public static final CLChannelType CL_UNSIGNED_INT32
    • CL_HALF_FLOAT

      public static final CLChannelType CL_HALF_FLOAT
    • CL_FLOAT

      public static final CLChannelType CL_FLOAT
    • CL_UNORM_INT24

      public static final CLChannelType CL_UNORM_INT24
  • Method Details

    • values

      public static CLChannelType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CLChannelType valueOf​(java.lang.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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • fromC

      public static CLChannelType fromC​(int id)
      Converts an OpenCL channel type constant into the corresponding CLChannelType enumeration.
      Parameters:
      id -
      Returns:
      Throws:
      java.lang.EnumConstantNotPresentException - if id is not a channel type.