Class CLUtil

java.lang.Object
com.jme3.opencl.lwjgl.info.CLUtil

public final class CLUtil extends Object
  • Method Details

    • checkCLError

      public static void checkCLError(ByteBuffer errorCodeBuffer)
      Checks the errcode present in the current position of the specified errcode_ret buffer and throws an OpenCLException if it's not equal to CL10.CL_SUCCESS.
      Parameters:
      errorCodeBuffer - the errcode buffer
      Throws:
      OpenCLException
    • checkCLError

      public static void checkCLError(IntBuffer errorCodeBuffer)
      Checks the errcode present in the current position of the specified errcode_ret buffer and throws an OpenCLException if it's not equal to CL10.CL_SUCCESS.
      Parameters:
      errorCodeBuffer - the errcode buffer
      Throws:
      OpenCLException
    • checkCLError

      public static void checkCLError(int errcode)
      Checks the specified errcode and throws an OpenCLException if it's not equal to CL10.CL_SUCCESS.
      Parameters:
      errcode - the errcode to check
      Throws:
      OpenCLException
    • getErrcodeName

      public static String getErrcodeName(int errcode)
      Returns the token name of the specified errcode.
      Parameters:
      errcode - the errcode
      Returns:
      the errcode token name