mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-12 08:45:48 +00:00
Update Vulkan environment variable on Linux
Update variable for enabling Vulkan Renderdoc capture on Linux. Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
This commit is contained in:
committed by
Baldur Karlsson
parent
3dcdeb55b9
commit
e46837b332
@@ -283,6 +283,17 @@ static rdcstr GenerateJSON(const rdcstr &sopath)
|
||||
idx = json.find(minorString);
|
||||
}
|
||||
|
||||
const char enableVarString[] = "@VULKAN_ENABLE_VAR@";
|
||||
|
||||
idx = json.find(enableVarString);
|
||||
while(idx >= 0)
|
||||
{
|
||||
json = json.substr(0, idx) + STRINGIZE(ENABLE_VULKAN_RENDERDOC_CAPTURE) +
|
||||
json.substr(idx + sizeof(enableVarString) - 1);
|
||||
|
||||
idx = json.find(enableVarString);
|
||||
}
|
||||
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user