Top Description Inners Constructors Methods
org.lwjgl.opencl

public abstract Class CLProgramCallback

extends Callback
implements CLProgramCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.opencl.CLProgramCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.opencl.CLProgramCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

Instances of this class may be passed to the BuildProgram, CompileProgram and LinkProgram methods.

Type


void (*invoke) (
    cl_program program,
    void *user_data
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
CLProgramCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static CLProgramCallback

Returns:

the new CLProgramCallback
create
(long functionPointer)

Creates a CLProgramCallback instance from the specified function pointer.

public static CLProgramCallback
create(CLProgramCallbackI instance)

Creates a CLProgramCallback instance that delegates to the specified CLProgramCallbackI instance.

public static CLProgramCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

CLProgramCallbackback to summary
protected CLProgramCallback()
CLProgramCallbackback to summary
pack-priv CLProgramCallback(long functionPointer)

Method Detail

createback to summary
public static CLProgramCallback create(long functionPointer)

Creates a CLProgramCallback instance from the specified function pointer.

Returns:CLProgramCallback

the new CLProgramCallback

createback to summary
public static CLProgramCallback create(CLProgramCallbackI instance)

Creates a CLProgramCallback instance that delegates to the specified CLProgramCallbackI instance.

createSafeback to summary
public static CLProgramCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.opencl back to summary

private final Class CLProgramCallback.Container

extends CLProgramCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final CLProgramCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, CLProgramCallbackI delegate)

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the program that was built, compiled or linked
program
,
long
the user-specified value that was passed when calling BuildProgram, CompileProgram or LinkProgram
user_data
)

Implements org.lwjgl.opencl.CLProgramCallbackI.invoke.

Will be called when the program is built, compiled or linked.
Inherited from org.lwjgl.opencl.CLProgramCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final CLProgramCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, CLProgramCallbackI delegate)

Method Detail

invokeback to summary
public void invoke(long program, long user_data)

Implements org.lwjgl.opencl.CLProgramCallbackI.invoke.

Doc from org.lwjgl.opencl.CLProgramCallbackI.invoke.

Will be called when the program is built, compiled or linked.

Parameters
program:long

the program that was built, compiled or linked

user_data:long

the user-specified value that was passed when calling BuildProgram, CompileProgram or LinkProgram

Annotations
@Override