Class CLImageFormat

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer


    public class CLImageFormat
    extends Struct
    The image format descriptor struct.

    Member documentation

    • image_channel_order – specifies the number of channels and the channel layout i.e. the memory layout in which channels are stored in the image
    • image_channel_data_type – describes the size of the channel data type. The number of bits per element determined by the image_channel_data_type and image_channel_order must be a power of two.

    Layout

    struct cl_image_format {
        cl_channel_order image_channel_order;
        cl_channel_type image_channel_data_type;
    }
    • Field Detail

      • SIZEOF

        public static final int SIZEOF
        The struct size in bytes.
    • Constructor Detail

      • CLImageFormat

        public CLImageFormat(java.nio.ByteBuffer container)
        Creates a CLImageFormat instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.