mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Prefer source debugging when we find vulkan debug info
This commit is contained in:
@@ -692,6 +692,12 @@ void Reflector::MakeReflection(const GraphicsAPI sourceAPI, const ShaderStage st
|
||||
reflection.debugInfo.files.push_back({sources[i].name, sources[i].contents});
|
||||
}
|
||||
|
||||
if(knownExtSet[ExtSet_ShaderDbg] != Id() && !reflection.debugInfo.files.empty())
|
||||
{
|
||||
reflection.debugInfo.compileFlags.flags.push_back({"preferSourceDebug", "1"});
|
||||
reflection.debugInfo.sourceDebugInformation = true;
|
||||
}
|
||||
|
||||
std::set<Id> usedIds;
|
||||
std::map<Id, std::set<uint32_t>> usedStructChildren;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user