SpiecsEngine
 
Loading...
Searching...
No Matches

◆ OnShaderDebugInfoLookup()

void Spices::GpuCrashTracker::OnShaderDebugInfoLookup ( const GFSDK_Aftermath_ShaderDebugInfoIdentifier & identifier,
PFN_GFSDK_Aftermath_SetData setShaderDebugInfo ) const
private

Handler for shader debug information lookup callbacks. This is used by the JSON decoder for mapping shader instruction addresses to SPIR-V IL lines or GLSL source lines.

Parameters
[in]identifierGFSDK_Aftermath_ShaderDebugInfoIdentifier.
[in]setShaderDebugInfoPFN_GFSDK_Aftermath_SetData.

Search the list of shader debug information blobs received earlier.

Early exit, nothing found. No need to call setShaderDebugInfo.

Let the GPU crash dump decoder know about the shader debug information that was found.

Search the list of shader debug information blobs received earlier.

Early exit, nothing found. No need to call setShaderDebugInfo.

Let the GPU crash dump decoder know about the shader debug information that was found.

Definition at line 402 of file NsightAftermathGpuCrashTracker.cpp.

407 {
409
413 const auto i_debugInfo = m_ShaderDebugInfo.find(identifier);
414 if (i_debugInfo == m_ShaderDebugInfo.end())
415 {
419 return;
420 }
421
426 setShaderDebugInfo(i_debugInfo->second.data(), static_cast<uint32_t>(i_debugInfo->second.size()));
427 }
#define SPICES_PROFILE_ZONE
std::map< GFSDK_Aftermath_ShaderDebugInfoIdentifier, std::vector< uint8_t > > m_ShaderDebugInfo
List of Shader Debug Information by ShaderDebugInfoIdentifier.