Package org.lwjgl.opencl
Class CLPlatform
- java.lang.Object
-
- org.lwjgl.PointerWrapperAbstract
-
- org.lwjgl.opencl.CLPlatform
-
- All Implemented Interfaces:
PointerWrapper
public final class CLPlatform extends PointerWrapperAbstract
This class is a wrapper around a cl_platform_id pointer.- Author:
- Spasi
-
-
Field Summary
-
Fields inherited from class org.lwjgl.PointerWrapperAbstract
pointer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CLDevicegetCLDevice(long id)Returns a CLDevice that is available on this platform.static CLPlatformgetCLPlatform(long id)Returns a CLPlatform with the specified id.List<CLDevice>getDevices(int device_type)Returns a list of the available devices on this platform that match the specified type.List<CLDevice>getDevices(int device_type, Filter<CLDevice> filter)Returns a list of the available devices on this platform that match the specified type, filtered by the specified filter.StringgetInfoString(int param_name)Returns the String value of the specified parameter.static List<CLPlatform>getPlatforms()Returns a list of all the available platforms.static List<CLPlatform>getPlatforms(Filter<CLPlatform> filter)Returns a list of the available platforms, filtered by the specified filter.-
Methods inherited from class org.lwjgl.PointerWrapperAbstract
checkValid, equals, getPointer, hashCode, isValid, toString
-
-
-
-
Method Detail
-
getCLPlatform
public static CLPlatform getCLPlatform(long id)
Returns a CLPlatform with the specified id.- Parameters:
id- the platform object id- Returns:
- the CLPlatform object
-
getCLDevice
public CLDevice getCLDevice(long id)
Returns a CLDevice that is available on this platform.- Parameters:
id- the device object id- Returns:
- the CLDevice object
-
getPlatforms
public static List<CLPlatform> getPlatforms()
Returns a list of all the available platforms.- Returns:
- the available platforms
-
getPlatforms
public static List<CLPlatform> getPlatforms(Filter<CLPlatform> filter)
Returns a list of the available platforms, filtered by the specified filter.- Parameters:
filter- the platform filter- Returns:
- the available platforms
-
getInfoString
public String getInfoString(int param_name)
Returns the String value of the specified parameter.- Parameters:
param_name- the parameter- Returns:
- the parameter value
-
getDevices
public List<CLDevice> getDevices(int device_type)
Returns a list of the available devices on this platform that match the specified type.- Parameters:
device_type- the device type- Returns:
- the available devices
-
getDevices
public List<CLDevice> getDevices(int device_type, Filter<CLDevice> filter)
Returns a list of the available devices on this platform that match the specified type, filtered by the specified filter.- Parameters:
device_type- the device typefilter- the device filter- Returns:
- the available devices
-
-