public static final class Kernel.LocalMemPerElement
extends java.lang.Object
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 and Description |
---|
LocalMemPerElement(int size)
Creates a new LocalMemPerElement instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getSize() |
int |
hashCode() |
java.lang.String |
toString() |
public LocalMemPerElement(int size)
size
- the number of bytes available for each thread within
a work grouppublic int getSize()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object