Function TRAP::Graphics::API::ErrorCheck#

Function Documentation#

constexpr bool TRAP::Graphics::API::ErrorCheck(VkResult result, const std::source_location &sourceLoc)#

Check the if given VkResult contains an error. If the given VkResult contains an error, the function will log information about the error.

Parameters:
  • result – VkResult to check.

  • sourceLoc – Source location of the function that called the error checker.

Returns:

True for non error codes, otherwise false.