public static final class Kernel.WorkSize
extends java.lang.Object
| Constructor and Description |
|---|
WorkSize()
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 object
|
WorkSize(long size)
Creates a 1D work size of the specified extend
|
WorkSize(long width,
long height)
Creates a 2D work size of the specified extend
|
WorkSize(long width,
long height,
long depth)
Creates a 3D work size of the specified extend.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getDimension() |
long[] |
getSizes() |
int |
hashCode() |
void |
set(int dimension,
long... sizes) |
void |
set(Kernel.WorkSize ws) |
java.lang.String |
toString() |
public WorkSize(int dimension,
long... sizes)
dimension - the dimension (1,2,3)sizes - the sizes in each dimension, the length must match the specified dimensionpublic WorkSize()
public WorkSize(long size)
size - the sizepublic WorkSize(long width,
long height)
width - the widthheight - the heightpublic WorkSize(long width,
long height,
long depth)
width - the widthheight - the heightdepth - the depthpublic int getDimension()
public long[] getSizes()
public void set(int dimension,
long... sizes)
public void set(Kernel.WorkSize ws)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object