MCPcopy Create free account
hub / github.com/GPUOpen-Effects/GeometryFX / CheckSCDEV

Method CheckSCDEV

framework/d3d11/amd_sdk/src/ShaderCache.cpp:3152–3167  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Checks to see if Dev.exe is located correctly --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3150// Checks to see if Dev.exe is located correctly
3151//--------------------------------------------------------------------------------------
3152BOOL ShaderCache::CheckSCDEV()
3153{
3154 if (!m_bGenerateShaderISA) { return FALSE; }
3155
3156 FILE* pFile = NULL;
3157 _wfopen_s( &pFile, m_wsDevExePath, L"rb" );
3158
3159 if (pFile)
3160 {
3161 fclose( pFile );
3162
3163 return TRUE;
3164 }
3165
3166 return FALSE;
3167}
3168
3169//--------------------------------------------------------------------------------------
3170// Checks to see if an error file exists, and opens it if non-zero in size

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected