Skip to content

LiteFX::Rendering::Backends::raiseIfFailed

Raises a VulkanPlatformException, if result does not equal VK_SUCCESS.

Synopsis

Declared in <litefx/backends/vulkan_api.hpp>

template<typename... TArgs>
static void raiseIfFailed(
    VkResult result,
    StringView message,
    TArgs&&... args);

Parameters

NameDescription
resultThe error code returned by the operation.
messageThe format string for the error message.
argsThe arguments passed to the error message format string.