- java.lang.Object
-
- com.io7m.jcoronado.api.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.
-
-
-
Method Detail
-
checkReturnCode
public static void checkReturnCode(int code, java.lang.String function) throws VulkanCallFailedException
Check a return code.- Parameters:
code
- The return codefunction
- 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 codefunction
- The function name- Returns:
- The exception
-
-