com.jogamp.opencl.util
Class CLPlatformFilters

java.lang.Object
  extended by com.jogamp.opencl.util.CLPlatformFilters

public class CLPlatformFilters
extends Object

Pre-defined filters.

Author:
Michael Bien
See Also:
CLPlatform.getDefault(com.jogamp.opencl.util.Filter[]), CLPlatform.listCLPlatforms(com.jogamp.opencl.util.Filter[])

Constructor Summary
CLPlatformFilters()
           
 
Method Summary
static Filter<CLPlatform> extension(String... extensions)
          Accepts all platforms supporting the given extensions.
static Filter<CLPlatform> glSharing()
          Accepts all platforms containing at least one devices of which supports OpenGL-OpenCL interoparability.
static Filter<CLPlatform> glSharing(GLContext context)
          Accepts all with the given OpenGL context compatible platforms containing at least one devices of which supports OpenGL-OpenCL interoparability.
static Filter<CLPlatform> queueMode(CLCommandQueue.Mode... modes)
          Accepts all platforms containing at least one devices supporting the specified command queue modes.
static Filter<CLPlatform> type(CLDevice.Type type)
          Accepts all platforms containing devices of the given type.
static Filter<CLPlatform> version(CLVersion version)
          Accepts all platforms supporting at least the given OpenCL spec version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLPlatformFilters

public CLPlatformFilters()
Method Detail

version

public static Filter<CLPlatform> version(CLVersion version)
Accepts all platforms supporting at least the given OpenCL spec version.


type

public static Filter<CLPlatform> type(CLDevice.Type type)
Accepts all platforms containing devices of the given type.


glSharing

public static Filter<CLPlatform> glSharing()
Accepts all platforms containing at least one devices of which supports OpenGL-OpenCL interoparability.


glSharing

public static Filter<CLPlatform> glSharing(GLContext context)
Accepts all with the given OpenGL context compatible platforms containing at least one devices of which supports OpenGL-OpenCL interoparability.


extension

public static Filter<CLPlatform> extension(String... extensions)
Accepts all platforms supporting the given extensions.


queueMode

public static Filter<CLPlatform> queueMode(CLCommandQueue.Mode... modes)
Accepts all platforms containing at least one devices supporting the specified command queue modes.