Top Description Inners Constructors Methods
org.lwjgl.opencl

public abstract Class CLNativeKernel

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

Instances of this class may be passed to the EnqueueNativeKernel method.

Type


void (*invoke) (
    void *args
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public static CLNativeKernel

Returns:

the new CLNativeKernel
create
(long functionPointer)

Creates a CLNativeKernel instance from the specified function pointer.

public static CLNativeKernel
create(CLNativeKernelI instance)

Creates a CLNativeKernel instance that delegates to the specified CLNativeKernelI instance.

public static CLNativeKernel
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

CLNativeKernelback to summary
protected CLNativeKernel()
CLNativeKernelback to summary
pack-priv CLNativeKernel(long functionPointer)

Method Detail

createback to summary
public static CLNativeKernel create(long functionPointer)

Creates a CLNativeKernel instance from the specified function pointer.

Returns:CLNativeKernel

the new CLNativeKernel

createback to summary
public static CLNativeKernel create(CLNativeKernelI instance)

Creates a CLNativeKernel instance that delegates to the specified CLNativeKernelI instance.

createSafeback to summary
public static CLNativeKernel createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.opencl back to summary

private final Class CLNativeKernel.Container

extends CLNativeKernel
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final CLNativeKernelI

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
a pointer to the arguments list
args
)

Implements org.lwjgl.opencl.CLNativeKernelI.invoke.

Will be called by the OpenCL using EnqueueNativeKernel.
Inherited from org.lwjgl.opencl.CLNativeKernel:
createcreatecreateSafe

Field Detail

delegateback to summary
private final CLNativeKernelI delegate

Constructor Detail

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

Method Detail

invokeback to summary
public void invoke(long args)

Implements org.lwjgl.opencl.CLNativeKernelI.invoke.

Doc from org.lwjgl.opencl.CLNativeKernelI.invoke.

Will be called by the OpenCL using EnqueueNativeKernel.

Parameters
args:long

a pointer to the arguments list

Annotations
@Override