Class VulkanChecks


  • public final class VulkanChecks
    extends java.lang.Object
    Functions to check the return values of Vulkan calls.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkReturnCode​(int code, java.lang.String function)
      Check a return code.
      static VulkanCallFailedException failed​(int code, java.lang.String function)
      Create an exception indicating that the given call failed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • checkReturnCode

        public static void checkReturnCode​(int code,
                                           java.lang.String function)
                                    throws VulkanCallFailedException
        Check a return code.
        Parameters:
        code - The return code
        function - The function name
        Throws:
        VulkanCallFailedException - If the return code denotes an error
      • failed

        public static VulkanCallFailedException failed​(int code,
                                                       java.lang.String function)
        Create an exception indicating that the given call failed.
        Parameters:
        code - The return code
        function - The function name
        Returns:
        The exception