lib/vulkan/checks.rb
# Checks whether the result was ok, raising the appropriate error if not.
Checks whether the result was ok, raising the appropriate error if not.
Checks whether the result was ok raising the appropriate error if not .
def check_result(result)
      case result
      when VK_SUCCESS then return result
      else raise Vulkan::Error::ResultCheckError, result
      end
    end
def check_result ( result ) case result when VK_SUCCESS then return result else raise Vulkan :: Error :: ResultCheckError , result end end
Checks whether the result was ok, raising the appropriate error if not.
Checks whether the result was ok raising the appropriate error if not .
result
<not_specific>