Package com.jme3.opencl.lwjgl.info
Class CLUtil
java.lang.Object
com.jme3.opencl.lwjgl.info.CLUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkCLError
(int errcode) static void
checkCLError
(ByteBuffer errorCodeBuffer) Checks theerrcode
present in the current position of the specifiederrcode_ret
buffer and throws anOpenCLException
if it's not equal toCL10.CL_SUCCESS
.static void
checkCLError
(IntBuffer errorCodeBuffer) Checks theerrcode
present in the current position of the specifiederrcode_ret
buffer and throws anOpenCLException
if it's not equal toCL10.CL_SUCCESS
.static String
getErrcodeName
(int errcode) Returns the token name of the specifiederrcode
.
-
Method Details
-
checkCLError
Checks theerrcode
present in the current position of the specifiederrcode_ret
buffer and throws anOpenCLException
if it's not equal toCL10.CL_SUCCESS
.- Parameters:
errorCodeBuffer
- theerrcode
buffer- Throws:
OpenCLException
-
checkCLError
Checks theerrcode
present in the current position of the specifiederrcode_ret
buffer and throws anOpenCLException
if it's not equal toCL10.CL_SUCCESS
.- Parameters:
errorCodeBuffer
- theerrcode
buffer- Throws:
OpenCLException
-
checkCLError
public static void checkCLError(int errcode) - Parameters:
errcode
- theerrcode
to check- Throws:
OpenCLException
-
getErrcodeName
Returns the token name of the specifiederrcode
.- Parameters:
errcode
- theerrcode
- Returns:
- the
errcode
token name
-