Package civitas.celestis.gpu
Class KernelSource
java.lang.Object
civitas.celestis.gpu.KernelSource
A source object which can be used as a parameter of
GPU.createKernel(KernelSource).
Predefined kernels are packaged in the form of kernel source objects.
Source objects are immutable, and can be safely shared across multiple threads.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new kernel source.KernelSource(String source, String name, int paramCount) Creates a new kernel source. -
Method Summary
-
Field Details
-
source
The source code of this kernel. -
name
The name of this kernel. -
paramCount
protected final int paramCountThe parameter count of this kernel.
-
-
Constructor Details
-
KernelSource
Creates a new kernel source.- Parameters:
source- The source code to usename- The qualified method name of the kernelparamCount- The parameter count of the kernel
-
KernelSource
Creates a new kernel source.- Parameters:
ks- The source object of which to copy values from
-