Top Description Fields Constructors Methods
org.lwjgl.opencl

public abstract Class CLNativeKernel

extends PointerWrapperAbstract
Class Inheritance
Imports
org.lwjgl.PointerWrapperAbstract, java.nio.ByteBuffer

Instances of this class can be used to execute native kernels. clEnqueueNativeKernel will build the its arguments automatically, in a way that allows execute to receive an array of ByteBuffers, pointing to cl_mem objects in global memory. The ByteBuffer objects should not be used outside the handleMessage method.
Author
Spasi
See Also
CL10#clEnqueueNativeKernel, execute(java.nio.ByteBuffer[])

Field Summary

Inherited from org.lwjgl.PointerWrapperAbstract:
pointer

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected abstract void
execute(ByteBuffer[]
an array of ByteBuffers pointing to cl_mem global memory.
memobjs
)

Implement this method to execute an action on cl_mem objects in global memory.

Inherited from org.lwjgl.PointerWrapperAbstract:
checkValidequalsgetPointerhashCodeisValidtoString

Constructor Detail

CLNativeKernelback to summary
protected CLNativeKernel()

Method Detail

executeback to summary
protected abstract void execute(ByteBuffer[] memobjs)

Implement this method to execute an action on cl_mem objects in global memory.

Parameters
memobjs:ByteBuffer[]

an array of ByteBuffers pointing to cl_mem global memory.