Class CLSubBuffer<B extends Buffer>

    • Method Detail

      • createSubBuffer

        public CLSubBuffer<B> createSubBuffer​(int origin,
                                              int size,
                                              CLMemory.Mem... flags)
        Throws an UnsupportedOperationException since creating sub buffers from sub buffers is not allowed as of OpenCL 1.1.
        createSubBuffer in class CLBuffer<B extends Buffer>
        origin - The offset in buffer elements.
        size - The size in buffer elements.
      • getParent

        public CLBuffer<B> getParent()
        Returns the parent buffer this buffer was created from.
      • getOffset

        public int getOffset()
        Returns the offset of this sub buffer to its parent in buffer elements.
      • getCLOffset

        public int getCLOffset()
        Returns the offset of this sub buffer to its parent in bytes.
      • close

        public final void close()
        This method is not intended to be called from client code.
        Implementation detail, satisfying AutoCloseable. Might be remove as soon we have extension methods, but shall validate with Java 1.5 specs.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface AutoCloseable
        See Also: