Package com.jme3.opencl.lwjgl.info
Class CLUtil
java.lang.Object
com.jme3.opencl.lwjgl.info.CLUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckCLError(int errcode) static voidcheckCLError(ByteBuffer errorCodeBuffer) Checks theerrcodepresent in the current position of the specifiederrcode_retbuffer and throws anOpenCLExceptionif it's not equal toCL10.CL_SUCCESS.static voidcheckCLError(IntBuffer errorCodeBuffer) Checks theerrcodepresent in the current position of the specifiederrcode_retbuffer and throws anOpenCLExceptionif it's not equal toCL10.CL_SUCCESS.static StringgetErrcodeName(int errcode) Returns the token name of the specifiederrcode.
-
Method Details
-
checkCLError
Checks theerrcodepresent in the current position of the specifiederrcode_retbuffer and throws anOpenCLExceptionif it's not equal toCL10.CL_SUCCESS.- Parameters:
errorCodeBuffer- theerrcodebuffer- Throws:
OpenCLException
-
checkCLError
Checks theerrcodepresent in the current position of the specifiederrcode_retbuffer and throws anOpenCLExceptionif it's not equal toCL10.CL_SUCCESS.- Parameters:
errorCodeBuffer- theerrcodebuffer- Throws:
OpenCLException
-
checkCLError
public static void checkCLError(int errcode) - Parameters:
errcode- theerrcodeto check- Throws:
OpenCLException
-
getErrcodeName
Returns the token name of the specifiederrcode.- Parameters:
errcode- theerrcode- Returns:
- the
errcodetoken name
-