Skip to content

LiteFX::Rendering::Backends::raiseIfFailed

Raises a DX12PlatformException, if hr does not equal S_OK.

Synopsis

Declared in <litefx/backends/dx12_api.hpp>

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

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.