|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.opencl.CLMemory<B>
com.jogamp.opencl.CLBuffer<B>
public class CLBuffer<B extends Buffer>
OpenCL buffer object wrapping an optional NIO buffer.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jogamp.opencl.CLMemory |
---|
CLMemory.GLObjectType, CLMemory.Map, CLMemory.Mem |
Field Summary | |
---|---|
protected CL |
cl
|
protected CLContext |
context
|
long |
ID
The OpenCL object handle. |
Fields inherited from class com.jogamp.opencl.CLMemory |
---|
FLAGS, size |
Constructor Summary | |
---|---|
protected |
CLBuffer(CLContext context,
B directBuffer,
long size,
long id,
int flags)
|
protected |
CLBuffer(CLContext context,
long size,
long id,
int flags)
|
Method Summary | ||
---|---|---|
|
cloneWith(T directBuffer)
Returns a new instance of CLMemory pointing to the same CLResource but using a different Buffer. |
|
void |
close()
Deprecated. This method is not intended to be called from client code. |
|
CLSubBuffer<B> |
createSubBuffer(int offset,
int size,
CLMemory.Mem... flags)
Creates a sub buffer with the specified region from this buffer. |
|
CLContext |
getContext()
Returns the context for this OpenCL object. |
|
long |
getID()
Returns the OpenCL object handle |
|
CLPlatform |
getPlatform()
Returns the platform for this OpenCL object. |
|
List<CLSubBuffer<B>> |
getSubBuffers()
Returns the list of subbuffers. |
|
boolean |
isSubBuffer()
Returns true if this is a sub buffer. |
|
void |
release()
Releases the OpenCL resource. |
Methods inherited from class com.jogamp.opencl.CLMemory |
---|
equals, getBuffer, getCL, getCLCapacity, getCLSize, getConfig, getMapCount, getNIOCapacity, getNIOSize, getSizeImpl, hashCode, isHostPointerFlag, isReadOnly, isReadWrite, isWriteOnly, registerDestructorCallback, sizeOfBufferElem, toString, use |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final long ID
protected CLContext context
protected final CL cl
Constructor Detail |
---|
protected CLBuffer(CLContext context, long size, long id, int flags)
protected CLBuffer(CLContext context, B directBuffer, long size, long id, int flags)
Method Detail |
---|
public CLSubBuffer<B> createSubBuffer(int offset, int size, CLMemory.Mem... flags)
offset
- The offset in buffer elements.size
- The size in buffer elements.public void release()
CLResource
release
in interface CLResource
release
in class CLMemory<B extends Buffer>
public List<CLSubBuffer<B>> getSubBuffers()
public boolean isSubBuffer()
public <T extends Buffer> CLBuffer<T> cloneWith(T directBuffer)
CLMemory
cloneWith
in class CLMemory<B extends Buffer>
@Deprecated public final void close()
close
in interface AutoCloseable
AutoCloseable
public CLContext getContext()
public CLPlatform getPlatform()
public long getID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |