Class DefaultPlatformChooser

java.lang.Object
com.jme3.opencl.DefaultPlatformChooser
All Implemented Interfaces:
PlatformChooser

public class DefaultPlatformChooser extends Object implements PlatformChooser
A default implementation of PlatformChooser. It favors GPU devices with OpenGL sharing, then any devices with OpenGL sharing, then any possible device.
  • Constructor Details

    • DefaultPlatformChooser

      public DefaultPlatformChooser()
  • Method Details

    • chooseDevices

      public List<? extends Device> chooseDevices(List<? extends Platform> platforms)
      Description copied from interface: PlatformChooser
      Chooses one or more devices for the opencl context. All returned devices must belong to the same platform. If the returned list is empty, no context will be created.
      Specified by:
      chooseDevices in interface PlatformChooser
      Parameters:
      platforms - the available platforms
      Returns:
      the list of devices