Class CLProgramCallback

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

public abstract class CLProgramCallback extends Callback implements CLProgramCallbackI
Instances of this class may be passed to the BuildProgram, CompileProgram and LinkProgram methods.

Type


 void (*CLProgramCallbackI.invoke(long, long)) (
     cl_program program,
     void *user_data
 )
  • Method Details

    • create

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

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

      public static CLProgramCallback create(CLProgramCallbackI instance)
      Creates a CLProgramCallback instance that delegates to the specified CLProgramCallbackI instance.