|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(CLU clu,
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
SharedMemHandle(CLU clu,
int vbo)
clu - The CLU containing the context and command queuevbo - The OpenGL VBO identifier| Method Detail |
|---|
public org.jocl.cl_mem get()
ResourceHandleResourceHandle.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>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||