public void set(int dimension, long... sizes) {
            if (sizes == null || sizes.length != 3) {
                throw new IllegalArgumentException("sizes must be an array of length 3");
            }
            if (dimension <= 0 || dimension > 3) {
                throw new IllegalArgumentException("dimension must be between 1 and 3");
            }
            this.dimension = dimension;
            this.sizes = sizes;
        }
Creates a 3D work size of the specified extend.

@param width the width
@param height the height
@param depth the depth
jme3-core/src/main/java/com/jme3/opencl/Kernel.java