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¶
| Name | Description |
|---|---|
| hr | The error code returned by the operation. |
| message | The format string for the error message. |
| args | The arguments passed to the error message format string. |