|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jogamp.opencl.CLObject
com.jogamp.opencl.CLMemory<B>
com.jogamp.opencl.CLBuffer<B>
com.jogamp.opencl.gl.CLGLBuffer<B>
public final class CLGLBuffer<B extends Buffer>
Shared buffer between OpenGL and OpenCL contexts.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jogamp.opencl.CLMemory |
|---|
CLMemory.GLObjectType, CLMemory.Map, CLMemory.Mem |
| Field Summary | |
|---|---|
int |
GLID
The OpenGL object handle. |
| Fields inherited from class com.jogamp.opencl.CLMemory |
|---|
clCapacity, elementSize, FLAGS, size |
| Fields inherited from class com.jogamp.opencl.CLObject |
|---|
context, ID |
| 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. |
|
CLGLContext |
getContext()
Returns the context for this OpenCL object. |
|
GLContext |
getGLContext()
Returns the OpenGL context of this shared object. |
|
int |
getGLObjectID()
Returns the OpenGL object id of this shared object. |
|
CLMemory.GLObjectType |
getGLObjectType()
Returns the OpenGL buffer type of this shared object. |
|
boolean |
isReleased()
Returns true if CLResource.release() has been called. |
|
String |
toString()
|
|
void |
updateSize()
Updates the size of this CLGLBuffer by querying OpenGL. |
|
| Methods inherited from class com.jogamp.opencl.CLBuffer |
|---|
createSubBuffer, getSubBuffers, isSubBuffer, release |
| Methods inherited from class com.jogamp.opencl.CLMemory |
|---|
equals, getBuffer, getCL, getCLCapacity, getCLSize, getConfig, getElementSize, getMapCount, getNIOCapacity, getNIOSize, getSizeImpl, hashCode, initCLCapacity, isHostPointerFlag, isReadOnly, isReadWrite, isWriteOnly, registerDestructorCallback, use |
| Methods inherited from class com.jogamp.opencl.CLObject |
|---|
getID, getPlatform |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.jogamp.opencl.gl.CLGLObject |
|---|
getID |
| Field Detail |
|---|
public final int GLID
| Method Detail |
|---|
public void updateSize()
CLCommandQueue.putAcquireGLObject(com.jogamp.opencl.gl.CLGLObject).
public int getGLObjectID()
CLGLObject
getGLObjectID in interface CLGLObjectpublic CLMemory.GLObjectType getGLObjectType()
CLGLObject
getGLObjectType in interface CLGLObjectpublic CLGLContext getContext()
CLObject
getContext in interface CLGLObjectgetContext in class CLObjectpublic GLContext getGLContext()
CLGLObject
getGLContext in interface CLGLObjectpublic <T extends Buffer> CLGLBuffer<T> cloneWith(T directBuffer)
CLMemory
cloneWith in class CLBuffer<B extends Buffer>public String toString()
toString in class CLMemory<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 AutoCloseableAutoCloseablepublic boolean isReleased()
CLResourceCLResource.release() has been called.
isReleased in interface CLResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||