Class VulkanChecks
java.lang.Object
com.io7m.jcoronado.api.VulkanChecks
Functions to check the return values of Vulkan calls.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckReturnCode(int code, String function) Check a return code.static VulkanCallFailedExceptionCreate an exception indicating that the given call failed.
-
Method Details
-
checkReturnCode
Check a return code.- Parameters:
code- The return codefunction- The function name- Throws:
VulkanCallFailedException- If the return code denotes an error
-
failed
Create an exception indicating that the given call failed.- Parameters:
code- The return codefunction- The function name- Returns:
- The exception
-