Don't add source files to SPIR-V reflection with no filename

This commit is contained in:
baldurk
2022-06-01 21:05:37 +01:00
parent 77232e0288
commit c3dd785a43
@@ -833,7 +833,8 @@ void Reflector::MakeReflection(const GraphicsAPI sourceAPI, const ShaderStage st
case SourceLanguage::Max: break;
}
reflection.debugInfo.files.push_back({sources[i].name, sources[i].contents});
if(!sources[i].name.empty())
reflection.debugInfo.files.push_back({sources[i].name, sources[i].contents});
}
PreprocessLineDirectives(reflection.debugInfo.files);