Class CLNativeKernel

java.lang.Object
org.lwjgl.system.Callback
org.lwjgl.opencl.CLNativeKernel
All Implemented Interfaces:
AutoCloseable, CLNativeKernelI, CallbackI, NativeResource, Pointer

public abstract class CLNativeKernel extends Callback implements CLNativeKernelI
Instances of this class may be passed to the EnqueueNativeKernel method.

Type


 void (*CLNativeKernelI.invoke(long)) (
     void *args
 )
  • Method Details

    • create

      public static CLNativeKernel create(long functionPointer)
      Creates a CLNativeKernel instance from the specified function pointer.
      Returns:
      the new CLNativeKernel
    • createSafe

      @Nullable public static CLNativeKernel createSafe(long functionPointer)
      Like create, but returns null if functionPointer is NULL.
    • create

      public static CLNativeKernel create(CLNativeKernelI instance)
      Creates a CLNativeKernel instance that delegates to the specified CLNativeKernelI instance.