Class CLUtil

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

public final class CLUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    checkCLError(int errcode)
    Checks the specified errcode and throws an OpenCLException if it's not equal to CL10.CL_SUCCESS.
    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.
    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.
    static String
    getErrcodeName(int errcode)
    Returns the token name of the specified errcode.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      com.jme3.opencl.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:
      com.jme3.opencl.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:
      com.jme3.opencl.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