Skip to content

Commit

Permalink
Dump debug shader output if shader was cached
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Jun 11, 2024
1 parent 7f49811 commit 734663d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OgreMain/src/OgreHlms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2148,6 +2148,12 @@ namespace Ogre

codeCache.shaders[i] = compileShaderCode( source[i], "", finalHash,
static_cast<ShaderType>( i ) );

if( mDebugOutput )
{
debugDumpFile.write( source[i].c_str(),
static_cast<std::streamsize>( source[i].size() ) );
}
}
}

Expand Down

0 comments on commit 734663d

Please sign in to comment.