|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jocl.cloth.SimpleMemHandle
class SimpleMemHandle
Simple implementation of a ResourceHandle
for buffers that
are not shared with OpenGL
Constructor Summary | |
---|---|
SimpleMemHandle(CLSetup clSetup,
float[] array)
Creates a new mem handle for the given array |
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 |
---|
SimpleMemHandle(CLSetup clSetup, float[] array)
clSetup
- The OpenCL setuparray
- The arrayMethod 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 |