Package com.jogamp.opencl.util
Class CLUtil
- java.lang.Object
-
- com.jogamp.opencl.util.CLUtil
-
public class CLUtil extends Object
- Author:
- Michael Bien
-
-
Constructor Summary
Constructors Constructor Description CLUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
clBoolean(boolean b)
Returns b ? CL.CL_TRUE : CL.CL_FALSEstatic boolean
clBoolean(int clBoolean)
Returns true if clBoolean == CL.CL_TRUE.static String
clString2JavaString(byte[] chars, int clLength)
static String
clString2JavaString(ByteBuffer chars, int clLength)
static Map<String,String>
obtainDeviceProperties(CLDevice dev)
Reads all device properties and returns them as key-value map.static Map<String,String>
obtainPlatformProperties(CLPlatform platform)
Reads all platform properties and returns them as key-value map.
-
-
-
Method Detail
-
clString2JavaString
public static String clString2JavaString(byte[] chars, int clLength)
-
clString2JavaString
public static String clString2JavaString(ByteBuffer chars, int clLength)
-
clBoolean
public static boolean clBoolean(int clBoolean)
Returns true if clBoolean == CL.CL_TRUE.
-
clBoolean
public static int clBoolean(boolean b)
Returns b ? CL.CL_TRUE : CL.CL_FALSE
-
obtainPlatformProperties
public static Map<String,String> obtainPlatformProperties(CLPlatform platform)
Reads all platform properties and returns them as key-value map.
-
-