|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.opencl.CLContext
com.jogamp.opencl.gl.CLGLContext
public final class CLGLContext
OpenCL Context supporting JOGL-JOCL interoperablity.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jogamp.opencl.CLContext |
---|
CLContext.ErrorDispatcher |
Field Summary | |
---|---|
protected CL |
cl
|
protected CLContext |
context
|
long |
ID
The OpenCL object handle. |
Fields inherited from class com.jogamp.opencl.CLContext |
---|
devices, memoryObjects, platform, programs, queuesMap, samplers |
Method Summary | ||
---|---|---|
void |
close()
Deprecated. This method is not intended to be called from client code. |
|
static CLGLContext |
create(GLContext glContext)
Creates a shared context on all available devices (CL_DEVICE_TYPE_ALL). |
|
static CLGLContext |
create(GLContext glContext,
CLDevice... devices)
Creates a shared context on the specified platform and with the specified devices. |
|
static CLGLContext |
create(GLContext glContext,
CLDevice.Type... deviceTypes)
Creates a shared context on the specified platform and with the specified device types. |
|
static CLGLContext |
create(GLContext glContext,
CLPlatform platform)
Creates a shared context on the specified platform on all available devices (CL_DEVICE_TYPE_ALL). |
|
static CLGLContext |
create(GLContext glContext,
CLPlatform platform,
CLDevice.Type... deviceTypes)
Creates a shared context on the specified platform and with the specified device types. |
|
|
createFromGLBuffer(B directBuffer,
int glBuffer,
CLMemory.Mem... flags)
|
|
|
createFromGLBuffer(B directBuffer,
int glBuffer,
int flags)
|
|
CLGLBuffer<?> |
createFromGLBuffer(int glBuffer,
CLMemory.Mem... flags)
|
|
CLGLBuffer<?> |
createFromGLBuffer(int glBuffer,
int flags)
|
|
|
createFromGLRenderbuffer(B directBuffer,
int glBuffer,
CLMemory.Mem... flags)
|
|
|
createFromGLRenderbuffer(B directBuffer,
int glBuffer,
int flags)
|
|
CLGLImage2d<?> |
createFromGLRenderbuffer(int glBuffer,
CLMemory.Mem... flags)
|
|
CLGLImage2d<?> |
createFromGLRenderbuffer(int glBuffer,
int flags)
|
|
|
createFromGLTexture2d(B directBuffer,
int target,
int texture,
int mipmap,
CLMemory.Mem... flags)
|
|
|
createFromGLTexture2d(B directBuffer,
int target,
int texture,
int mipmap,
int flags)
|
|
CLGLTexture2d<?> |
createFromGLTexture2d(int target,
int texture,
int mipmap,
CLMemory.Mem... flags)
|
|
CLGLTexture2d<?> |
createFromGLTexture2d(int target,
int texture,
int mipmap,
int flags)
|
|
|
createFromGLTexture3d(B directBuffer,
int target,
int texture,
int mipmap,
CLMemory.Mem... flags)
|
|
|
createFromGLTexture3d(B directBuffer,
int target,
int texture,
int mipmap,
int flags)
|
|
CLGLTexture3d<?> |
createFromGLTexture3d(int target,
int texture,
int mipmap,
CLMemory.Mem... flags)
|
|
CLGLTexture3d<?> |
createFromGLTexture3d(int target,
int texture,
int mipmap,
int flags)
|
|
CLGLI |
getCL()
Return the low level OpenCL interface with OpenGL interoperability. |
|
CLGLContext |
getContext()
Returns the context for this OpenCL object. |
|
GLContext |
getGLContext()
Returns the OpenGL context this context was shared with. |
|
long |
getID()
Returns the OpenCL object handle |
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
Method Detail |
---|
public static CLGLContext create(GLContext glContext)
GLContext.makeCurrent()
public static CLGLContext create(GLContext glContext, CLPlatform platform)
GLContext.makeCurrent()
public static CLGLContext create(GLContext glContext, CLDevice.Type... deviceTypes)
GLContext.makeCurrent()
public static CLGLContext create(GLContext glContext, CLPlatform platform, CLDevice.Type... deviceTypes)
GLContext.makeCurrent()
public static CLGLContext create(GLContext glContext, CLDevice... devices)
GLContext.makeCurrent()
public final CLGLBuffer<?> createFromGLBuffer(int glBuffer, CLMemory.Mem... flags)
public final CLGLBuffer<?> createFromGLBuffer(int glBuffer, int flags)
public final <B extends Buffer> CLGLBuffer<B> createFromGLBuffer(B directBuffer, int glBuffer, CLMemory.Mem... flags)
public final <B extends Buffer> CLGLBuffer<B> createFromGLBuffer(B directBuffer, int glBuffer, int flags)
public final CLGLImage2d<?> createFromGLRenderbuffer(int glBuffer, CLMemory.Mem... flags)
public final CLGLImage2d<?> createFromGLRenderbuffer(int glBuffer, int flags)
public final <B extends Buffer> CLGLImage2d<B> createFromGLRenderbuffer(B directBuffer, int glBuffer, CLMemory.Mem... flags)
public final <B extends Buffer> CLGLImage2d<B> createFromGLRenderbuffer(B directBuffer, int glBuffer, int flags)
public final CLGLTexture2d<?> createFromGLTexture2d(int target, int texture, int mipmap, CLMemory.Mem... flags)
public final CLGLTexture2d<?> createFromGLTexture2d(int target, int texture, int mipmap, int flags)
public final <B extends Buffer> CLGLTexture2d<B> createFromGLTexture2d(B directBuffer, int target, int texture, int mipmap, CLMemory.Mem... flags)
public final <B extends Buffer> CLGLTexture2d<B> createFromGLTexture2d(B directBuffer, int target, int texture, int mipmap, int flags)
public final CLGLTexture3d<?> createFromGLTexture3d(int target, int texture, int mipmap, CLMemory.Mem... flags)
public final CLGLTexture3d<?> createFromGLTexture3d(int target, int texture, int mipmap, int flags)
public final <B extends Buffer> CLGLTexture3d<B> createFromGLTexture3d(B directBuffer, int target, int texture, int mipmap, CLMemory.Mem... flags)
public final <B extends Buffer> CLGLTexture3d<B> createFromGLTexture3d(B directBuffer, int target, int texture, int mipmap, int flags)
public CLGLI getCL()
getCL
in class CLContext
public GLContext getGLContext()
public CLGLContext getContext()
getContext
in class CLContext
@Deprecated public final void close()
close
in interface AutoCloseable
AutoCloseable
public long getID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |