Class CLImageFormatImpl


  • public class CLImageFormatImpl
    extends Object
    Struct accessor for cl_image_format.
    Author:
    Michael Bien, GlueGen, et al.
    • Method Detail

      • usesNativeCode

        public static boolean usesNativeCode()
        Returns true if this generated implementation uses native code, otherwise false.
      • size

        public static int size()
        Returns the aligned total size of a native instance.
      • create

        public static CLImageFormatImpl create()
        Returns a new instance with all bytes set to zero.
      • create

        public static CLImageFormatImpl create​(ByteBuffer buf)
        Returns a new instance using the given ByteBuffer having at least {#link size()} bytes capacity. The ByteBuffer will be ByteBuffer.rewind() and native-order set.
      • derefPointer

        public static CLImageFormatImpl derefPointer​(long addr)
        Returns new instance dereferencing ByteBuffer at given native address `addr` with size size().
      • getBuffer

        public final ByteBuffer getBuffer()
        Return the underlying native direct ByteBuffer
      • getDirectBufferAddress

        public final long getDirectBufferAddress()
        Returns the native address of the underlying native ByteBuffer getBuffer()
      • setImageChannelOrder

        public final CLImageFormatImpl setImageChannelOrder​(int src)
        Setter for native field imageChannelOrder, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'cl_channel_order', size[fixed true, lnx64 4], const[false], is[primitive, int]

      • getImageChannelOrder

        public final int getImageChannelOrder()
        Getter for native field imageChannelOrder, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'cl_channel_order', size[fixed true, lnx64 4], const[false], is[primitive, int]

      • setImageChannelDataType

        public final CLImageFormatImpl setImageChannelDataType​(int src)
        Setter for native field imageChannelDataType, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'cl_channel_type', size[fixed true, lnx64 4], const[false], is[primitive, int]

      • getImageChannelDataType

        public final int getImageChannelDataType()
        Getter for native field imageChannelDataType, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'cl_channel_type', size[fixed true, lnx64 4], const[false], is[primitive, int]