Package com.jme3.opencl
Class Kernel.WorkSize
java.lang.Object
com.jme3.opencl.Kernel.WorkSize
- Enclosing class:
- Kernel
The work size (global and local) for executing a kernel
-
Constructor Summary
ConstructorDescriptionWorkSize()
Creates a work size of dimension 1 and extend 1,1,1 (only one thread).WorkSize
(int dimension, long... sizes) Creates a new work size objectWorkSize
(long size) Creates a 1D work size of the specified extendWorkSize
(long width, long height) Creates a 2D work size of the specified extendWorkSize
(long width, long height, long depth) Creates a 3D work size of the specified extend. -
Method Summary
-
Constructor Details
-
WorkSize
public WorkSize(int dimension, long... sizes) Creates a new work size object- Parameters:
dimension
- the dimension (1,2,3)sizes
- the sizes in each dimension, the length must match the specified dimension
-
WorkSize
public WorkSize()Creates a work size of dimension 1 and extend 1,1,1 (only one thread). -
WorkSize
public WorkSize(long size) Creates a 1D work size of the specified extend- Parameters:
size
- the size
-
WorkSize
public WorkSize(long width, long height) Creates a 2D work size of the specified extend- Parameters:
width
- the widthheight
- the height
-
WorkSize
public WorkSize(long width, long height, long depth) Creates a 3D work size of the specified extend.- Parameters:
width
- the widthheight
- the heightdepth
- the depth
-
-
Method Details