Class VulkanChecks

java.lang.Object
com.io7m.jcoronado.api.VulkanChecks

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

    • checkReturnCode

      public static void checkReturnCode(int code, 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, String function)
      Create an exception indicating that the given call failed.
      Parameters:
      code - The return code
      function - The function name
      Returns:
      The exception