Skip to content

Commit

Permalink
Add shader source code when generating debug info
Browse files Browse the repository at this point in the history
This didn't make it in vsg-dev#748
  • Loading branch information
timoore committed Mar 13, 2023
1 parent c11c0c2 commit be482d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vsg/utils/ShaderCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ bool ShaderCompiler::compile(ShaderStages& shaders, const std::vector<std::strin
shader->setStrings(&str, 1);

EShMessages messages = EShMsgDefault;
if (settings->generateDebugInfo )
{
messages = static_cast<EShMessages>(messages | EShMsgDebugInfo);
}
bool parseResult = shader->parse(builtInResources, settings->defaultVersion, settings->forwardCompatible, messages);

if (parseResult)
Expand Down

0 comments on commit be482d3

Please sign in to comment.