MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getResultString

Function getResultString

Source/Falcor/Core/API/Aftermath.cpp:67–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65{
66
67static std::string getResultString(GFSDK_Aftermath_Result result)
68{
69 switch (result)
70 {
71 case GFSDK_Aftermath_Result_FAIL_DriverVersionNotSupported:
72 return "Unsupported driver version - requires an NVIDIA R495 display driver or newer.";
73 case GFSDK_Aftermath_Result_FAIL_D3dDllInterceptionNotSupported:
74 return "Aftermath is incompatible with D3D API interception, such as PIX or Nsight Graphics.";
75 case GFSDK_Aftermath_Result_FAIL_D3DDebugLayerNotCompatible:
76 return "Aftermath is incompatible with the D3D debug layer.";
77 default:
78 return fmt::format("Aftermath error {:#x}", int32_t(result));
79 }
80}
81
82// Helper macro for checking Nsight Aftermath results and throwing exception
83// in case of a failure.

Callers 2

initializeMethod · 0.85
addMarkerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected