Package com.jme3.opencl
Class DefaultPlatformChooser
java.lang.Object
com.jme3.opencl.DefaultPlatformChooser
- All Implemented Interfaces:
- PlatformChooser
A default implementation of 
PlatformChooser.
 It favors GPU devices with OpenGL sharing, then any devices with OpenGL sharing,
 then any possible device.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionchooseDevices(List<? extends Platform> platforms) Chooses one or more devices for the opencl context.
- 
Constructor Details- 
DefaultPlatformChooserpublic DefaultPlatformChooser()
 
- 
- 
Method Details- 
chooseDevicesDescription copied from interface:PlatformChooserChooses 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:
- chooseDevicesin interface- PlatformChooser
- Parameters:
- platforms- the available platforms
- Returns:
- the list of devices
 
 
-