public final class CLContext extends PointerWrapperAbstract
pointer
Modifier and Type | Method and Description |
---|---|
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.
|
checkValid, equals, getPointer, hashCode, toString
public CLCommandQueue getCLCommandQueue(long id)
id
- the command queue object idpublic CLMem getCLMem(long id)
id
- the memory object idpublic CLSampler getCLSampler(long id)
id
- the sampler object idpublic CLProgram getCLProgram(long id)
id
- the program object idpublic CLEvent getCLEvent(long id)
id
- the event object idpublic 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 resultLWJGLException
- if an exception occurs while creating the contextpublic 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 resultLWJGLException
- if an exception occurs while creating the contextpublic 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 resultLWJGLException
- if an exception occurs while creating the contextpublic 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 resultLWJGLException
- if an exception occurs while creating the contextpublic 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 resultLWJGLException
- if an exception occurs while creating the contextpublic 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 resultLWJGLException
- if an exception occurs while creating the contextpublic int getInfoInt(int param_name)
param_name
- the parameterpublic 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
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.