Class Kernel.WorkSize

java.lang.Object
com.jme3.opencl.Kernel.WorkSize
Enclosing class:
Kernel

public static final class Kernel.WorkSize extends Object
The work size (global and local) for executing a kernel
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    long[]
     
    int
     
    void
    set(int dimension, long... sizes)
     
    void
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • WorkSize

      public WorkSize(int dimension, long... sizes)
      Creates a new work size object
      Parameters:
      dimension - the dimension (1,2,3)
      sizes - the sizes in each dimension, the length must match the specified dimension
    • WorkSize

      public WorkSize()
      Creates a work size of dimension 1 and extend 1,1,1 (only one thread).
    • WorkSize

      public WorkSize(long size)
      Creates a 1D work size of the specified extend
      Parameters:
      size - the size
    • WorkSize

      public WorkSize(long width, long height)
      Creates a 2D work size of the specified extend
      Parameters:
      width - the width
      height - the height
    • WorkSize

      public WorkSize(long width, long height, long depth)
      Creates a 3D work size of the specified extend.
      Parameters:
      width - the width
      height - the height
      depth - the depth
  • Method Details

    • getDimension

      public int getDimension()
    • getSizes

      public long[] getSizes()
    • set

      public void set(int dimension, long... sizes)
    • set

      public void set(Kernel.WorkSize ws)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object