public class CLSubBuffer<B extends Buffer> extends CLBuffer<B>
CLMemory.GLObjectType, CLMemory.Map, CLMemory.Mem
clCapacity, elementSize, FLAGS, size
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
This method is not intended to be called from client code.
|
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.
|
int |
getCLOffset()
Returns the offset of this sub buffer to its parent in bytes.
|
int |
getOffset()
Returns the offset of this sub buffer to its parent in buffer elements.
|
CLBuffer<B> |
getParent()
Returns the parent buffer this buffer was created from.
|
boolean |
isReleased()
Returns true if
CLResource.release() has been called. |
boolean |
isSubBuffer()
Returns true.
|
void |
release()
Releases the OpenCL resource.
|
cloneWith, getSubBuffers
equals, getBuffer, getCL, getCLCapacity, getCLSize, getConfig, getElementSize, getMapCount, getNIOCapacity, getNIOSize, getSizeImpl, hashCode, initCLCapacity, isHostPointerFlag, isReadOnly, isReadWrite, isWriteOnly, registerDestructorCallback, toString, use
getContext, getID, getPlatform
public CLSubBuffer<B> createSubBuffer(int origin, int size, CLMemory.Mem... flags)
createSubBuffer
in class CLBuffer<B extends Buffer>
origin
- The offset in buffer elements.size
- The size in buffer elements.public void release()
CLResource
public int getOffset()
public int getCLOffset()
public boolean isSubBuffer()
isSubBuffer
in class CLBuffer<B extends Buffer>
@Deprecated public final void close()
AutoCloseable
.
Might be remove as soon we have extension methods, but shall validate with Java 1.5 specs.close
in interface AutoCloseable
AutoCloseable
public boolean isReleased()
CLResource
CLResource.release()
has been called.isReleased
in interface CLResource