/** * Tells the driver to figure out the work group size on their own. * Use this if you do not rely on specific work group layouts, i.e. * because shared memory is not used. * {@link #Run1(com.jme3.opencl.CommandQueue, com.jme3.opencl.Kernel.WorkSize, java.lang.Object...) } * implicitly calls this method. */ public void setWorkGroupSizeToNull() { workGroupSize.set(1, 0, 0, 0); }
/** * Sets the global work size to be a 3D grid * @param width the width * @param height the height * @param depth the depth */ public void setGlobalWorkSize(int width, int height, int depth) { globalWorkSize.set(3, width, height, depth); }
/** * Sets the global work size to a 1D grid * @param size the size in 1D */ public void setGlobalWorkSize(int size) { globalWorkSize.set(1, size); }
/** * Sets the work group size to be a 1D grid * @param size the size to set */ public void setWorkGroupSize(int size) { workGroupSize.set(1, size); }
/** * Sets the work group size * @param ws the work group size to set */ public void setWorkGroupSize(WorkSize ws) { workGroupSize.set(ws); }
/** * Sets the work group size to be a 3D grid * @param width the width * @param height the height * @param depth the depth */ public void setWorkGroupSdize(int width, int height, int depth) { workGroupSize.set(3, width, height, depth); }
/** * Sets the work group size to be a 2D grid * @param width the width * @param height the height */ public void setWorkGroupSize(int width, int height) { workGroupSize.set(2, width, height); }
/** * Sets the global work size. * @param ws the work size to set */ public void setGlobalWorkSize(WorkSize ws) { globalWorkSize.set(ws); }
/** * Creates a new work size object * @param dimension the dimension (1,2,3) * @param sizes the sizes in each dimension, the length must match the specified dimension */ public WorkSize(int dimension, long... sizes) { super(); set(dimension, sizes); }
/** * Sets the global work size to be a 2D grid * @param width the width * @param height the height */ public void setGlobalWorkSize(int width, int height) { globalWorkSize.set(2, width, height); }
/** * Sets the work group size to be a 3D grid * @param width the width * @param height the height * @param depth the depth */ public void setWorkGroupSdize(int width, int height, int depth) { workGroupSize.set(3, width, height, depth); }
/** * Sets the work group size to be a 2D grid * @param width the width * @param height the height */ public void setWorkGroupSize(int width, int height) { workGroupSize.set(2, width, height); }
/** * Sets the work group size to be a 1D grid * @param size the size to set */ public void setWorkGroupSize(int size) { workGroupSize.set(1, size); }
/** * Sets the global work size to be a 3D grid * @param width the width * @param height the height * @param depth the depth */ public void setGlobalWorkSize(int width, int height, int depth) { globalWorkSize.set(3, width, height, depth); }
/** * Creates a new work size object * @param dimension the dimension (1,2,3) * @param sizes the sizes in each dimension, the length must match the specified dimension */ public WorkSize(int dimension, long... sizes) { super(); set(dimension, sizes); }
/** * Tells the driver to figure out the work group size on their own. * Use this if you do not rely on specific work group layouts, i.e. * because shared memory is not used. * {@link #Run1(com.jme3.opencl.CommandQueue, com.jme3.opencl.Kernel.WorkSize, java.lang.Object...) } * implicitly calls this method. */ public void setWorkGroupSizeToNull() { workGroupSize.set(1, 0, 0, 0); }
/** * Sets the work group size * @param ws the work group size to set */ public void setWorkGroupSize(WorkSize ws) { workGroupSize.set(ws); }
/** * Sets the global work size to a 1D grid * @param size the size in 1D */ public void setGlobalWorkSize(int size) { globalWorkSize.set(1, size); }
/** * Sets the global work size to be a 2D grid * @param width the width * @param height the height */ public void setGlobalWorkSize(int width, int height) { globalWorkSize.set(2, width, height); }
/** * Sets the global work size. * @param ws the work size to set */ public void setGlobalWorkSize(WorkSize ws) { globalWorkSize.set(ws); }