|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lwjgl.PointerWrapperAbstract
org.lwjgl.opencl.CLContext
public final class CLContext
This class is a wrapper around a cl_context pointer.
| Field Summary |
|---|
| Fields inherited from class org.lwjgl.PointerWrapperAbstract |
|---|
pointer |
| Method Summary | |
|---|---|
static CLContext |
create(CLPlatform platform,
java.util.List<CLDevice> devices,
CLContextCallback pfn_notify,
Drawable share_drawable,
java.nio.IntBuffer errcode_ret)
Creates a new CLContext. |
static CLContext |
create(CLPlatform platform,
java.util.List<CLDevice> devices,
CLContextCallback pfn_notify,
java.nio.IntBuffer errcode_ret)
Creates a new CLContext. |
static CLContext |
create(CLPlatform platform,
java.util.List<CLDevice> devices,
java.nio.IntBuffer errcode_ret)
Creates a new CLContext. |
static CLContext |
createFromType(CLPlatform platform,
long device_type,
CLContextCallback pfn_notify,
Drawable share_drawable,
java.nio.IntBuffer errcode_ret)
Creates a new CLContext. |
static CLContext |
createFromType(CLPlatform platform,
long device_type,
CLContextCallback pfn_notify,
java.nio.IntBuffer errcode_ret)
Creates a new CLContext. |
static CLContext |
createFromType(CLPlatform platform,
long device_type,
java.nio.IntBuffer errcode_ret)
Creates a new CLContext. |
CLCommandQueue |
getCLCommandQueue(long id)
Returns a CLCommandQueue associated with this context. |
CLEvent |
getCLEvent(long id)
Returns a user CLEvent associated with this context. |
CLMem |
getCLMem(long id)
Returns a CLMem associated with this context. |
CLProgram |
getCLProgram(long id)
Returns a CLProgram associated with this context. |
CLSampler |
getCLSampler(long id)
Returns a CLSampler associated with this context. |
java.util.List<CLDevice> |
getInfoDevices()
Returns the list of devices in context. |
int |
getInfoInt(int param_name)
Returns the integer value of the specified parameter. |
P |
getParent()
|
int |
getReferenceCount()
|
java.util.List<CLImageFormat> |
getSupportedImageFormats(long flags,
int image_type)
|
java.util.List<CLImageFormat> |
getSupportedImageFormats(long flags,
int image_type,
Filter<CLImageFormat> filter)
|
boolean |
isValid()
Returns true if this object represents a valid pointer. |
| Methods inherited from class org.lwjgl.PointerWrapperAbstract |
|---|
checkValid, equals, getPointer, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public CLCommandQueue getCLCommandQueue(long id)
id - the command queue object id
public CLMem getCLMem(long id)
id - the memory object id
public CLSampler getCLSampler(long id)
id - the sampler object id
public CLProgram getCLProgram(long id)
id - the program object id
public CLEvent getCLEvent(long id)
id - the event object id
public static CLContext create(CLPlatform platform,
java.util.List<CLDevice> devices,
java.nio.IntBuffer errcode_ret)
throws LWJGLException
platform - the platform to usedevices - the devices to useerrcode_ret - the error code result
LWJGLException - if an exception occurs while creating the context
public static CLContext create(CLPlatform platform,
java.util.List<CLDevice> devices,
CLContextCallback pfn_notify,
java.nio.IntBuffer errcode_ret)
throws LWJGLException
platform - the platform to usedevices - the devices to usepfn_notify - the context callback functionerrcode_ret - the error code result
LWJGLException - if an exception occurs while creating the context
public static CLContext create(CLPlatform platform,
java.util.List<CLDevice> devices,
CLContextCallback pfn_notify,
Drawable share_drawable,
java.nio.IntBuffer errcode_ret)
throws LWJGLException
platform - the platform to usedevices - the devices to useshare_drawable - the OpenGL drawable to share objects witherrcode_ret - the error code result
LWJGLException - if an exception occurs while creating the context
public static CLContext createFromType(CLPlatform platform,
long device_type,
java.nio.IntBuffer errcode_ret)
throws LWJGLException
platform - the platform to usedevice_type - the device type to useerrcode_ret - the error code result
LWJGLException - if an exception occurs while creating the context
public static CLContext createFromType(CLPlatform platform,
long device_type,
CLContextCallback pfn_notify,
java.nio.IntBuffer errcode_ret)
throws LWJGLException
platform - the platform to usedevice_type - the device type to usepfn_notify - the context callback functionerrcode_ret - the error code result
LWJGLException - if an exception occurs while creating the context
public static CLContext createFromType(CLPlatform platform,
long device_type,
CLContextCallback pfn_notify,
Drawable share_drawable,
java.nio.IntBuffer errcode_ret)
throws LWJGLException
platform - the platform to usedevice_type - the device type to useshare_drawable - the OpenGL drawable to share objects witherrcode_ret - the error code result
LWJGLException - if an exception occurs while creating the contextpublic int getInfoInt(int param_name)
param_name - the parameter
public java.util.List<CLDevice> getInfoDevices()
public java.util.List<CLImageFormat> getSupportedImageFormats(long flags,
int image_type)
public java.util.List<CLImageFormat> getSupportedImageFormats(long flags,
int image_type,
Filter<CLImageFormat> filter)
public P getParent()
public final int getReferenceCount()
public final boolean isValid()
PointerWrapperAbstract
isValid in class PointerWrapperAbstract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||