Skip to content

LiteFX::Rendering::Backends::raiseIfFailed

raiseIfFailed overloads

Synopses

Declared in <litefx/backends/dx12_api.hpp>

Raises a DX12PlatformException, if hr does not equal S_OK.

template<typename... TArgs>
static void raiseIfFailed(
    HRESULT hr,
    std::format_string<TArgs...> message,
    TArgs&&... args);

» more...

Raises a VulkanPlatformException, if result does not equal VK_SUCCESS.

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

» more...

Parameters

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