|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jocl.cloth.SharedMemHandle
class SharedMemHandle
Implementation of a ResourceHandle
for cl_mem objects that
are created from an OpenGL vertex buffer object.
Constructor Summary | |
---|---|
SharedMemHandle(CLSetup clSetup,
int vbo)
Creates a new handle for shared cl_mem objects. |
Method Summary | |
---|---|
void |
acquire()
Has to be called before the resource may be obtained |
org.jocl.cl_mem |
get()
Returns the resource from this handle. |
void |
release()
Has to be called as soon as the resource is not used any more |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
SharedMemHandle(CLSetup clSetup, int vbo)
clSetup
- The setup containing the context and command queuevbo
- The OpenGL VBO identifierMethod Detail |
---|
public org.jocl.cl_mem get()
ResourceHandle
ResourceHandle.acquire()
and
ResourceHandle.release()
. Clients should preferably not store the
returned object, but always access the resource by calling
this method. This method may return null
if the
resource has not properly been acquired.
get
in interface ResourceHandle<org.jocl.cl_mem>
public void acquire()
ResourceHandle
acquire
in interface ResourceHandle<org.jocl.cl_mem>
public void release()
ResourceHandle
release
in interface ResourceHandle<org.jocl.cl_mem>
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |