| 65 | { |
| 66 | |
| 67 | static 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. |
no outgoing calls
no test coverage detected