Package com.jme3.opencl
Class Kernel.LocalMemPerElement
java.lang.Object
com.jme3.opencl.Kernel.LocalMemPerElement
- Enclosing class:
- Kernel
A placeholder for a kernel argument representing local kernel memory per thread.
 This effectively computes 
SharedMemoryPerElement * WorkGroupSize
 and uses this value as the size of shared memory available in the kernel.
 Therefore, an instance of this class must be set as an argument AFTER
 the work group size has been specified. This is
 ensured by Kernel.Run2(com.jme3.opencl.CommandQueue, com.jme3.opencl.Kernel.WorkSize, com.jme3.opencl.Kernel.WorkSize, java.lang.Object...).
 This argument can't be used when no work group size was defined explicitly
 (e.g. by Kernel.setWorkGroupSizeToNull() or Kernel.Run1(com.jme3.opencl.CommandQueue, com.jme3.opencl.Kernel.WorkSize, java.lang.Object...)).- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
LocalMemPerElementpublic LocalMemPerElement(int size) Creates a new LocalMemPerElement instance- Parameters:
- size- the number of bytes available for each thread within a work group
 
 
- 
- 
Method Details