SpiecsEngine
 
Loading...
Searching...
No Matches

◆ FindShaderBinaryWithDebugData()

bool Spices::ShaderDataBase::FindShaderBinaryWithDebugData ( const GFSDK_Aftermath_ShaderDebugName & shaderDebugName,
std::vector< uint8_t > & shader ) const

Find a source shader debug info by shader debug name generated by the DXC compiler.

Parameters
[in]shaderDebugNameGFSDK_Aftermath_ShaderDebugName.
[in]shader.

Find shader binary for the shader debug name.

Nothing found.

Find shader binary for the shader debug name.

Nothing found.

Definition at line 176 of file NsightAftermathShaderDatabase.cpp.

177 {
179
183 const auto i_shader = m_ShaderBinariesWithDebugInfo.find(shaderDebugName);
184 if (i_shader == m_ShaderBinariesWithDebugInfo.end())
185 {
189 return false;
190 }
191
192 shader = i_shader->second;
193 return true;
194 }
#define SPICES_PROFILE_ZONE
std::map< GFSDK_Aftermath_ShaderDebugName, std::vector< uint8_t > > m_ShaderBinariesWithDebugInfo
List of available shader binaries with source debug information by ShaderDebugName.