Class CLImageDescImpl


  • public class CLImageDescImpl
    extends Object
    Struct accessor for cl_image_desc.
    Author:
    Wade Walker, 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 CLImageDescImpl create()
        Returns a new instance with all bytes set to zero.
      • create

        public static CLImageDescImpl 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 CLImageDescImpl 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()
      • setImageType

        public final CLImageDescImpl setImageType​(int src)
        Setter for native field imageType, being a struct owned IntType.

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

      • getImageType

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

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

      • setImageWidth

        public final CLImageDescImpl setImageWidth​(long src)
        Setter for native field imageWidth, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]

      • getImageWidth

        public final long getImageWidth()
        Getter for native field imageWidth, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]

      • setImageHeight

        public final CLImageDescImpl setImageHeight​(long src)
        Setter for native field imageHeight, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]

      • getImageHeight

        public final long getImageHeight()
        Getter for native field imageHeight, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]

      • setImageDepth

        public final CLImageDescImpl setImageDepth​(long src)
        Setter for native field imageDepth, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]

      • getImageDepth

        public final long getImageDepth()
        Getter for native field imageDepth, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]

      • setImageArraySize

        public final CLImageDescImpl setImageArraySize​(long src)
        Setter for native field imageArraySize, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]

      • getImageArraySize

        public final long getImageArraySize()
        Getter for native field imageArraySize, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]

      • setImageRowPitch

        public final CLImageDescImpl setImageRowPitch​(long src)
        Setter for native field imageRowPitch, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]

      • getImageRowPitch

        public final long getImageRowPitch()
        Getter for native field imageRowPitch, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]

      • setImageSlicePitch

        public final CLImageDescImpl setImageSlicePitch​(long src)
        Setter for native field imageSlicePitch, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]

      • getImageSlicePitch

        public final long getImageSlicePitch()
        Getter for native field imageSlicePitch, being a struct owned IntType.

        Native Field Signature (IntType) typedef 'size_t', size[fixed false, lnx64 8], const[false], is[primitive, int]

      • setNumMipLevels

        public final CLImageDescImpl setNumMipLevels​(int src)
        Setter for native field numMipLevels, being a struct owned IntType.

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

      • getNumMipLevels

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

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

      • setNumSamples

        public final CLImageDescImpl setNumSamples​(int src)
        Setter for native field numSamples, being a struct owned IntType.

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

      • getNumSamples

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

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