SpiecsEngine
 
Loading...
Searching...
No Matches

◆ AftermathErrorMessage()

std::string AftermathErrorMessage ( GFSDK_Aftermath_Result result)
inline

Helper for checking Nsight Aftermath failures.

Parameters
[in]resultGFSDK_Aftermath_Result.
Returns
Returns debug info.

Definition at line 107 of file NsightAftermathHelpers.h.

108{
109 switch (result)
110 {
111 case GFSDK_Aftermath_Result_FAIL_DriverVersionNotSupported:
112 return "Unsupported driver version - requires an NVIDIA R495 display driver or newer.";
113 default:
114 return "Aftermath Error 0x" + std::to_hex_string(result);
115 }
116}
std::string to_hex_string(T n)
Convert T to hex string.