Package org.lwjgl.opencl
Class CLPlatform
java.lang.Object
org.lwjgl.PointerWrapperAbstract
org.lwjgl.opencl.CLPlatform
- All Implemented Interfaces:
PointerWrapper
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
Modifier and TypeMethodDescriptiongetCLDevice
(long id) Returns a CLDevice that is available on this platform.static CLPlatform
getCLPlatform
(long id) Returns a CLPlatform with the specified id.getDevices
(int device_type) Returns a list of the available devices on this platform that match the specified type.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.getInfoString
(int param_name) Returns the String value of the specified parameter.static List<CLPlatform>
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 Details
-
getCLPlatform
Returns a CLPlatform with the specified id.- Parameters:
id
- the platform object id- Returns:
- the CLPlatform object
-
getCLDevice
Returns a CLDevice that is available on this platform.- Parameters:
id
- the device object id- Returns:
- the CLDevice object
-
getPlatforms
Returns a list of all the available platforms.- Returns:
- the available platforms
-
getPlatforms
Returns a list of the available platforms, filtered by the specified filter.- Parameters:
filter
- the platform filter- Returns:
- the available platforms
-
getInfoString
Returns the String value of the specified parameter.- Parameters:
param_name
- the parameter- Returns:
- the parameter value
-
getDevices
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
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
-